Hi All,

To have product reference unique and required just need to change two core files. Follow the steps given below.

1. To make product reference required. Open file Product.php ( /classes/Product.php )

Find code

and change it to

 

2. To make Product Reference unique open AdminProductsController.php ( /controllers/admin/AdminProductsController.php )

Find function checkProduct() , it should be like this

and add this line in starting of checkProduct() function

and at the end of file ( before last curly brace ) add following function

That’s It!!!!

I have tested this in Prestashop version 1.6.x.y and working well at my end. Hope these helps you guys!!!

 

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...