Skip to main content

Product Options show price

More
15 years 1 week ago #25724 by rikatos
If I put a 'option' on my products then it correctly shows a dropdown of the optional product, but it is including the price of this original product to be displayed. I have display prices turned off everywhere as I dont use pricing. Is this me or a bugette ?

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

More
15 years 1 week ago #25728 by nicolas
Indeed, that's something we didn't account for.

You need to edit the file "option" of the view "product" vi the menu Display->Views and change the line:
if(!empty($optionElement->prices)){
by:
if(!empty($optionElement->prices) && $this->params->get('show_price')){
and the line:
if(!empty($variant->prices)){
by:
if(!empty($variant->prices) && $this->params->get('show_price')){

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

More
15 years 1 week ago #25732 by rikatos
I couldnt find optionElement->prices just option->prices changed that instead but prices still showed.


Another issue I see is that if the optional product does not have variants it still displays the dropdown, but no title.

As attached. the top option is one that has variants inside it, the bottom option has no title as it doesnt have variants.

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

More
15 years 1 week ago #25738 by nicolas
Yes, on the current release it's option and not optionElement.
You need to do the second change as well.
That solves the problem on our end. Note that the show prices option of the Display tab of the config needs to be turned off.

For the products without variants, that's indeed how it's displayed for now. In next version of HikaShop, they will display like the others, so you will have to wait for next version.

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

More
15 years 1 week ago #25739 by rikatos
no probs, wont use them at the moment then, as long as its not me doing something stupid Im happy.

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

Time to create page: 0.221 seconds
Powered by Kunena Forum