- Posts: 1
- Thank you received: 0
Category Product display
- EmediaAssoc
-
Topic Author
- Offline
Less
More
13 years 11 months ago #77143
by EmediaAssoc
Category Product display was created by EmediaAssoc
Is there a way to add text like 'Starting price at' before the price of products that have options that will increase the price once added?
Again, it would be nice if it were controlled by an on/off trigger, and it would apply to products that have options that increase the price.
Please see the attachment for a mockup.
Thanks,
Gene
Again, it would be nice if it were controlled by an on/off trigger, and it would apply to products that have options that increase the price.
Please see the attachment for a mockup.
Thanks,
This attachment is hidden for guests.
Please log in or register to see it.
Please log in or register to see it.
Gene
Please Log in or Create an account to join the conversation.
13 years 11 months ago #77268
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Category Product display
Hi,
In product listing view, you have know if a product has options or not.
You can read the variable " $this->row->has_options " like the view "quantity" does in order to know if it has to display "choose options" or "add to cart" text.
If you want to be sure that the price between variants changes, you should add some PHP code in the "listing" view in order to load all characteristics data.
The idea would be to loop on all products in $this->rows, store the id of main products (when $row->has_options is true) in an array and after that, make a SQL request in order to load prices for variants.
Regards,
In product listing view, you have know if a product has options or not.
You can read the variable " $this->row->has_options " like the view "quantity" does in order to know if it has to display "choose options" or "add to cart" text.
If you want to be sure that the price between variants changes, you should add some PHP code in the "listing" view in order to load all characteristics data.
The idea would be to loop on all products in $this->rows, store the id of main products (when $row->has_options is true) in an array and after that, make a SQL request in order to load prices for variants.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
Time to create page: 0.056 seconds