Forums / General Questions / Gift Cert purchase over free-shipping level triggers free shipping for other products

Gift Cert purchase over free-shipping level triggers free shipping for other products

Locked

Started by tman4j on 1 Sep 2010, 3:19 AM · Views: 2,572

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
1 Sep 2010, 3:19 AM
#1
tman4j avatar

tman4j

New Zenner

Join Date:
Feb 2010
Posts:
9
Plugin Contributions:
0

Gift Cert purchase over free-shipping level triggers free shipping for other products

When testing my soon to be completed ZC shopping cart (using Simply Kerrin template, version 1.3.8 of ZC), this problem arises: If I do a mock transaction of a gift certificate of $50 or more, along with some physical/shippable product, the customer will receive free shipping on the physical product. Free shipping is set to go in effect when the purchase total hits $50. Since this might result in free shipping again, when the same gift certificate is used/redeemed, I want to make it to where the free shipping is available only for purchases of physical/shippable products of $50 or more. (I do not charge for shipping of gift certificates, as they are virtual). PLEASE ADVISE ON A REMEDY. :D

Tony A.
http://braceletstar.com/
NEWBIE ZENNER

1 Sep 2010, 3:04 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Gift Cert purchase over free-shipping level triggers free shipping for other products

You would need to customize the Shipping ot_shipping Order Total module to not take into account the amount of the Order that is Gift Certificates ...

If you look at the Low Order Free ot_loworderfee you can see how to calculate the Gift Certificate amount of the order to work it into the calculation for the Free Shipping in the Shipping ot_shipping module ...

NOTE: you do need to check all of the code for where the:
MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER

is used to include this adjustment as well ...

Using the Tools ... Developers Tool Kit ... and entering in the bottom input box:
MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER

you can find where you need to address this in the code ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

10 Sep 2010, 12:01 AM
#3
tman4j avatar

tman4j

New Zenner

Join Date:
Feb 2010
Posts:
9
Plugin Contributions:
0

Re: Gift Cert purchase over free-shipping level triggers free shipping for other products

Hi. Is it possible for you to list the steps by sequence. Also, could you please note which control/admin panel to be used for each step (ZC vs GoDaddy... my host). Thanks.

Tony A.
http://braceletstar.com/
NEWBIE ZENNER

10 Sep 2010, 12:05 AM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Gift Cert purchase over free-shipping level triggers free shipping for other products

I would have to sit down and actually write all of the code for this customization ...

You might try a search for:
MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER

on the forum and see if anything has been written for this before ...

I may have broken it all down some time ago ... but I cannot recall ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

10 Sep 2010, 12:18 AM
#5
tman4j avatar

tman4j

New Zenner

Join Date:
Feb 2010
Posts:
9
Plugin Contributions:
0

Re: Gift Cert purchase over free-shipping level triggers free shipping for other products

In your opinion, is it more common than not for estores to allow gift certificate purchases to activate free shipping for other/physical products? If so, I will probably just do that. I am not a coder (html, xhtml, mysql, php, etc.). By the way, which of these coding languages would be useful to know for this? Thanks.

Tony A.
http://braceletstar.com/
NEWBIE ZENNER

10 Sep 2010, 12:50 AM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Gift Cert purchase over free-shipping level triggers free shipping for other products

php is what you need to customize ...

You have a setting for the:
MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER

and you do not want this to happen on orders that contain a Gift Certificate to give the Free Shipping because it takes the Order over the amount set by the:
MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER

so, you need to customize all of the code where the constant:
MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER

is used and take out the amount of the Gift Certificate from this amount so that it is not triggered ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!