Questions tagged «shopping-cart»



1
Magento 1.9.3:如何在购物车和结帐页面上分别显示自定义期权价格?
我想在购物车和结帐页面上显示自定义期权价格。 我遵循此URL,但是其显示错误“致命错误:在非对象上调用成员函数getValue()”上 app / design / frontend / default / theme / template / checkout / cart / item / default.phtml $optionId = $_option['option_id']; $product = $_item->getProduct(); $option = $product->getOptionById($optionId); $itemOption = $_item->getOptionByCode('option_' . $option->getId()); $price = false; foreach ($option->getValues() as $values) { if ($values->getId() == $itemOption['value']) { $price = …

1
如何在Magento购物车中获得儿童产品图片
我正在尝试获取由客户添加到购物车的可配置产品的子产品图像。 例如,如果客户在购物车中添加了一双红鞋,我想在购物车中显示该颜色。 我已经设置了“显示产品缩略图本身” 问题是颜色样本扩展中的此功能 public function findColorImage($value, $arr, $key, $type) { $found = ''; if(isset($arr[$key])) { $total = count($arr[$key]); if($total>0) { for($i=0; $i<$total;$i++) { if($value == ucwords($arr[$key][$i]))//if it matches the color listed in the attribute { $found = $arr[$type][$i];//return the image src } } } } if ($found == '') …

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.