Zen Follower
- Join Date:
- Jan 2010
- Posts:
- 182
- Plugin Contributions:
- 0
I want to add to stock via EP, not overwrite
Note: upgrading soon, I know
My plan is to upload stock received to admin via EP but ADD to current stock.
Three columns:
- v_products_id
- v_products_model
- v_products_quantity
At my line 1561 a query selects the current contents...
$sql = "SELECT
p.products_quantity as v_products_quantity,
I see in my line 1980 this...
$query = "UPDATE " . TABLE_PRODUCTS . " SET
products_quantity = '" . zen_db_input($v_products_quantity) . "' ,
In order to do this, is it simply '" . zen_db_input($v_products_quantity + p.products_quantity) . "'