dongyu9263 2013-01-15 06:35
浏览 37

在magento的自定义购物车中添加产品

I have created a page where I have images of some items like product1, product2, product3 etc. All the products are configurable products. Below that I have added a custom block for cart. Which contains list of all the above products(there are only 3 products I want to add) (see below)

Product1    $39 x 1     =     $39
Product2    $25 x 1     =     $25
Product3    $30 x 1     =     $30

TOTAL           $94 

When I click on the image of the product, it will redirect to product, there are some attributes with quantity to select and one add to cart button. Now when I click on Add to Cart button I want the product price and quantity is added to its appropriate place. Suppose I selected product2 and 3 quantity the cart look like

Product1    $0 x 0          =     $0
Product2    $25 x 3     =     $75
Product3    $0 x 0          =     $0

TOTAL           $75 

I am able to do till redirecting to products, but not able to do the next part that Add to Cart. I want to know the steps and what functions I need to create in which files?

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 oracle集群安装出bug
    • ¥15 关于#python#的问题:自动化测试
    • ¥20 问题请教!vue项目关于Nginx配置nonce安全策略的问题
    • ¥15 教务系统账号被盗号如何追溯设备
    • ¥20 delta降尺度方法,未来数据怎么降尺度
    • ¥15 c# 使用NPOI快速将datatable数据导入excel中指定sheet,要求快速高效
    • ¥15 再不同版本的系统上,TCP传输速度不一致
    • ¥15 高德地图点聚合中Marker的位置无法实时更新
    • ¥15 DIFY API Endpoint 问题。
    • ¥20 sub地址DHCP问题