need to locate file where macro 'PRODUCT_CODE' is defined

  • Posts: 15
  • Thank you received: 0
8 years 1 month ago #267804

i want to change the string stored in 'PRODUCT_CODE' and need to locate file where macro 'PRODUCT_CODE' is defined.

Please Log in or Create an account to join the conversation.

  • Posts: 83989
  • Thank you received: 13603
  • MODERATOR
8 years 1 month ago #267809

Hi,

If you mean that you want to change the way the product_code is generated by HikaShop when you don't provide it in the interface when creating a new product, then you want to edit the function "save" of the file administrator/components/com_hikashop/classes/product.php

I would however recommend to develop a small plugin of the group "hikashop" and implement the onBeforeProductCreate trigger and change the product_code with the one you want instead. That way, when you update, you won't loose your changes
www.hikashop.com/support/documentation/6...r-documentation.html

Please Log in or Create an account to join the conversation.

Time to create page: 0.053 seconds
Powered by Kunena Forum