Hi,
i´ve tried your method but it does not work for me. I´ve added the code
if($status || is_null($status)){
$coupon = JRequest::getString('coupon');
if(!empty($coupon))
$cartClass->addCoupon($cart_id, $coupon);
}
before
$cart = $cartClass->getFullCart($cart_id);
if($tmpl == 'ajax') {
$ret = $this->getAjaxCartData($used_data, $cart, $status);
echo json_encode($ret);
exit;
}
in components/com_hikashop/controllers/product.php
and use the following Product url:
mydomain.de/index.php?option=com_hikashop&ctrl=product&task=updatecart&quantity=1&checkout=1&product_id=2&coupon=58745
I´ve also tried to use the cupon ID but nothing of them works, the product is in the cart but without the code....
I´ve using Hikashop 3.1.1 .
Thanks in advance!