- Posts: 1
- Thank you received: 0
how to remove productcode on productpage?
13 years 6 months ago - 13 years 6 months ago #98104
by Narayan
how to remove productcode on productpage? was created by Narayan
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
thank u in advance
Last edit: 13 years 6 months ago by Narayan. Reason: file wasnt attached
Please Log in or Create an account to join the conversation.
13 years 6 months ago - 13 years 6 months ago #98197
by Xavier
Replied by Xavier on topic how to remove productcode on productpage?
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 = "";
}
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: 13 years 6 months ago by Xavier.
Please Log in or Create an account to join the conversation.
Time to create page: 0.050 seconds