Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

New Field On Product Backend For The Asin Rate Topic   - - - - -

 
  • nicolasG
  • Member
  • Members
  • Join Date: 30-Oct 19
  • 40 posts

Posted 30 March 2020 - 08:24 AM #1

Hello,
 
I need to create a new field on product backend for the ASIN as you can see on the picture.
 
I follow the instruction to create a new plugin:
 
In attachment, you can find the add-on that I have created.
 
Everything it's fine except that when I click save on the product I have an error (The page is not reload and I have site not available), what could be the problem?
 
Thank you for your help.

Attached Files



 
  • The Tool
  • Been Here Way Too Long Member
  • Members
  • Join Date: 30-Mar 07
  • 3901 posts

Posted 30 March 2020 - 11:22 AM #2

Why didn't you just add it as a feature?



 
  • nicolasG
  • Member
  • Members
  • Join Date: 30-Oct 19
  • 40 posts

Posted 30 March 2020 - 02:13 PM #3

Yes, that is what we're doing right now, but if you have 150 000 products then it will be a problems because of the features limitations. They add a limitation because it can exhaust the database.

 

The way it works with features, is that it add an ID for each entry and match the ID for each products. 



 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 11560 posts

Posted 30 March 2020 - 06:09 PM #4

And the error your're getting is?  (php error_log error)


EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 20526 posts

Posted 31 March 2020 - 07:03 AM #5

In the init.php you registered hook, but did not create function for this hook

 

But in your case usage of hooks is not required. Just delete the init.php file and clear cache. It should solve the problem


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)

 
  • nicolasG
  • Member
  • Members
  • Join Date: 30-Oct 19
  • 40 posts

Posted 31 March 2020 - 09:44 AM #6

Thank you very mush eComLabs for your help it works perfectly.



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 20526 posts

Posted 31 March 2020 - 12:00 PM #7

You are welcome! :)


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)