While installing OpenCart module if you found OpenCart error : Modification requires a unique ID code! then it means that either you are missing <code>ModuleUniqueName</code> or there is conflict with the another module unique name.

So if you are missing <code> code

If you are missing <code> means, while writing ocmod.xml file you missed to write <code>ModuleUniqueName</code> which I missed mostly šŸ™‚ .

Open your *.ocmod.xml file of your module you are installing then add following lines inside modification schema:

<code>Module Unique Name</code>

Like in our list all opencart moduleĀ all.install.ocmod.xml contains <code>List_all_Products</code>:

<?xml version="1.0" encoding="utf-8"?>
    <name>List Out All Products OpenCart 2.3 OCmod</name>
    <author>Rupak Nepali, Webocreation.com</author>
    <file path="catalog/view/theme/*/template/common/header.tpl">
            <ul class="nav navbar-nav">
            <add position="After"><![CDATA[
            <li><a href="index.php?route=product/allproduct">All Products</a></li>

If thereĀ conflict with the another module unique name

Then rename the name within <code>ModuleUniqueName</code> and install it again you will see following:


Similar issues can beĀ OpenCart error : Modification requires a unique ID code!

Happy successful module installation, you can let me know if you found any issues then we can solve . If you like to read more about the ocmod then readĀ OCMOD Modification System opencart 2.3



Please enter your comment!
Please enter your name here