F-ShipOn values, bill versus ship uniqueness from cgi

General ShopSite user discussion
Post Reply
synchrotech
Posts: 3
Joined: Wed Nov 05, 2008 4:09 pm

F-ShipOn values, bill versus ship uniqueness from cgi

Post by synchrotech »

We have had a post order cgi utilizing the ShopSite API that is now broken because of the new feature that auto-populates the ship to fields with the bill to field values.

Reading through the API documentation we saw the F-ShipOn variable and figured this would solve our dilemma. What value should we see in a cgi for F-ShipOn if the check box is checked? Unchecked?

If F-ShipOn doesn't let us determine whether the end user has different or same billing/shipping addresses, is there any other variables passed that will? We'd rather not write an intolerably long set of conditional statements comparing every billing field to its shipping counterpart.
Jim
Site Admin
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Post by Jim »

According to the help on page
http://shopsite.com/help/10.0/en-US/sc/ ... .spec.html

F-ShipOn "checked" if the shipping address and billing address were entered separately. If this field is empty, the customer selected to use the same address for billing and shipping.

So Checked indicates that the shopper enter each address. Blank would indicate the shopper checked the box.

You can test this by using the test application customdump.cgi or custom-dump.pl and see what happens when you check it and what you get when you don't.
Post Reply