The Official Website of AgoraCart and Agora.cgi
AgoraCart.com Demos Download AgoraCart User Manuals & Wiki Gold Members Forum Go Gold Now! Gold Version Memberships

AgoraCart.com

About
Features
Download
Payment Gateways
Send a Donation
Founders Club
BLOG: News & Updates

Showcases & Demos

AgoraCart Demos
Shop Live Stores

Downloads & Add-ons

Gold Version Downloads
DBwizz Database Mgr.
AgoraCart.com Store

Help & Support

User Manuals
Gold Version Users Forum
Gold Version Chat
Tech Support
Certified Agora Pros
Certified Designers
Hire a Freelancer

Gold Version Members

Member Benefits
Join Today!
Gold Members Home
Gold Version Users Forum
Gold Version Chat Rooms
Gold Version Downloads

For Store Owners

Merchant Accounts
Cool Resources
Advertise Here
"Powered by" Logos
Web Hosting Search

Misc.

Contact Us
MEET's Talking Guide
The Ancient Greek Agora






AgoraCart Free User Forums

This is the official FAQ and Cool Tips guide For the AgoraCart shopping Cart software


Official Sponsors of the AgoraCart Project:

       


RegisterSearchFAQLog in
Reply to topic Page 1 of 1
Made changes and Shipping Logic doesn't work now...
Author Message
Reply with quote
Post Made changes and Shipping Logic doesn't work now... 
I was using the country to decide shipping rates but the client changed the rates so that I can't use it anymore. I now want to use the shipping method that the user would choose to calculate shipping. But I can't seem to make it work.

What am I doing wrong here?



$ship_go = $form_data{'Ecom_Ship'};
if ($ship_go eq "go")

{@sc_shipping_logic = (
"In Canada - Regular Post||||8.00",
"In Canada - Express Post||||18.00",
"Outside Canada - Regular Post|||12.00",
"Outside Canada - Express Post||||32.00");

$shipping_price = &calculate_shipping($temp_total,
$total_quantity, $total_measured_quantity);
$ship_logic_done = "yes";}


_________________
crucibleinteractive
View user's profile Send private message Visit poster's website
Reply with quote
Post  
No spaces or characters can be used in the shipping logic.
Also, make sure that the option value on the order form matches EXACTLY what you have in the logic for the shipping method.

What is the URL to the store?


_________________
God Bless!
Bonnie - AgoraCart Moderator

Get a Gold Membership
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger ICQ Number
Reply with quote
Post  
I tried using the same code with no spaces or characters, although I did use upper case. Still no luck. I THINK I got everything to match...

{@sc_shipping_logic = (
"InCanadaRegularPost||||8.00",
"InCanadaExpressPost||||18.00",
"OutsideCanadaRegularPost|||12.00",
"OutsideCanadaExpressPost||||32.00");

The URL is http://www.kratom-salvia-botanicals.com

TIA,

Bonnie


_________________
crucibleinteractive
View user's profile Send private message Visit poster's website
Reply with quote
Post  
Is that all you have in the custom shipping logic box?
Please post everything that is in the custom shipping logic box.

I couldn't check your site as it appears to be down at the moment.


_________________
God Bless!
Bonnie - AgoraCart Moderator

Get a Gold Membership
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger ICQ Number
Reply with quote
Post  
This is what I have in my Shipping Logic Box. I added underscores (let me know it that's the problem, but I saw it used in another post about shipping).
I'm getting nothing at all returned. I've been checking and rechecking and puzzling over this with no luck. It should be simple. What am I missing?



$ship_go = $form_data{'Ecom_ShipTo_Method'};
if ($ship_go eq "go")

{@sc_shipping_logic = (
"In_Canada_Regular_Post||||8.00",
"In_Canada_Express_Post||||18.00",
"Outside_Canada_Regular_Post|||12.00",
"Outside_Canada_Express_Post||||32.00",
"Pickup||||1.00");

$shipping_price = &calculate_shipping($temp_total,
$total_quantity, $total_measured_quantity);
$ship_logic_done = "yes";}


TIA!


_________________
crucibleinteractive
View user's profile Send private message Visit poster's website
Reply with quote
Post  
Ummm... Looks like the order form is a bit messed up.
What did you use to edit the file? There is a blank line between each line that can be messing things up.
The agorascript is seen in the source code and that should not be...
Was it uploaded in ASCII mode?

You custom shipping logic does not appear to be formatted quite right.
Should be more like:
Code:
$ship_go = $form_data{'Ecom_Ship'};
if ($ship_go eq "go") {
@sc_shipping_logic = (
"In_Canada_Regular_Post||||8.00",
"In_Canada_Express_Post||||18.00",
"Outside_Canada_Regular_Post|||12.00",
"Outside_Canada_Express_Post||||32.00",
"Pickup||||1.00");

$shipping_price = &calculate_shipping($temp_total,
$total_quantity, $total_measured_quantity);
$ship_logic_done = "yes";
}

And the 'Ecom_Ship' form element is commented out, which it shouldn't be...


_________________
God Bless!
Bonnie - AgoraCart Moderator

Get a Gold Membership
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger ICQ Number
Reply with quote
Post  
Thanks, still working on it.

What is 'Ecom_Ship' versus 'Ecom_ShipTo_Method' ?

I opened the file in Dreamweaver at first. Maybe that contributed to the problem. Working in Notepad now...


_________________
crucibleinteractive
View user's profile Send private message Visit poster's website
Reply with quote
Post  
Still no luck! I'm sure it's just a small thing... So a challenge that I keep missing it...

Any ideas?

TIA


_________________
crucibleinteractive
View user's profile Send private message Visit poster's website
Reply with quote
Post  
Okay it WAS a small thing.

For others who may have the same problem, here's what it was:

if ($ship_go = "go") {

instead of

if ($ship_go eq "go") {


HTH!


_________________
crucibleinteractive
View user's profile Send private message Visit poster's website
Reply with quote
Post  
Strange, it shouldn't have made a difference.
I have used the logic with it the way I had it coded...
Oh, well....
There's always more than one way to skin a cat...


_________________
God Bless!
Bonnie - AgoraCart Moderator

Get a Gold Membership
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger ICQ Number
Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum