Jump to content
5ummer5

[SOLVED] ean13 is invalid?

Recommended Posts

Hi,

I have setup my shop and have been testing. I have just increased the VAT % ready for Jan when the shop will go live and wanted to change the prices of each product so that the customer does not pay the extra.

I can edit the price but when I go to save I get an error message:

the field ean13 is invalid



Does anyone know how to solve this without changing the prices directly in the database? I did do a search but that came up with no results.

Thanks for the help!

Share this post


Link to post
Share on other sites

It can be any length up to 13 characters, but can only be set to numbers.

You can change the validation type for the field in /classes/Product.php

'ean13' => 'isEan13'

Change isEan13 to a different validation method (like isCleanHtml)

Share this post


Link to post
Share on other sites

Ah ok no wonder, it is a mixture of numbers and letters. I don't know why it let me enter it initially and now if rejecting it. I think I will leave it out, that will be the easiest option as it is not essential at the moment. Thank you for the replies!

Share this post


Link to post
Share on other sites

Hi,

 

Can anyone please tell me how to display UPC/EAN13 for Product Customization ? i am using prestashop 1.4.8.2

 

Thanks.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More