Если цена ниже, то Цену уточняйте. Opencart

<modification>
    <name>Цена ниже 0.1</name>
    <code>price0</code>
	<version>1</version>
	<link>https://мот.укр</link>
	<author>satrier</author>
	<file path="catalog/view/theme/*/template/product/category.tpl">
		<operation>
			<search><![CDATA[<?php if ($product['price'])]]></search>
			<add position="replace"><![CDATA[<?php if ($product['price']&&$product['price']<0.1)  echo '<p style="color:red;font-size:22px;">Цену уточняйте!</p>';?>
			<?php if ($product['price']&&$product['price']>0.1) ]]></add>
		</operation>
	</file>
	<file path="catalog/view/theme/*/template/product/product.tpl">
		<operation>
			<search><![CDATA[<?php if ($price)]]></search>
			<add position="replace"><![CDATA[<?php if ($price&&$price<0.1)  echo '<p style="color:red;font-size:22px;">Цену уточняйте!</p>';?>
			<?php if ($price&&$price>0.1)  ]]></add>
		</operation>
		<operation>
			<search><![CDATA[<?php if ($product['price'])]]></search>
			<add position="replace"><![CDATA[<?php if ($product['price']&&$product['price']<0.1)  echo '<p style="color:red;font-size:22px;">Цену уточняйте!</p>';?>
			<?php if ($product['price']&&$product['price']>0.1)]]></add>
		</operation>
	</file>	
	<file path="catalog/view/theme/*/template/module/featured.tpl">
		<operation>
			<search><![CDATA[<?php if ($price)]]></search>
			<add position="replace"><![CDATA[<?php if ($price&&$price>0.1)]]></add>
		</operation>
		<operation>
			<search><![CDATA[<?php if ($product['price'])]]></search>
			<add position="replace"><![CDATA[<?php if ($product['price']&&$product['price']>0.1)]]></add>
		</operation>
	</file>		
	<file path="catalog/view/theme/*/template/product/search.tpl">
		<operation>
			<search><![CDATA[<?php if ($product['price'])]]></search>
			<add position="replace"><![CDATA[<?php if ($product['price']&&$product['price']>0.1)]]></add>
		</operation>
	</file>
	<file path="catalog/view/theme/*/template/product/special.tpl">
		<operation>
			<search><![CDATA[<?php if ($product['price'])]]></search>
			<add position="replace"><![CDATA[<?php if ($product['price']&&$product['price']>0.1)]]></add>
		</operation>
	</file>
	<file path="catalog/view/theme/*/template/module/latest.tpl">
		<operation>
			<search><![CDATA[<?php if ($product['price'])]]></search>
			<add position="replace"><![CDATA[<?php if ($product['price']&&$product['price']>0.1)]]></add>
		</operation>
	</file>
	<file path="catalog/view/theme/*/template/product/manufacturer_info.tpl">
		<operation>
			<search><![CDATA[<?php if ($product['price'])]]></search>
			<add position="replace"><![CDATA[<?php if ($product['price']&&$product['price']>0.1)]]></add>
		</operation>
	</file>	
</modification>

Добавить комментарий

Ваш e-mail не будет опубликован. Обязательные поля помечены *