当前位置: 动力学知识库 > 问答 > 编程问答 >

magento - How to not consider free items when calculating shipping costs?

问题描述:

In my shop shipping is free on orders over $75.

I want to add a free item A to the cart when the customer purchases a specific product B.

Item A is set to be free of charge by:

 quoteItem->setOriginalCustomPrice(0);

This works fine so far. But for the calculation of the shipping costs still the original price of A is used. As a result, shipping is free when the original price of A and the price of B add up to be over $75.

Does anyone know how to fix this?

分享给朋友:
您可能感兴趣的文章:
随机阅读: