Norman in 't Veldt
Moderator OpenCart Forums
_________________ READ and Search BEFORE POSTING _________________
Our FREE search: Find your answer FAST!.
[How to] BTW + Verzend + betaal setup.
So...
I did a clean install of 2.0.2.0, then copied the config.php files from the 2.0.1.1 installation so it will point to the same DB. I have not installed any mods so-far. What issues am I likely to see?
Correct > OpenCart 2.0.2.0 Bug & Support Forumgilaraujo wrote:This is not the support sub section either....
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
That has changed, now you have to separate the files with commas instead of using brackets to select several files at once.slavib wrote:This specification does not work OCMOD
Using braces allows for selecting multiple files and not having to repeat the code operation multiple times.
<file path="system/{engine,library}/{action,loader,config,language}*.php">
Opencart Developer - My Extension Showcase
Contact me at aeon.yoda@gmail.com
Where you can see current specification - OCMOD?yodapt wrote:That has changed, now you have to separate the files with commas instead of using brackets to select several files at once.slavib wrote:This specification does not work OCMOD
Using braces allows for selecting multiple files and not having to repeat the code operation multiple times.
<file path="system/{engine,library}/{action,loader,config,language}*.php">
link ?
Opencart Developer - My Extension Showcase
Contact me at aeon.yoda@gmail.com
slavib wrote:This specification does not work OCMOD
Using braces allows for selecting multiple files and not having to repeat the code operation multiple times.
<file path="system/{engine,library}/{action,loader,config,language}*.php">
try
Code: Select all
<file path="system/library/{action,loader,config,language}*.php">
Opencart Developer - My Extension Showcase
Contact me at aeon.yoda@gmail.com
How about this:slavib wrote:Looking complete current specification of OCMOD
Is there such a ?
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<modification>
<id>Replace ABC with 123</id>
<version>1.0</version>
<vqmver>2.X</vqmver>
<author>xxx</author>
<file name="path/to/myfile.php">
<operation info="replace ABC with 123">
<search position="replace"><![CDATA[
$var = 'ABC';
]]></search>
<add><![CDATA[
$var = '123';
]]></add>
</operation>
</file>
</modification>
yournicevmod.ocmod.xml OC v2.x needs end like .ocmod.xml<!--THIS DECLARES TO THE BROWSER THAT IT IS AN XML FILE-->
<?xml version="1.0" encoding="UTF-8"?>
<!--SET THE START OF THE VQMOD FILE MODIFICATION-->
<modification>
<!--GIVE YOUR VQMOD FILE A TITLE SO YOU KNOW WHAT IT DOES AT A GLANCE-->
<id>Replace ABC with 123</id>
<!--VERSION NUMBERS, LEAVE VQMOD THE SAME BUT CHANGE <VERSION> TO TRACK YOUR CHANGES-->
<version>1.0</version>
<vqmver>2.X</vqmver>
<!--STEP INTO THE LIMELIGHT, PUT YOUR NAME HERE-->
<author>xxx</author>
<!--
IMPORTANT: ENSURE THIS IS DEFINITELY CORRECT! IT NEEDS TO BE A RELATIVE LINK SO DON'T PUT HTTP://WWW.[YOUR DOMAIN].COM.
YOU CAN ALSO PUT A * TO DENOTE A FOLDER YOU DON'T KNOW THE NAME OF. USEFUL FOR MAKING CUSTOMISATIONS WHICH APPLY NO MATTER WHAT THE THEME IS. AN EXAMPLE IS:
CATALOG/VIEW/THEME/*/TEMPLATE/COMMON/HEADER.TPL
-->
<file name="path/to/myfile.php">
<!--INFO ON WHAT THIS PARTICULAR FUNCTION DOES-->
<operation info="replace ABC with 123">
<!--THE CODE TO LOOK FOR, WE'll TALK ABOUT THE POSITION LATER-->
<search position="replace"><![CDATA[
$var = 'ABC';
]]></search>
<!--THE CODE TO REPLACE IT WITH-->
<add><![CDATA[
$var = '123';
]]></add>
<!--END THE OPERATION-->
</operation>
<!--STATE YOU'RE FINISHED WITH THE FILE CHANGES>
</file>
<!--CLOSE THE VQMOD-->
</modification>
remember google is your best friend!
Version 2.0.2.0, using the reCaptcha from google is throwing an error:
Code: Select all
Undefined index: g-recaptcha-response...
I made a quick fix with a switch in product.tpl and this seems to be working fine now. If one of the developers is interested in the fix, send me a pm... i don't have a fork of the code to create a pull request and setting it up just for this bug is overkill...
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
here a give away OCMod as below code for example:
Code: Select all
<modification>
<name>Add Manufacturer Logo on Product Page</name>
<version>v1.0</version>
<link>http://www.thomas.you.dont.need.to.know.com</link>
<author>Verheijen, Thomas</author>
<code>addmanufacturerlogo</code>
<file path="catalog/view/theme/*/template/product/product.tpl">
<operation>
<search><![CDATA[
<li><?php echo $text_manufacturer; ?> <a href="<?php echo $manufacturers; ?>"><?php echo $manufacturer; ?></a></li>
]]>
</search>
<add position="replace"><![CDATA[
<?php if($manufacturers_img) { ?>
<li><a href="<?php echo $manufacturers; ?>"><?php echo ($manufacturers_img) ? '<img src="'.$manufacturers_img.'" title="'.$manufacturer.'" />' : '' ;?></a></li>
<?php } else { ?>
<li><?php echo $text_manufacturer; ?> <a href="<?php echo $manufacturers; ?>"><?php echo $manufacturer; ?></a></li>
<?php } ?>
]]>
</add>
</operation>
</file>
<file path="catalog/controller/product/product.php">
<operation>
<search><![CDATA[
$this->load->model('tool/image');
]]>
</search>
<add position="after"><![CDATA[
$manufacturer_image = $this->model_catalog_manufacturer->getManufacturer($product_info['manufacturer_id']);
if($manufacturer_image){
$data['manufacturers_img'] = $this->model_tool_image->resize($manufacturer_image['image'], 50, 50);
} else {
$data['manufacturers_img'] = false;
}
]]>
</add>
</operation>
</file>
</modification>
After you have created the file, go to your OpenCart Store Administration Page => Extensions => Extension Installer and upload the file. After you get the Success Message go to Extensions => Modifications and click on the Refresh button in order to apply the new changes.
Users browsing this forum: No registered users and 237 guests