Show 'Free shipping' option when using coupon in checkout
Posted: Sat Apr 13, 2013 10:33 pm
This is a pretty tiny bug, but it took me a while to find it, so I thought I'd share in case anyone else ran into this.
When you make a coupon for your site, you have the option of it including free shipping. However, during the checkout process, if the order total is less than what is normally required to qualify for free shipping, "free shipping" is not presented as an option under "shipping method". In the end (the "confirm" part), the customer does see that yes, they have been given free shipping, but it's a little confusing, and it turns out it's an easy fix.
in catalog->model->shipping->free.php, at line 16 it says:
change the if statement to:
Here is the vqmod operation I used:
When you make a coupon for your site, you have the option of it including free shipping. However, during the checkout process, if the order total is less than what is normally required to qualify for free shipping, "free shipping" is not presented as an option under "shipping method". In the end (the "confirm" part), the customer does see that yes, they have been given free shipping, but it's a little confusing, and it turns out it's an easy fix.
in catalog->model->shipping->free.php, at line 16 it says:
Code: Select all
if ($this->cart->getSubTotal() < $this->config->get('free_total')) {
$status = false;
}
Code: Select all
if (($this->cart->getSubTotal() < $this->config->get('free_total')) && !(isset($this->session->data['coupon']) && $this->session->data['coupon']['shipping']))
Code: Select all
<file name="catalog/model/shipping/free.php">
<operation>
<search position="replace"><![CDATA[$this->cart->getSubTotal() < $this->config->get('free_total')]]></search>
<add><![CDATA[($this->cart->getSubTotal() < $this->config->get('free_total')) && !(isset($this->session->data['coupon']) && $this->session->data['coupon']['shipping'])]]></add>
</operation>
</file>