Forums / Built-in Shipping and Payment Modules / Specialized shipping logic

Specialized shipping logic

Locked

Views: 985

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
29 Aug 2007, 8:55 PM
#1
hawkweber avatar

hawkweber

New Zenner

Join Date:
Aug 2007
Posts:
15
Plugin Contributions:
0

Specialized shipping logic

Trying to figure out if (and how) this can be done...

I sell product and gift certificates. The GCs are printed in hardcopy (not via e-mail). I currently use Table Rates for shipping product and this is based on total price of the product purchased (ie: <$25 is $8.25, $25-$50 is $10.50, etc). However I need to have custom shipping pricing if there are GiftCerts in the cart order as follows:

  • If the only type of item is a Gift Cert (any Qty of them for any total value), I want to only charge $0.41 (which covers standard first class mail postage).

  • If there is actual product in the order in addition to Gift Certs, then the shipping rate is based on the product total cost (not including GC value) and uses Table Rate shipping only - does not add $0.41 (since the hardcopy GC will be included in the shipping package).

Can this be done using the built-in admin tools, does it require a contributed add-on module, or must some .php file be hacked to do this?

Thanks in advance!

30 Aug 2007, 10:17 PM
#2
brandtim avatar

brandtim

Zen Follower

Join Date:
Apr 2006
Posts:
250
Plugin Contributions:
0

Re: Specialized shipping logic

I can't think of any contribs that would work for this off the top of my head, so I'm going to say this is going to require a little hacking...

If you do not have any free shipping products, you could set all of the Gift Certificates to free shipping, then have a little php code that checks the shipping cost, and, if it's $0, change it to $0.41.

This tutorial should get you started:
http://www.zen-cart.com/wiki/index.php/Developers_API_Tutorials#A_Real_World_Example

The example is for free shipping, but that page in general should give you what you need to get it done.

BrandTim

30 Aug 2007, 11:48 PM
#3
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,678
Plugin Contributions:
0

Re: Specialized shipping logic

If you are not using the Gift Certificate redemption and email system of Zen Cart, then change the model of the gift cert to something besides GIFT and then it will behave as a "normal" product.

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.