Update stock from sql (phpmyadmin) by product SKU
-
Hello there,
I want to make an php query and update statement to keep connected some databases from different platforms.
The only thing in common in my databases are the SKU and i need to update stocks using only SKU.
Until now i manage to update my produc stocks using meta_id but now i need to change it SKU update.
My model of update using meta_id
UPDATEwp3l_postmeta
SETmeta_value
= ’51’ WHEREwp3l_postmeta
.meta_key
= ‘_stock’ ANDwp3l_postmeta
.meta_id
= “24886”i need to remove that meta_id and replace it with SKU = “model1” for example.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Update stock from sql (phpmyadmin) by product SKU’ is closed to new replies.