Help With Shipping Costs

Thread began 8/11/2011 7:43 am by laura_ellis427550 | Last modified 8/15/2011 1:12 pm by laura_ellis427550 | 915 views | 7 replies |

8/11/2011 7:43 am  |  #1 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?

Laura

8/11/2011 3:01 pm  |  #2 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

8/12/2011 2:06 am  |  #3 laura_ellis427550

ratersa 917

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

8/12/2011 1:03 pm  |  #4 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?

8/12/2011 1:36 pm  |  #5 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

8/15/2011 10:17 am  |  #6 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

8/15/2011 11:44 am  |  #7 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

8/15/2011 1:12 pm  |  #8 laura_ellis427550

Great - all working now. Many thanks.

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.

Everything else!

Close Window

Account or customer service questions?

Need technical support?

Content

Layout

Ease of use

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 Window

We were unable to retrieve the attached file

Close Window

Attach and remove files

• Text Formatting
• Insert Element
• Block Formatting
• Cancel
Close Window

Close Window

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