Theme: https://themeforest.net/item/ravado-cof ... e/21347451
Hi All,
I am trying to modify the json response of "checkout/cart/add" to include the total price to update it live via ajax as a product gets added.
so far the json response is:
Code: Select all
{
"success":"Success: You have added <a href=\"https:\/\/mywebsite\/index.php?route=product\/product&product_id=1487\">Wicked Coffee Diablo Blend 1kg<\/a> to your <a href=\"https:\/\/mywebsite\/index.php?route=checkout\/cart\">shopping cart<\/a>!",
"total":"1"
}
Code: Select all
$json['total_price'] = sprintf($this->language->get('total_price'), $this->currency->format($this->cart->getTotal(), $this->session->data['currency']));
Any help would be greatly appreciated.