close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Zero shipping on cart page with a radio button

Thread began 6/16/2010 10:37 am by Suggs | Last modified 6/18/2010 5:01 pm by Eric Mittman | 872 views | 5 replies |

Suggs

Zero shipping on cart page with a radio button

Hi folks,

Im wanting to zero the shipping cost if a customer clicks on a radio button on the cart page.
Basically this is to allow them to collect the item in store and avoid paying a delivery charge.

is there an easy way to go about this.
If possible id also like the radio button to refresh the page once clicked, basically doing the same job as the update button as well

Cheers

Paul

Sign in to reply to this post

Eric Mittman

One way you could do this is to use the radio button to set the value of a session variable using the eCart > general > set session value server behavior. Once you have the value stored in a session variable you can then go and update your shipping rule to take into account this variable. For example if you choose the option for pickup and this sets the session variable to a value of "pickup" you can then modify your shipping charge rule to add another condition to the trigger, you will say 'based on session variable value' and choose this new session variable specify that if this variable does not have a value of 'pickup'. This will make it so the shipping is not charged if this variable exists with this value.

To make the form submit with the selection of the radio option you could add in some js to the onchange event like this:

onchange="document.yourform.submit();"
Sign in to reply to this post

Suggs

Hi Eric,
Thanks for this.
I got this far, however as soon as I add the shipping rule for the server behaviour and add something to the cart, it simply does not show any delivery charge at all when the cart page loads, Remove this shipping condition (based on session variable value) and the cart returns the original shipping display.
Im obviously missing something here.

Cheers

Sign in to reply to this post

Eric Mittman

If the session variable is set it should cause the shipping rule to not be triggered. If the shipping is not triggered you will not see this section in the cart display. If adding the condition makes it so the shipping does not show regardless then you may need to add another set session value server behavior to initialize this session variable to an alternate value. This way the session variable will exist before the rule is triggered but unless the user makes the pickup selection the value should be set in a way that allows the shipping to be charged.

If you have any further problems with this post back with a copy of your WA_eCart folder and the page you are setting the variables on in a zip archive so we can take a look.

Sign in to reply to this post

Suggs

Hi Eric,

Thats solved it.
It works a treat now,

Thanks for your help

Sign in to reply to this post

Eric Mittman

Glad to hear that. Let us know if you have any other questions.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...