I m working on the integration of a new payment gateway in an open-cart in which i have almost succeeded. The only problem which i m facing is tha开发者_JAVA技巧t i m not able to post the name and quantity of the products. Any help would be greatly appreciated.
$products = $this->cart->getProduct();
foreach($products as $product) {
echo $product['name'] . ' - ' $product['quantity'] . '<br />';
}
will echo
Name - Quantity
Name - Quantity
so you just need to edit accordingly for your needs
精彩评论