"Starts from $$" for product with price variants

  • Posts: 17
  • Thank you received: 0
3 years 6 months ago #335653

-- url of the page with the problem -- : hikashop.lab.netica.pl
-- HikaShop version -- : 4.4.3
-- Joomla version -- : 3.10.0
-- PHP version -- : 7.4.14

Hi, I want to show text "Starts from [price]" on product list, but only for product that have got few prices variants - is it possible?
I.E. I have one shoe in these colors:
- red for 10$ (set as default)
- yellow for 20$
- green for 30$
on product list I see all of them as one product for 10$ (price for default color). But I would like to add prefix to thi prise: "starts from".

Thank you in advance
Regards
Greg

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

  • Posts: 83403
  • Thank you received: 13497
  • MODERATOR
3 years 6 months ago #335657

Hi,

In the file product / listing_price.php via the menu Display>Views, you should be able to do add such code at the beginning:

<?php if(!empty($this->row->has_variants)) { echo 'Starts from '; } ?>
Then, make sure that the "which price" setting, under the "products options" tab of your menu item (in the Joomla menu manager) is set to "cheapest" so that only the cheapest price is displayed on listings and it should display it after your "starts from" text.

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

Time to create page: 0.169 seconds
Powered by Kunena Forum