Zen Follower
- Join Date:
- Jan 2010
- Posts:
- 182
- Plugin Contributions:
- 0
Easy Populate 1.2.5.7 - add to products_quantity, not overwrite
Hello,
So easy enough I'd like to have two columns to upload in EP.
- v_products_id
- v_products_quantity
This us what was received and will add to current stock.
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) . "' ,
When updating, using + to SUM together, how do I parse the current qty and the incoming quantity?
Or is it simply '" . zen_db_input($v_products_quantity + products_quantity) . "'