Post by opensab677 » Sat Mar 24, 2018 4:55 am

About removing prices next to options as in this image http://prntscr.com/ivi1rb ....I have followed this topic regarding opencart 2.x http://forum.opencart.com/viewtopic.php?t=82023, but it doesn't work on OC3.
Any suggestions?
thanks

New member

Posts

Joined
Mon Sep 04, 2017 7:54 pm

Post by straightlight » Sat Mar 24, 2018 5:26 am

Remove the mentioned lines entirely rather commenting them out and make a backup.

The most generated errors being found on Opencart forum originates from contributed programming. The increased counters are caused by posted redundancies of the same solutions that were already provided prior.

F. Rules:

- viewtopic.php?f=176&t=200480
- viewtopic.php?f=176&t=200804


Regards,
Straightlight


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by opensab677 » Sat Mar 24, 2018 3:57 pm

in catalog/controller/product/product.php
$product_option_value_data[] = array(
'product_option_value_id' => $option_value['product_option_value_id'],
'option_value_id' => $option_value['option_value_id'],
'name' => $option_value['name'],
'image' => $this->model_tool_image->resize($option_value['image'], 50, 50),
'price' => $price,
'price_prefix' => $option_value['price_prefix']
);
}
removed line 328 .... 'price' => $price,
I have also changed in 'price' => '',
but doesn't work

New member

Posts

Joined
Mon Sep 04, 2017 7:54 pm

Post by opensab677 » Sat Mar 24, 2018 5:16 pm

Solved !
in catalog/view/theme/mytheme/template/product/product.twig

{% if option.type == 'radio' %}
<div class="form-group{% if option.required %} required {% endif %}">
<label class="control-label">{{ option.name }}</label>
<div id="input-option{{ option.product_option_id }}">
{% for option_value in option.product_option_value %}
<div class="radio">
<label>
<input type="radio" name="option[{{ option.product_option_id }}]" value="{{ option_value.product_option_value_id }}" />
{% if option_value.image %} <img src="{{ option_value.image }}" alt="{{ option_value.name }} {% if option_value.price %} {{ option_value.price_prefix }} {{ option_value.price }} {% endif %}" class="img-thumbnail" /> {% endif %}
{{ option_value.name }}
{% if option_value.price %}
>>>> SEE HERE {# ({{ option_value.price_prefix }}{{ option_value.price }}) comment this line to hide price options #}
{% endif %}
</div>
{% endfor %}
</div>
</div>
{% endif %}

New member

Posts

Joined
Mon Sep 04, 2017 7:54 pm

Post by FazalFariz » Tue Aug 21, 2018 5:50 pm

Can anyone explain me what to change and how to change it in order to remove the option prices showing?

I'm in OC 3 and using Journal theme

Newbie

Posts

Joined
Fri Aug 10, 2018 7:06 pm

Post by straightlight » Tue Aug 21, 2018 5:52 pm

The instructions are posted … right above. However, since you use Journal theme, contact the Journal support for assistance.

The most generated errors being found on Opencart forum originates from contributed programming. The increased counters are caused by posted redundancies of the same solutions that were already provided prior.

F. Rules:

- viewtopic.php?f=176&t=200480
- viewtopic.php?f=176&t=200804


Regards,
Straightlight


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: Baidu [Spider] and 14 guests