开发者

how can i get the name and quantity of products in tpl file

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜