close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Free Shipping to override premier support coding

Thread began 3/23/2017 2:23 pm by graham | Last modified 3/26/2017 12:32 pm by Ray Borduin | 1227 views | 6 replies |

graham

Free Shipping to override premier support coding

Ray, hope all is well. I have an issue with Free Shipping that I would ask for your help with. A while back we worked together to code a drop-down select, shipping option for my checkout.php page (attached, with confirm.php). It basically offered Free Local Delivery/Canada/US options, with fees for each. The reason I wanted it on the checkout page was to provide a check that certain addresses could not select Free Local Delivery by mistake. My wish is to provide Free Shipping to all orders over $100 (GrandTotal before taxes), but I can't figure out where to address the issue. Is this an easy fix? Thanks in advance!

Sign in to reply to this post

Rick348529

You should be able to add an IF statement to check the grand total. What exactly would you like the page to have different when the grand total is too low? What would appear or disappear and where?

Sign in to reply to this post

graham

Thanks for looking at my post, Rick. I tried to insert an If statement before the drop-down select, changing fees to zero if order > $100, but couldn't seem to nail it. Can you actually have an "if then else" scenario for dynamically setting the values of the select drop-down (if that makes sense :) )? I was thinking, even though it was awhile ago, Ray would recognize his handiwork and see a quick fix.

Sign in to reply to this post

Ray BorduinWebAssist

So you want the US and Canada fees to change to $0 on this page if the order is above $100? I can probably help but I need to understand exactly what it is you want to do.

Sign in to reply to this post
Did this help? Tips are appreciated...

graham

Thanks, Ray ... yes, the end result would be to reduce the shipping fee to zero for all orders over $100 (before tax and shipping) for the U.S. and Canada. I would like the select options on the checkout.php to indicate zero as well.

Sign in to reply to this post

Ray BorduinWebAssist

It looks like you could use code like this for the shipping select:

php:
<?php

          
if ($eCart1->TotalColumn("TotalPrice") > 100) { 
        
?>
        <option value="CA|0">In Canada - Free</option>
        <option value="US|0">To the U.S. - Free</option>
        <?php } else {
        
?>
        <option value="CA|10">In Canada = $10</option>
        <option value="US|15">To the U.S. = $15</option>
        <?php
          
}
        
?>
Sign in to reply to this post
Did this help? Tips are appreciated...

graham

Working on a Saturday ... thanks! :)
I will try it today, Ray .. and, again, thanks for your time on a weekend.

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...