Post by skip » Fri Apr 05, 2024 7:52 pm

Hi , how to convert ocmod file from verzion 3.0.3.8 to installer 4.0.2.3 Here is example code which remove price from featured in 3038 through ocmod. Thanks

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<modification>
	<name>Remove price fetured</name>
	<code>remove-price-featured</code>
	<version>3.0.x</version>
	<author>skip</author>
	
 <file path="catalog/view/theme/*/template/extension/module/featured.twig">
		<operation>
			<search><![CDATA[
		      {% if product.price %}
			]]></search>
			<add position="replace" offset="11"><![CDATA[
			
			]]></add>
		</operation>
	</file>		
</modification>

Active Member

Posts

Joined
Mon May 09, 2011 9:57 pm

Post by JNeuhoff » Fri Apr 05, 2024 11:05 pm

OC 4.0.2.3 doesn't support OCmod. You'd have to use an event handler for this. However, in this case, the featured module doesn't show the price, so there is no need to make any modification for OC 4.0.2.3.

Having said that, none of the OpenCart 4 versions are suitable for live sites, OpenCart 4 is still subject to lot of development and bugfixes.

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am

Who is online

Users browsing this forum: No registered users and 1 guest