Skip to main content

order products by value

13 years 6 months ago #102632 by elucidbusiness
Hi

Web server crashed, so I have to setup everything again (yes, should have made a backup).

How can I by default show products in order of ascending value?

Cheers

Please Log in or Create an account to join the conversation.

13 years 6 months ago #102654 by Jerome
Replied by Jerome on topic order products by value
Hi,

Where do you want to change the order ?
In the front-end, back-end ? In a menu ? A module ?

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Please Log in or Create an account to join the conversation.

13 years 6 months ago #102661 by elucidbusiness
Hi Jerome

I'm wanting to change in the front-end.

I had it on my previous installation - I think I may have modified some code - but can't remember what I did.

Cheers

Please Log in or Create an account to join the conversation.

13 years 6 months ago #102665 by Xavier
Replied by Xavier on topic order products by value
Hi,

Depending on which value ?

In the menu/module configuration, you can set the order via the option "Ordering direction" and the value on which you want to order via "Ordering field".

Please Log in or Create an account to join the conversation.

13 years 6 months ago #103535 by elucidbusiness
Hi Xavier

I want to order my products within a category in ascending order using the field price_value

I cannot find an this option as the ordering field in the parameters.

Please Log in or Create an account to join the conversation.

13 years 6 months ago #103548 by Jerome
Replied by Jerome on topic order products by value
Hi,

Ordering on the price is not possible and it has never been.
Between currencies, discounts, ACL, quantities... There are too variables to make a good and faster ordering.
But you can fill the "msrp price" and sort on this field.

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Please Log in or Create an account to join the conversation.

13 years 6 months ago #103592 by elucidbusiness
Well it is possible, because I had it working on my site for nearly a year.


Ok, let's take a different approach.

I can create a filter on price.

How can I automatically apply this filter? That is, by default the filter is in ascending order -- the user doesn't have to select ascending from the drop down list.

Please Log in or Create an account to join the conversation.

13 years 6 months ago #103603 by nicolas
Replied by nicolas on topic order products by value
Hi,

There was never such option in HikaShop. Filters cannot be applied by default to a listing and the price_value cannot be used as an ordering value in a listing.
However, if you enter the retail price in your products, you can order them by retail price by selecting the product_msrp column in the "ordering column" option of your product listing menus/modules.

It is potentially possible to modify the product listing main MySQL with a hikashop plugin and add a left join to the hikashop_price table and order by the price_value if you want. The trigger to use is this one:
www.hikashop.com/en/support/documentatio...reProductListingLoad
That however requires to know programing so you might need the help of a developer.
The following user(s) said Thank You: elucidbusiness

Please Log in or Create an account to join the conversation.

13 years 5 months ago #104106 by elucidbusiness
ok, so I've added a trigger to mysql to update the product_msrp field when the price_value field changes. This works well.

However, I now have common price showing on my website for the product view:

Common price: 49,70 € ($58.68)
Our price: $64.55 each


How do I hide the common price?

Please Log in or Create an account to join the conversation.

13 years 5 months ago #104110 by elucidbusiness
Don't worry, fixed it.
The following user(s) said Thank You: Jerome

Please Log in or Create an account to join the conversation.

Time to create page: 0.064 seconds
Powered by Kunena Forum