- Posts: 17
- Thank you received: 0
"Starts from $$" for product with price variants
5 years 1 week ago #335653
by netica
"Starts from $$" for product with price variants was created by netica
-- 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
-- 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.
5 years 1 week ago #335657
by nicolas
Replied by nicolas on topic "Starts from $$" for product with price variants
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:
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.
In the file product / listing_price.php via the menu Display>Views, you should be able to do add such code at the beginning:
Code:
<?php if(!empty($this->row->has_variants)) { echo 'Starts from '; } ?>
Please Log in or Create an account to join the conversation.
Time to create page: 0.155 seconds