Product Options show price

  • Posts: 179
  • Thank you received: 17
12 years 7 months ago #25724

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.

  • Posts: 81540
  • Thank you received: 13069
  • MODERATOR
12 years 7 months ago #25728

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.

  • Posts: 179
  • Thank you received: 17
12 years 7 months ago #25732

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.

  • Posts: 81540
  • Thank you received: 13069
  • MODERATOR
12 years 7 months ago #25738

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.

  • Posts: 179
  • Thank you received: 17
12 years 7 months ago #25739

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.048 seconds
Powered by Kunena Forum