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
Shipping never appears
Author Message
Reply with quote
Post Shipping never appears 
Hi all,

I'm a newbie and am wits end trying get shipping to appear. I'm trying to use Custom Logic - weight and qty are always the same (presently have no preference of either one). Order form sayz:
<SELECT NAME="Ecom_ShipTo_Method">
<!--agorascript-pre
if ("$vform_Ecom_ShipTo_Method" ne "") {
return '<OPTION value="$vform_Ecom_ShipTo_Method">' .
'$vform_Ecom_ShipTo_Method &nbsp;</OPTION>' .
'<OPTION VALUE="USPSR">USPS Regular Mail';
} else {
return '<OPTION VALUE="USPSR" CHECKED>USPS Regular Mail';
}
--></OPTION>
<OPTION VALUE="USPSE">USPS Express Mail</OPTION>
<OPTION VALUE="USPSP">USPS Priority Mail</OPTION>
</SELECT>

shipping logic sayz:
@sc_shipping_logic = ( "USPSR||1|1|5.00",
"USPSR||2|2|6.00",
"USPSR||3|3|7.00",
...
"USPSE||15-20|15-20|47.70",
$shipping_price = &calculate_shipping($total_quantity);

I have tried both examples of ship by weight and quantity in hacks section. BTW-sales tax resolves as expected, shipping does not. Any ideas towards amending the errors of my path?

TIA - rich

View user's profile Send private message
Reply with quote
Post  
The last line of the shipping logic should be:
Quote:

$shipping_price = &calculate_shipping($temp_total,
$total_quantity, $total_measured_quantity);

I think you have to use quantity or weight, not both.....
but fix the last line of the shipping logic, give it a try. If it still doesn't work, you will have to try using either quantity or weight, only.

HTH!~


_________________
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  
Thank you for your kind suggestions. I changed my custom logic to:
Code:

@sc_shipping_logic = ( "||1||5.00",
                       "||2||6.00",
                       "||3||7.00",
                       "||4||7.50",
                       "||5||8.00",
                       "||6||8.50",
                       "||7||9.00",
                       "||8||9.50",
                       "||9||10.00",
                       "||10-14||12.00",
                       "||15-20||13.00",
$shipping_price = &calculate_shipping($temp_total,
 $total_quantity, $total_measured_quantity);


I turned custom logic on, then turned shipping measured by weight and SBW module off. The handling amount appears but shipping doesn't resolve. Is there possibly something else I've overlooked. I've modified the header & footer templates but don't recall anything that would affect this. I switched to a different payment gateway to see if I had butchered the .lib or html of linkpoint but still no joy with a different gateway option.

Any further suggestions or comments are greatly appreciated.

Kindest regards - rich

View user's profile Send private message
Reply with quote
Post Ignore previous - changed mind 
Again, thank you for your king suggestions. I switched back to weight and changed my code to:
Code:
@sc_shipping_logic = ( "USPS Parcel Post|||-1.9|5.00",
                       "USPS Parcel Post|||2.0-2.9|6.00",
                       "USPS Parcel Post|||3.0-3.9|7.00",
                       "USPS Parcel Post|||4.0-4.9|7.50",
.....
                       "USPS Express Mail|||15.0-20.0|47.70");
#
$shipping_price = &calculate_shipping($temp_total,
 $total_quantity, $total_measured_quantity);

...and all is well.

It was adding the range to the 4th column...duh.

Again thanks for pointing me in the proper direction.

Kindest regards - rich

View user's profile Send private message
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