0
votes

I am looking for a way to unlock free shipping in frontend.

Via a code tweak we now show this in backend always. But not on frontend.

What we would like is that if a user enters a coupon code they option to ship for free is shown on the backend.

What code need I pull into the shipping templates to add an if statement that if certain coupon code has been entered that free shipping shows up

  • (workaround) currently free shipping coupon code not working in combination with other coupon code for 10 $ discount

thanks, Sean

2

2 Answers

0
votes

The first step is to create a Shopping Cart Price Rule with your required coupon code. If you just want to apply free shipping to the order you can set that as an action in the rule.

If you want to show the free shipping option only if this discount is applied, however, don't put any actions on the rule and instead use Mage::getSingleton('checkout/session')->getQuote()->getCouponCode(); to check the applied code in the checkout template.

I've just run a quick test using this code in 1.7 and it works great.

0
votes

Some coding has been done on the following location

https://github.com/seansan/Magento_SNH_extensions