Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / External ZC "cart" interfacing for shipping quotes?

External ZC "cart" interfacing for shipping quotes?

Locked
This thread is locked. New replies are disabled.
25 Oct 2009, 7:10 AM
#1
rgme avatar

rgme

New Zenner

Join Date:
Oct 2009
Posts:
33
Plugin Contributions:
0

Post #1 by rgme

Using ZC 1.3.8a (very nice, love it!)

Anyone know of a way to obtain ZC shopping cart item line data via an external program, in order to then populate back into the cart that same data along with an externally calculated shipping charge?

FWIW, the only way I can find accurate shipping from a distributor to my customer is to get the item numbers out of the ZC cart, stuff them into the distributor cart and obtain the shipping fee, then re-stuff the ZC cart along with that distributor calculated shipping fee. I don't need help writing a program that can manipulate and read a website programmatically, I've done that several times before. I'm just wondering how to get the data out of the ZC cart and back into the cart (along with a now accurate shipping fee) at the moment my customer decides to check out of my store... I assume this is going to require a hack of the shopping_cart.php file? There aren't any "hooks" already existing, are there?

25 Oct 2009, 1:36 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #2 by drbyte

There are built-in examples of external interfacing specifically for shipping quotes. The USPS and UPS modules go out to their respective carriers' servers and make an API call by passing the supplied package and address details, and quotes are returned, which can then be displayed as part of the checkout pages. You could do the same with your situation. Let the store drive it, instead of trying to guess when a customer has a cart ready and wanting a quote and then building something that has to bypass proper security to read and inject data back and forth.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.