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

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Shipping

Thread began 1/21/2015 9:38 pm by Kamen Nikolov | Last modified 3/03/2015 12:00 pm by Jason Byrnes | 793 views | 21 replies |

Kamen Nikolov

Shipping

Hello,

This is my fist site wit eCart 6.1.0 and everything is so different: shipping, taxes and so on.

I have setup a value in my dB for shippable items = 1 for not-shippable items = 0. I need to do shippable and not-shippable as well on the shippable Items I would like to do different shipping elves such as 1 CD + $5.00 shipping, 2 CDs + $7.00 shipping, 3 CDs + $9.00 shipping as well I need to do it for US and Canada (same shipping) + International Shipping (1 CD + $8.00 shipping, 2 CDs + $10.00 shipping, 3 CDs + $12.00 and so on).

Any advise and help will be appreciated.

Thank you.

Kamen

Sign in to reply to this post

Jason ByrnesWebAssist

the logic of setting shipping and tax rules in eCart 6 is no different from previous versions.

for different shipping rates by product type such as CD, you need to have a column for itemType

then in the shipping you can set the rule for each level:

triggers:
"Items with a Specific Column value"
Number of items where "shippable" has a value of "1" is ">" a value of "0"

AND
"Items with a Specific Column value"
Number of items where "itemType" has a value of "CD" is "=" a value of "1"

Charges:
Falt Rate: 5


and create additional rules for each level

Sign in to reply to this post

Kamen Nikolov

Thank you. I got it. I figured it out. I was missing one step.

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

Sign in to reply to this post

Kamen Nikolov

Can I add to the Shipping rules, I have created so far, an option these rules to be valid for North America (US and Canada) only and have a separate set of rules valid for International Shipping?

Sign in to reply to this post

Jason ByrnesWebAssist

you would need to add code to the confirm_cart page,af term the cart getContents function call, to set a session based on the shipping country. double check the checkout page for name of the shipping country form element.

for example, if it is named Country_2

the code to set the Session would be:

<?php
if(isset($_POST["Country_2"])) {
if(($_POST["Country_2"] == "US") || ($_POST["Country_2"] == "CA")) {
$_SESSION['shipregion'] = "North America";
} else {
$_SESSION['shipregion'] = "International";
}
}
?>




you can then add a trigger to the shipping rules for Based on session value:
if the session 'shipregion' has a value of 'North America'

for example.

Sign in to reply to this post

Kamen Nikolov

Hi Jason,

Do I have to do some special set up for Country_2 in the Shopping Cart object?

I have noticed something weird in the checkout process:

1. When I did the CheckOut Pages it has showed me to forms on the checkout.php but I have ended up with one (1) form. I am using PayPal Express. Is that right???

2. If I select any other country different from US lets say Aruba, it will still ask me for State (it doesn't require it but technically is mandatory - no * next to it) -> If you leave it blank and press Continue, it checks/validates the form and comes back with an error asking me to select my state and loads only lists US states??? Aruba doesn't have US states???

I had to switch the countries around to get a field that I can write in. It is very confusing - I have to write Aruba in the State field. Is that suppose to be like that???

You can see it here http://www.sharigeller.ca/_dev/products.php.

Thank you.

Sign in to reply to this post

Jason ByrnesWebAssist

Country-2 is an example. Look at the checkout form and make note of the country element name.

in your case, it looks like the shipping country element is just named Country:
<select class="formMenufield_Medium ui-state-error h5-active" name="Country" id="Country" rel="" tabindex="8" title="Please select your country." required="true">

so edit the code appropriately.

you questions 1 and 2 are as designed, with express checkout, there is only a shipping form, they set the billing when they get to paypal. and the country select list will only trigger a state list if US is selected, for other countries, a regular text field is used.

Sign in to reply to this post

Kamen Nikolov

Thank you for the explanation.

I don't really need shipping by ship regions as you are suggesting. What I need is how to implement shipping to Canada with multiple rates, shipping to US with multiple rates an International Shipping with multiple rates. I have called CA and US North America because I might use the same rates for both.

I have tried to use "eCartCheckoutForm_country" method but it seems to me this is not working with all multiple rates I have done so far. Maybe I am doing something wrong.


Regarding the Q2 if it is a just a plane text field and it is not required (some countries don't have states or provinces), why is it getting checked and verified and comes back with an error and loads the US state as selection?

Thank you.

Kamen

Sign in to reply to this post

Jason ByrnesWebAssist

Please provide a Skype username or a US phone number and a good time to contact you when you will be in front of your computer and we will have an engineer contact you to resolve this issue over the phone.

We are available Monday - Friday from 9am - 4pm EST (except major U.S. holidays).

Sign in to reply to this post
loading

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