thank you again dr. Byte, i had already see the mistake and changed that, but still not working
i do run this in phpMyAdmin
i have tryed somany solution the last 2 days, i am really frustrated
i don't know why it is not working
thank you again dr. Byte, i had already see the mistake and changed that, but still not working
i do run this in phpMyAdmin
i have tryed somany solution the last 2 days, i am really frustrated
i don't know why it is not working
I tested it here before I posted my first solution for you, and it works fine for me.
I can in phpMyAdmin that my products_price field is correctly updated with the new prices for me.
And then in my store if I run Admin->tools->store manager->reset products price sorter, my storefront will also show the new prices correctly.
So something must be wrong with your data. Perhaps your itemnumber values don't properly match your products_model numbers. Mismatched itemnumber-vs-products_model would cause a 0 price to be entered.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
When did that message start? Why didn't you mention it earlier?
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
I just reconstructed a new table named inventory, added an itemnumber field and price field, using the same structure as the products_model and products_price fields in my zen_products table. Then I filled the inventory table with some sample entries, using itemnumbers that match products_model values.
I used phpMyAdmin to run the same query I posted above, and it worked without any error.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
because the second time i started the query in the startscreen (localhost » jvw_testdb) , i don't know how to tell you.
the first try with the query i was in the table inventory ( localhost » jvw_testdb » inventory) and after that i push the SQL button,
and start the query, there was no message and no changes in the prices
the last try with the message i was here in ( localhost » jvw_testdb) and started the same query, with result that message.
Hello Dr. Byte, it's just like you said, it's working.
I don't no what's happened that at beginning of the field 'itemnumber' there were al lot of spaces.
I have removed the spaces and use this query from you:
update zen_products p, inventory i set p.products_price = i.price where p.products_model = i.itemnumber;
in 0,5 seconds more then 33000 prices were changed!. Is that not GREAT news
Thank you to point me at "So something must be wrong with your data. Perhaps your itemnumber values don't properly match your products_model numbers. Mismatched itemnumber-vs-products_model would cause a 0 price to be entered"
End yes, the data was mismatched.
Again Dr. Byte, thank you so much for your time and help!!