Skip to main content

how to remove productcode on productpage?

More
13 years 6 months ago - 13 years 6 months ago #98104 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
Last edit: 13 years 6 months ago by Narayan. Reason: file wasnt attached

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

More
13 years 6 months ago - 13 years 6 months ago #98197 by Xavier
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: 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
Powered by Kunena Forum