-- HikaShop version -- : 2.6.1
-- Joomla version -- : 3.4.8
-- PHP version -- : 5.6.10
I've create a module in joomla.
This module work fine.
I want to create a dynamic hikashop product in this module.
The code not create new product :
$product = new stdClass();
$product->product_name = 'Custom Watch';
$product->categories = array(46);
$price = null;
$price->price_value = 246;
$price->price_currency_id = 1;
$product->prices = array($price);
$productClass = hikashop_get('class.product');
$result = $productClass->save($product);
$productClass->updateCategories($product, $result);
If i use this sample work fine (get the product 107 and add in cart):
$productget=$productClass->get(107);
$cartClass = hikashop_get('class.cart');
$cartClass->update(107,2);
Why the product is not create ? In log file cannot error.
An idee ? Thanks you best regards