How can I check the shipoptmenu choice in the shopping cart?

General ShopSite user discussion

How can I check the shipoptmenu choice in the shopping cart?

Postby dhs » Thu Mar 08, 2007 1:28 pm

Hi all,

Has anyone used Javascript to check the selected value of the "shipoptmenu" when the user hits the submit menu? If I can determine which value is selected then I could check it against the subtotal to make sure the correct processing charge was selected by the user.

Thanks,
David
Last edited by dhs on Thu Mar 08, 2007 2:06 pm, edited 1 time in total.
dhs
 
Posts: 15
Joined: Wed Jan 03, 2007 8:05 am

Postby BFChris » Thu Mar 08, 2007 1:59 pm

Which ship-to options menu do you mean? The country drop-down or the shipping method menu?
BFChris
 
Posts: 322
Joined: Mon Oct 09, 2006 3:28 pm
Location: PA

Postby dhs » Thu Mar 08, 2007 2:06 pm

It is the surcharge menu... Sorry I misspelled it above... but in the source code for the page it is named:

"shipoptmenu"

This feature is called the surcharge pull down menu in the back end.

Thanks in advance for any help!
dhs
 
Posts: 15
Joined: Wed Jan 03, 2007 8:05 am

Postby loren_d_c » Thu Mar 08, 2007 2:44 pm

Since the form is named order, and the form field is named shipoptmenu, then in JavaScript you can check its value by checking document.order.shipoptmenu.value.

-Loren
loren_d_c
 
Posts: 2572
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere


Return to User Forum

Who is online

Users browsing this forum: Bing [Bot] and 37 guests