Well, according to the Code used, this Extension should work in OC v.2.3.x as well:
Good Luck!
Ernie
---
Limit number of characters in product name on category page free, OC v.2.x
https://www.opencart.com/index.php?rout ... n_id=24964
---
You have to change the Value:
70 according to your needs!
limit_titles.vqmod.xml (VqMod Version)
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<modification>
<id><![CDATA[Limit characters in the title - category page]]></id>
<version><![CDATA[1.0]]></version>
<vqmver><![CDATA[2.5.1]]></vqmver>
<author><![CDATA[Angela Boartes - Soft Build]]></author>
<file name="catalog/controller/product/category.php">
<operation error="log">
<search position="replace"><![CDATA['name' => $result['name'],]]></search>
<add trim="true"><![CDATA[
'name' => utf8_substr($result['name'],0,70),
]]></add>
</operation>
</file>
</modification>
and if you use
OcMod, try this Code, and then rename the FILE-Name to
limit_titles.ocmod.xml (OcMod Version)
and install it by use of the OcMod-Installer:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<modification>
<name><![CDATA[Category Product Name Length]]></name>
<code><![CDATA[product_name_length]]></code>
<version><![CDATA[OC v.2.x]]></version>
<author><![CDATA[Angela Boartes - Soft Build]]></author>
<file path="catalog/controller/product/category.php">
<operation>
<search><![CDATA['name' => $result['name'],]]></search>
<add position="replace" trim="true"><![CDATA[
'name' => utf8_substr($result['name'],0,70),
]]></add>
</operation>
</file>
</modification>