verzevoul wrote: Hello !
Running the code
$class = hikashop_get('class.product');
$product = new stdClass();
$product->prices = array();
$price = new stdClass();
$price->price_currency_id = 1; // replace 1 by the id of your currency
$price->price_value = 0.0001;
$product->prices []= $price;
$class->updatePrices($product, {product.product_id});
I get
Action PHP code is wrong: syntax error, unexpected token "{", expecting ")"
I then tried
$class = hikashop_get('class.product');
$product = new stdClass();
$product->prices = array();
$price = new stdClass();
$price->price_currency_id = 1;
$price->price_value = 0.0001;
$product->prices []= $price;
$class->updatePrices($product, (product.product_id));
but I get
Error
Action PHP code is wrong: Undefined constant "product"