Removing (+price) in Options
Posted: Tue May 08, 2018 1:28 pm
sorry, i want to ask if this can use for opencart 3.0.2.0
thx
thx
OpenCart Community Forum - Discuss shopping cart and e-commerce solutions.
https://forum.opencart.com/
HiPost by cyclops12 » Wed May 09, 2018 1:55 am
indramb wrote: ↑
Tue May 08, 2018 1:28 pm
sorry, i want to ask if this can use for opencart 3.0.2.0
thx
No but if you have vqmod installed i can possibly make up a vqmod file for you
Code: Select all
<modification>
<name>Remove Option Price In Product Page</name>
<version>1.0</version>
<code>remove-option-price-in-product-page</code>
<author>cyclops</author>
<file path="catalog/view/theme/*/template/product/product.twig">
<operation error="skip">
<search><![CDATA[
{% if option_value.price %}
]]></search>
<add position="before"><![CDATA[
<!--
]]></add>
</operation>
<operation error="skip">
<search><![CDATA[
( {{ option_value.price_prefix }}{{ option_value.price }} )
]]></search>
<add position="after" offset="1"><![CDATA[
-->
]]></add>
</operation>
</file>
</modification>
Hixxvirusxx wrote: ↑Tue Jan 14, 2020 2:34 amCode: Select all
<modification> <name>Remove Option Price In Product Page</name> <version>1.0</version> <code>remove-option-price-in-product-page</code> <author>cyclops</author> <file path="catalog/view/theme/*/template/product/product.twig"> <operation error="skip"> <search><![CDATA[ {% if option_value.price %} ]]></search> <add position="before"><![CDATA[ <!-- ]]></add> </operation> <operation error="skip"> <search><![CDATA[ ( {{ option_value.price_prefix }}{{ option_value.price }} ) ]]></search> <add position="after" offset="1"><![CDATA[ --> ]]></add> </operation> </file> </modification>
Code: Select all
{% if option_value.price %}
({{ option_value.price_prefix }}{{ option_value.price }})
{% endif %}
Code: Select all
<!--{% if option_value.price %}
({{ option_value.price_prefix }}{{ option_value.price }})
{% endif %}-->
Where do I locate that code?Post by xxvirusxx » Tue Jan 14, 2020 6:29 pm
Yep...code alignment in 3.x is.....
You can edit directly in the file and change:
Code: Select all
{% if option_value.price %}
({{ option_value.price_prefix }}{{ option_value.price }})
{% endif %}
To
Code: Select all
<!--{% if option_value.price %}
({{ option_value.price_prefix }}{{ option_value.price }})
{% endif %}-->
Or wait to change that ocmod file...
xxvirusxx wrote: ↑Tue Jan 14, 2020 2:34 amCode: Select all
<file path="catalog/view/theme/*/template/product/product.twig">
by mona wrote: ↑Wed Jan 15, 2020 5:36 amhttps://github.com/opencart/opencart/wi ... art-Basics
catalog/view/theme/default/template/product/product.twig
xxvirusxx wrote: ↑Tue Jan 14, 2020 2:34 amCode: Select all
<file path="catalog/view/theme/*/template/product/product.twig">