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
Delivery fee (shipping) does not calculate.
Author Message
Reply with quote
Post Delivery fee (shipping) does not calculate. 
My custom logic does not work. It does not calculate at all. It gives me $0.00 result.

I have two options for shipping. Delivery and pickup.
I would like to set 5.00 flat fee if you choose delivery as a delivery fee.
If you choose pickup, it should be 0.

Here is my code.

@sc_shipping_logic = (
"Delivery|1-|||5.00",
"Pickup|1-|||0.00");
$shipping_price = &calculate_shipping($temp_total,
$total_quantity,$total_measured_quantity);
}


<SELECT NAME=Ecom_ShipTo_Method>
<OPTION value="$vform_Ecom_ShipTo_Method"><!--agorascript-pre
if ("$vform_Ecom_ShipTo_Method" eq "") {
return " Select Shipping Method ";
} else {
return "$vform_Ecom_ShipTo_Method";
}
--></OPTION>
<OPTION VALUE="Delivery">
Delivery</option>
<OPTION VALUE="Pickup">
Pickup</option>
</SELECT>

If you can help me out on this, that would be very helpful.

Thank you very much in advance.

View user's profile Send private message
Reply with quote
Post  
Remove the right curly bracket, at the end of your custom shipping logic...

If that doesn't take care of it, please post the URL to your store, and copy and paste all of what is in the custom shipping logic box in the manager.
Also, which version of the cart are you using?

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 very much. I can't believe I missed that bracket. After I remove it, it works just fine.

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