Jump to content

How add quanity to warehouse in PHP ?


Wotek

Recommended Posts

Hi


How i add product to Prestashop with Php object like this: http://blog.belvg.co...prestashop.html

 

I Create this script but it's not working.

 

require('../config/config.inc.php');
require_once '../classes/Stock/Stock.php';
require_once '../classes/Stock/StockManager.php';




$product = new Warehouse();
$product->id_warehouse = 1;
$product->quanity = 1;
$product->id_stock_mvt_reason = 1;
$product->price = '3';
$product->currency = 2;
$product->usable = 1;
$product->save();
 
Link to comment
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...