Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在将一个新的支付网关集成到一个我几乎成功的开放式购物车中。我面临的唯一问题是我无法发布产品的名称和数量。任何帮助将不胜感激。
$products = $this->cart->getProduct(); foreach($products as $product) { echo $product['name'] . ' - ' $product['quantity'] . '<br />'; }
会回声
名称 - 数量 名称 - 数量
名称 - 数量
所以你只需要根据你的需要进行相应的编辑