close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Help With Shipping Costs

Thread began 8/11/2011 4:43 am by laura_ellis427550 | Last modified 8/15/2011 10:12 am by laura_ellis427550 | 1426 views | 7 replies |

laura_ellis427550

Help With Shipping Costs

Hi,

I'm after some help with shipping costs. I'm creating a shop with ecart that sells fabric by the metre. The client initially wanted a flat shipping cost per metre purchased which is what I included when creating the shop. However, they've now changed their mind and want to charge for shipping based on quantity bought, as follows:

For 1m = £2.00 shipping
For 2-20m= £5.00 shipping
For 21-49m = £10.00 shipping
For 50m or over = free shipping

How and where do I go about changing the shipping rules to reflect this change?

Many thanks in advance,

Laura

Sign in to reply to this post

Jason ByrnesWebAssist

is quantity the same as meters in this cart?

you can congure shipping charges in the eCart object on the shipping tab.

with your cart display page open, go to Window -> Server Behaviors, in the server behaviors panel, click the eCart Object to open the eCart object editor.

go to the shipping tab to set shipping rules.


your shipping rules will use the "Subtotal for any column" option for the trigger

and a flat rate shipping charge.

for example, to set up the 1m charge:

triggers:
Subtotal for any column - if the subtotal of column 'Quantity' is '=' a value of '1'

flat rate charge of 2

for the 2 - 20 charge:
triggers:
Subtotal for any column - if the subtotal of column 'Quantity' is '>=' a value of '2'

AND
Subtotal for any column - if the subtotal of column 'Quantity' is '<=' a value of '20'

flat rate charge of 5

Sign in to reply to this post

laura_ellis427550

ratersa 917

They are the same, yes. Thanks, I'll give it a go.

Sign in to reply to this post

laura_ellis427550

Shipping Exception

Hi Jason,

That worked fine - thanks. However ...

I will also be adding the option to add samples of fabric to the cart, for which there is no shipping charge. At present the shipping rules will apply the same charges to the samples as to the actual fabrics and I can't work out a way to apply an exception to them. Instead of shipping they will have a flat charge applied to them when someone orders more than 5. I assume that I can cater for that charge in the "Charge" section of the eCart Object but how do I get around the shipping issue?

Sign in to reply to this post

Jason ByrnesWebAssist

you would need to add a new column to the cart object called "shippable".

for the items shipping should apply to, set the shippable column to 1 in the add to cart buttons.

for the items shipping should not apply to, set the shippable column to 0 in the add to cart button.

then in the shipping rules, you will need to use the custom condition trigger option and add the following code:

$this->ConditionalTotal("Quantity", "shippable", "1")

for example, the trigger for the 1meter rule will be:
$this->ConditionalTotal("Quantity", "shippable", "1") == 1


the trigger for the 2 - 20 meter rule would be:
$this->ConditionalTotal("Quantity", "shippable", "1") >= 2

AND
$this->ConditionalTotal("Quantity", "shippable", "1") <= 20

Sign in to reply to this post

laura_ellis427550

Shipping

Hi Jason,

The first set of shipping rules that I applied worked fine. However, when I add the second ones with the custom condition, I get a totally blank page when I preview it in a browser. What will cause that to happen? I've attached the page that the cart has been applied to.

Thanks,
Laura

Attached Files
Archive.zip
Sign in to reply to this post

Jason ByrnesWebAssist

sorry, i gave you bad syntax for the custom condition, instead of:
$this->ConditionalTotal("Quantity", "shippable", "1") = 1


the custom condition should be:
$this->ConditionalTotal("Quantity", "shippable", "1") == 1

Sign in to reply to this post

laura_ellis427550

Great - all working now. Many thanks.

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