how to remove productcode on productpage?

  • Posts: 1
  • Thank you received: 0
11 years 7 months ago #98104

hika copies the productname into the productcode field if left empty, so how to avoid this if i havent got a productcodenummer
thank u in advance

Attachments:
Last edit: 11 years 7 months ago by Narayan. Reason: file wasnt attached

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

  • Posts: 13201
  • Thank you received: 2322
11 years 7 months ago #98197

Hi,

To have that you can create a plugin using the function "onBeforeProductCreate" and "onBeforeProductCreate" and set teh value of the product code to ''.

Something like:
function onBeforeProductCreate($element, $do){
$element->product_code = "";
}

Last edit: 11 years 7 months ago by Xavier.

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

Time to create page: 0.055 seconds
Powered by Kunena Forum