Code: Select all
<li>{{ attribute.name }}: {{ attribute.text }}</li>
Code: Select all
<li>{{ attribute.name }}: {{ attribute.text }}</li>
Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
Code: Select all
{% if attribute_groups %}
{% for attribute_group in attribute_groups %}
{% if attribute_group.name == 'Product Details' %}
{% for attribute in attribute_group.attribute %}
<span>{{ attribute.name }} {{ attribute.text }}</span>
{% endfor %}
{% endif %}
{% endfor %}
{% endif %}
{% if attribute_groups %}
{% for attribute_group in attribute_groups %}
{% if attribute_group.name == 'Dettaglio Prodotto' %}
{% for attribute in attribute_group.attribute %}
<span>{{ attribute.name }} {{ attribute.text }}</span>
{% endfor %}
{% endif %}
{% endfor %}
{% endif %}
Code: Select all
<!--Tax Text-->
<file name="catalog/view/theme/journal3/template/product/product.twig">
<operation>
<search position="replace"><![CDATA[
<div class="product-tax">{{ text_tax }} {{ tax }}</div>
]]></search>
<add><![CDATA[<div class="product-tax">{{ text_tax }}</div>
]]></add>
</operation>
</file>
<file name="catalog/view/theme/default/template/product/product.twig">
<operation>
<search position="replace"><![CDATA[
<li>{{ text_tax }} {{ product.tax }}</li>
]]></search>
<add><![CDATA[<li>{{ text_tax }}</li>
]]></add>
</operation>
<operation>
<search position="replace"><![CDATA[
{% if product.tax %} <span class="price-tax">{{ text_tax }} {{ product.tax }}</span> {% endif %} </p>
]]></search>
<add><![CDATA[{% if product.tax %} <span class="price-tax">{{ text_tax }}</span> {% endif %} </p>
]]></add>
</operation>
</file>
<!--End Tax Text-->
DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.
https://www.youtube.com/watch?v=zXIxDoCRc84
You have cleared Vqmod cache, then refreshed ocmod?onoriotorti wrote: ↑Tue Sep 10, 2019 8:38 pmdoes anyone know how to get this to work? My code is probably wrong and I could use some help.
Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
yup, cleared all caches and refreshed modifications, and still no change.xxvirusxx wrote: ↑Tue Sep 10, 2019 9:42 pmYou have cleared Vqmod cache, then refreshed ocmod?onoriotorti wrote: ↑Tue Sep 10, 2019 8:38 pmdoes anyone know how to get this to work? My code is probably wrong and I could use some help.
Code: Select all
<div class="product-tax">{{ 'Price without taxes' }}</div>
Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
yes, it shows the phrase "price without taxes" but only for a second then it reverts back to "w/o tax [price]"xxvirusxx wrote: ↑Wed Sep 11, 2019 3:25 pmChange directly in the file.... to something like this to see if display.
Then clear vqmod cache, refresh ocmod, cleare SASS cache, theme cache.Code: Select all
<div class="product-tax">{{ 'Price without taxes' }}</div>
So you vqmod extension work right?onoriotorti wrote: ↑Wed Sep 11, 2019 4:11 pmbut only for a second then it reverts back to "w/o tax [price]"
Then whats is the problem?
Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
the XML file only works for about a second, as soon as you open the product page you see the phrase "w/o tax" but then it changes back to "w/o tax [price]".Then whats is the problem?
Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
Code: Select all
<!--Tax Text-->
<file name="catalog/view/theme/journal3/template/product/product.twig">
<operation>
<search position="replace"><![CDATA[
<div class="product-tax">{{ text_tax }} {{ tax }}</div>
]]></search>
<add><![CDATA[<div class="product-tax">{{ 'test' }}</div>
]]></add>
</operation>
</file>
<file name="catalog/view/theme/default/template/product/product.twig">
<operation>
<search position="replace"><![CDATA[
<li>{{ text_tax }} {{ product.tax }}</li>
]]></search>
<add><![CDATA[<li>{{ 'test' }}</li>
]]></add>
</operation>
<operation>
<search position="replace"><![CDATA[
{% if product.tax %} <span class="price-tax">{{ text_tax }} {{ product.tax }}</span> {% endif %} </p>
]]></search>
<add><![CDATA[{% if product.tax %} <span class="price-tax">{{ 'test' }}</span> {% endif %} </p>
]]></add>
</operation>
</file>
<!--End Tax Text-->
Users browsing this forum: No registered users and 93 guests