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
Default shipping but still have options
Author Message
Reply with quote
Post Default shipping but still have options 
Hi,
I want to set a default shipping method, USPS Priority Mail, so that if they forget to select something they don't get free shipping. I still want the rest of the options in my drop down, just want that one to show up in the box when they first look at it.
Thanks!
~Kati

View user's profile Send private message
Reply with quote
Post  
Kati,
You can do something like the following at the top of the shipping method selections:
Code:

<option value="$vform_Ecom_ShipTo_Method"><!--agorascript-pre
 if ("$vform_Ecom_ShipTo_Method" eq "") {
   return "USPS Priority Mail (Priority)";
  } else {
   return "$vform_Ecom_ShipTo_Method";
  }
--></option>


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  
When I do that it does not charge for shipping. It lists that shipping option twice. I tried removing the second option and it still didn't work. Here is the code and website link. Any thoughts? Thanks for the help!

http://www.jesussaid.biz/cgi-bin/store5/agora.cgi

<SELECT NAME=Ecom_ShipTo_Method>
<option value="$vform_Ecom_ShipTo_Method"><!--agorascript-pre
if ("$vform_Ecom_ShipTo_Method" eq "") {
return "USPS Priority Mail (3-7 days)";
} else {
return "$vform_Ecom_ShipTo_Method";
}
--></option>
<option value="USPS Priority Mail (Priority)">
USPS Priority Mail (3-7 days)</option>
<OPTION VALUE="UPS Ground Residential(GNDRES)">UPS Ground Residential</OPTION>
<OPTION VALUE="UPS Ground Commercial (GNDCOM)">UPS Ground Commercial</OPTION>
<OPTION VALUE="UPS 2nd Day (2DA)">UPS 2nd Day</OPTION>
<OPTION VALUE="UPS Next Day (1DA)">UPS Next Day</OPTION>
</SELECT>

View user's profile Send private message
Reply with quote
Post  
The code you have is incorrect and will NOT calculate because the API doesn't recognize the method...

The code I gave is what MUST be used for the correct calculation.


_________________
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  
Okay, now it's working...

I had tried it with the code posted exactly the way you showed and it didn't work at first. I changed it again and tried it a few different ways and now it works again. Weird...
Thanks for your help!
~Kati

View user's profile Send private message
Reply with quote
Post It's still not right... 
A customer just submitted an order and it didn't charge shipping, again. Here's the code I have right now. Any ideas? Also, is there a way to have the USPS Priority only show up once on the drop down menu? Thanks!

<SELECT NAME=Ecom_ShipTo_Method>
<option value="$vform_Ecom_ShipTo_Method"><!--agorascript-pre
if ("$vform_Ecom_ShipTo_Method" eq "") {
return "USPS Priority Mail (Priority)";
} else {
return "$vform_Ecom_ShipTo_Method";
}
--></option>
<option value="USPS Priority Mail (Priority)">
USPS Priority Mail (3-7 days)</option>
<OPTION VALUE="UPS Ground Residential(GNDRES)">UPS Ground Residential</OPTION>
<OPTION VALUE="UPS Ground Commercial (GNDCOM)">UPS Ground Commercial</OPTION>
<OPTION VALUE="UPS 2nd Day (2DA)">UPS 2nd Day</OPTION>
<OPTION VALUE="UPS Next Day (1DA)">UPS Next Day</OPTION>
</SELECT>

View user's profile Send private message
Reply with quote
Post  
Ya know, I just checked out your site and it does NOT look like the shipping is set up properly.
USPS & UPS are returning errors...


_________________
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  
any idea what's wrong with it? I copied the code from the shipping manager. The only thing I changed was the stuff on this page.

View user's profile Send private message
Reply with quote
Post  
Did you set up the UPS & USPS shipping settings in the "Shipping Settings Manager"????


_________________
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  
Yes, I did. I think I got it figured out late last night. If you could take a look again and make sure it works on your end I would appreciate it.
Thanks for the help!
~Kati

View user's profile Send private message
Reply with quote
Post  
It's not working....
We might have go at this from a different angle that will require editing the Offline-order_lib.pl file.

Return the order form's info back to:
Code:
<!--agorascript-pre
 if ("$vform_Ecom_ShipTo_Method" eq "") {
   return " Select Shipping Method ";
  } else {
   return "$vform_Ecom_ShipTo_Method";
  }
-->


In the Offline-order_lib.pl file, edit the following:
Line 5:
Code:
$versions{'Offline-order_lib.pl'} = "5.0.002";


Edit to:
Code:
$versions{'Offline-order_lib.pl'} = "5.0.002 - Edited required fields array";


Look for:
Code:
%sc_order_form_array

On a new line, Just after:
Code:
'Ecom_BillTo_Online_Email', 'Email',

PUT:
Code:
'Ecom_ShipTo_Method', 'Shipping Method selection',


Look for:
Code:
@sc_order_form_required_fields

On a new line just after:
Code:
"Ecom_BillTo_Online_Email",

PUT:
Code:
"Ecom_ShipTo_Method",


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  
Made the changes. Looks like shipping is being calculated now. If you could check it that would great.

View user's profile Send private message
Reply with quote
Post  
Appears to be working for me, too...
The note I had you put next to the version number will remind you that you altered that file from the default file. That way, when there is an update for that file available, you will know that you will need to reapply the edits (compare the old and new file) to the new file.

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  
Awesome. Thanks again!!

View user's profile Send private message
Reply with quote
Post Re: Default shipping but still have options 
katimonk wrote:
Hi,
I want to set a default shipping method, USPS Priority Mail, so that if they forget to select something they don't get free shipping. I still want the rest of the options in my drop down, just want that one to show up in the box when they first look at it.
Thanks!
~Kati


i would like to have the same thing for my site - overall so far things have been working great with agoracart. but i just received an order which was completed that didnt include shipping.

i only offer 2 options - USPS Priority Mail (would like this option to be the default) & USPS Int'l Priority Mail.

using AgoraCart Store Manager ver 5.0.006

------------------------------------ would i use this? if so, where do i enter this code?

<option value="$vform_Ecom_ShipTo_Method"><!--agorascript-pre
if ("$vform_Ecom_ShipTo_Method" eq "") {
return "USPS Priority Mail (Priority)";
} else {
return "$vform_Ecom_ShipTo_Method";
}
--></option>

View user's profile Send private message
Reply with quote
Post  
ok, nevermind - i got it working...this is what i have

<select name=Ecom_ShipTo_Method>
<option value="USPS Priority Mail (Priority)">USPS Priority Mail 2-3 Days</option>
<option value="USPS (Priority Mail International)">USPS Priority Mail International</option>
</select>


i basically just removed the 'select shipping option'

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