Hikashop Sort Filter: Ascending and descending = same result

  • Posts: 211
  • Thank you received: 3
  • Hikashop Business
1 month 4 weeks ago #309139

-- url of the page with the problem -- : elodyprsteny.cz/snubni
-- HikaShop version -- : 4.2.0

Hello!

I set up sort price filter for hikashop menu (category listing)



Sorting ASC (low to high) works great, but instead of sorting descending, the is generated same link in code. There are no overrides as far as I know. Please, could you help me to sort this out?



Thank you,
Filip

Attachments:

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

  • Posts: 211
  • Thank you received: 3
  • Hikashop Business
1 month 4 weeks ago #309141

Also, please, could you advise me how can I translate "Price sestupně", "Price vzestupně" to own text: Cheapest, Most expensive?

Thank you!

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

  • Posts: 66889
  • Thank you received: 9887
  • MODERATOR
1 month 4 weeks ago #309147

Hi,

Thank you for your feedback. We've added a patch for that.
You can donwnload the install package on our website and install it on yours to get the patch.

For the translations, you can use the translation keys SORT_DESCENDING_PRODUCT_SORT_PRICE and SORT_ASCENDING_PRODUCT_SORT_PRICE in translation overrides.

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

  • Posts: 211
  • Thank you received: 3
  • Hikashop Business
1 month 4 weeks ago #309170

Thank you very much, Patch fixed that.

Best wishes,
Filip

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

  • Posts: 146
  • Thank you received: 1
  • Hikashop Business
1 month 2 weeks ago #309634

nicolas wrote: Hi,

Thank you for your feedback. We've added a patch for that.
You can donwnload the install package on our website and install it on yours to get the patch.

For the translations, you can use the translation keys SORT_DESCENDING_PRODUCT_SORT_PRICE and SORT_ASCENDING_PRODUCT_SORT_PRICE in translation overrides.


I added into my language file

SORT_DESCENDING_PRODUCT_SORT_PRICE="По убыванию цены"
SORT_ASCENDING_PRODUCT_SORT_PRICE="По возрастанию цены"

but on the fron end still display PRODUCT_b.product_sort_price по возрастанию
how to rename PRODUCT_b.product_sort_price ?
Cant understand

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

  • Posts: 66889
  • Thank you received: 9887
  • MODERATOR
1 month 2 weeks ago #309637

Hi,

Try like that:
SORT_DESCENDING_PRODUCT_PRODUCT_SORT_PRICE="По убыванию цены"
SORT_ASCENDING_PRODUCT_PRODUCT_SORT_PRICE="По возрастанию цены"

However, I don't see why you would get the "b." there. I've checked the code and it looks fine to me.

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

  • Posts: 146
  • Thank you received: 1
  • Hikashop Business
1 month 2 weeks ago #309676

nicolas wrote: Hi,

Try like that:
SORT_DESCENDING_PRODUCT_PRODUCT_SORT_PRICE="По убыванию цены"
SORT_ASCENDING_PRODUCT_PRODUCT_SORT_PRICE="По возрастанию цены"

However, I don't see why you would get the "b." there. I've checked the code and it looks fine to me.


still do not work
it's here aketo.kz/rotating-machinery/category/cage-induction-motor
third select from left corner 3 and 4 option

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

  • Posts: 66889
  • Thank you received: 9887
  • MODERATOR
1 month 1 week ago #309703

Hi,

I checked there but I don't see "PRODUCT_b.product_sort_price по возрастанию"
I do see "По убыванию цены" and "По возрастанию цены" in that dropdown on that link.
So I'm not sure what you mean.
Could you double check ?
monosnap.com/file/fjb6rkazE5Rhgfd08Pzm8O9sMknhs1

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

  • Posts: 146
  • Thank you received: 1
  • Hikashop Business
1 month 1 week ago #309752

nicolas wrote: Hi,

I checked there but I don't see "PRODUCT_b.product_sort_price по возрастанию"
I do see "По убыванию цены" and "По возрастанию цены" in that dropdown on that link.
So I'm not sure what you mean.
Could you double check ?
monosnap.com/file/fjb6rkazE5Rhgfd08Pzm8O9sMknhs1


watch this please cloud.aketo.kz/s/2sYeiRe2tSTIhFq

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

  • Posts: 66889
  • Thank you received: 9887
  • MODERATOR
1 month 1 week ago #309776

Hi,

Ah ok, I see what you mean now ! Indeed, there is an issue there.
Change the line:

else{ $typeName='PRODUCT_'.$selected[0];	}
to:
else{ $typeName='PRODUCT_'.str_replace('b.','',$selected[0]); }
in the file administrator/components/com_hikashop/classes/filter.php and that will fix the problem. We've added that on our end too.

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

  • Posts: 146
  • Thank you received: 1
  • Hikashop Business
1 month 4 days ago #309975

nicolas wrote: Hi,

Ah ok, I see what you mean now ! Indeed, there is an issue there.
Change the line:

else{ $typeName='PRODUCT_'.$selected[0];	}
to:
else{ $typeName='PRODUCT_'.str_replace('b.','',$selected[0]); }
in the file administrator/components/com_hikashop/classes/filter.php and that will fix the problem. We've added that on our end too.


thanx . now it works.

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

Time to create page: 0.095 seconds
Powered by Kunena Forum