Jump to content

The upc field is invalid error when i update a price of item

Recommended Posts

In a function it is done the update of the prices by the following queries:
$ QueryUpdate = "UPDATE` "._DB_PREFIX _." Product` SET price = $ newprice where id_product = $ id_prodcut ";
$ UpdateProductShop = "UPDATE` "._DB_PREFIX _." Product_shop "SET price = $ newprice where id_product = $ id_prodcut";
Db :: getInstance () -> Execute ($ queryUpdate);
Db :: getInstance () -> Execute ($ updateProductShop);
The update is done but when I want to change the price manually the following error is displayed: The upc field is invalid.
How do I solve this problem? Thank you


Share this post

Link to post
Share on other sites

What is the upc field set to?
I take it as saving from the first page (information) works?

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...

Important Information

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