Magento:购物车中的问题 [英] Magento : issue in shopping cart

查看:89
本文介绍了Magento:购物车中的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,我正在开发自定义价格的扩展名,因此,当我将商品添加到具有400 $的购物车并再次添加具有500 $的同一商品时,它总共给了我1000美元,如下面的图片所述:

first I'm developping an extension for custom price so when i add a product to cart with 400$ and add again the same product with 500$ it gives me in total 1000$ like described in image bellow :

所以这不是逻辑,总和必须为900 $现在我想解决这个问题,但是我不知道从哪里开始我一直很困惑,我想这样做:

so this is not logic an d the total must be 900$ now i wanna solve that problem but i don't know where to start I've been confused i wanna do like this :

推荐答案

我可以知道产品是否有所不同.如果产品具有相同的sku,则只需支付一个价格.

May i know the products are different. if the products having same sku it will take only one price.

为此,您需要添加两个具有相同名称和不同"SKU"的产品.我认为它将起作用.

For this u need to add two products with same name and different "SKU". I think it will work..

这篇关于Magento:购物车中的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆