Page 1 of 1

Removing (+price) in Options

Posted: Tue May 08, 2018 1:28 pm
by indramb
sorry, i want to ask if this can use for opencart 3.0.2.0

thx

Re: Removing (+price) in Options

Posted: Wed May 09, 2018 11:13 am
by indramb
[/quote]
No but if you have vqmod installed i can possibly make up a vqmod file for you
[/quote]

thx for answer, buat i found a module for 3.0.2.0 in marketplace, and its worked

sorry, maybe u can help for my problem in my thread viewtopic.php?f=104&t=204216
thx

Re: Removing (+price) in Options

Posted: Thu May 24, 2018 2:23 pm
by sid_global
Hi,
I'm using opencart 3.0.2.0 and i want to remove price option from Products, category and search.
i have vqmod installed , can u help me.

thanks n advance.

Re: Removing (+price) in Options

Posted: Mon Jan 13, 2020 10:42 pm
by dragoosdi
Post 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
Hi
Will you be able to make vqmode file with removing options price, please

Thank You

Re: Removing (+price) in Options

Posted: Tue Jan 14, 2020 2:34 am
by xxvirusxx

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>

Re: Removing (+price) in Options

Posted: Tue Jan 14, 2020 11:12 pm
by dragoosdi
xxvirusxx wrote:
Tue Jan 14, 2020 2:34 am

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>
Hi
Thank you but for some reason is removing all my options with this modification.
Any solution

Re: Removing (+price) in Options

Posted: Wed Jan 15, 2020 2:29 am
by xxvirusxx
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...

Re: Removing (+price) in Options

Posted: Wed Jan 15, 2020 4:49 am
by dragoosdi
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...
Where do I locate that code?
Thanks

Re: Removing (+price) in Options

Posted: Wed Jan 15, 2020 5:36 am
by by mona
https://github.com/opencart/opencart/wi ... art-Basics

catalog/view/theme/default/template/product/product.twig

xxvirusxx wrote:
Tue Jan 14, 2020 2:34 am

Code: Select all

 
	<file path="catalog/view/theme/*/template/product/product.twig">
		

Re: Removing (+price) in Options

Posted: Wed Jan 15, 2020 6:20 pm
by dragoosdi
by mona wrote:
Wed Jan 15, 2020 5:36 am
https://github.com/opencart/opencart/wi ... art-Basics

catalog/view/theme/default/template/product/product.twig

xxvirusxx wrote:
Tue Jan 14, 2020 2:34 am

Code: Select all

 
	<file path="catalog/view/theme/*/template/product/product.twig">
		

Thank you for help.
I found easy install solution for that problem and is working perfect with any version.
click here