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 triggers

Thread began 6/16/2016 6:01 am by NWak04030229 | Last modified 6/16/2016 4:27 pm by Ray Borduin | 89 views | 5 replies |

NWak04030229

shipping triggers

Is there a tutorial or manual to show how to use the different shipping triggers and configurations in eCart?

Sign in to reply to this post

Ray BorduinWebAssist

There is no tutorial on that specific topic, but if you tell us what you are trying to do, we may be able to point you in the right direction.

Sign in to reply to this post

NWak04030229

I'm probably looking at something impossible but here is the scenario:

I am building a website where there are a multitude of items for sale from small cards to large items such as mugs, etc. I want to be able to set up postal charges in the UK, Europe and USA for these items. On the other sites I have used eCart I have been able to set the shopping up as to the number of items as all the items are of the same type (posters, programs, etc) However, due to the differing in nature of the items on this site I am wondering what the best way of setting this up would be. Would it be weight? If so, is that done through the configuration process?

Sign in to reply to this post

markdoyle87077

Yes this is best achieved based on weight. Best way I have found is set up a table in your database with all your shippingcountries

CREATE TABLE `shippingcountry` (
`shippingcountryid` int(11) NOT NULL,
`country` varchar(50) DEFAULT NULL,
`shipping_country_code` varchar(50) DEFAULT NULL,
`language` varchar(50) DEFAULT NULL,
PRIMARY KEY (`shippingcountryid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

then create your shipping rates

CREATE TABLE `shippingrates` (
`shippingrateid` int(11) NOT NULL,
`shippingrate` double DEFAULT NULL,
`shippingtype` int(11) DEFAULT NULL,
`shippingcountry` int(11) DEFAULT NULL,
`shippingincrement` double DEFAULT NULL,
PRIMARY KEY (`shippingrateid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

the bring them all together in a view and then use this view in your checkout

VIEW `view_shipping_and_sales_tax` AS
SELECT
`shippingrates`.`shippingrateid` AS `shippingrateID`,
`shippingrates`.`shippingrate` AS `shippingrate`,
`shippingrates`.`shippingtype` AS `shippingtype`,
`shippingrates`.`shippingcountry` AS `shippingcountry`,
`shippingrates`.`shippingincrement` AS `shippingincrement`,
`shippingtype`.`shippingtypeid` AS `shippingtypeID`,
`shippingtype`.`shippingtypename` AS `shippingtypename`,
`shippingcountry`.`shippingcountryid` AS `shippingcountryID`,
`shippingcountry`.`shipping_country_code` AS `shipping_country_code`,
`shippingcountry`.`country` AS `country`,
`shippingcountry`.`language` AS `language`
FROM
((`shippingtype`
JOIN `shippingrates` ON ((`shippingtype`.`shippingtypeid` = `shippingrates`.`shippingtype`)))
JOIN `shippingcountry` ON ((`shippingrates`.`shippingcountry` = `shippingcountry`.`shippingcountryid`)))

set up ecart so you have a BaseRate for shipping and then an IncrementRate for every extra kg

Hope this helps.

Oops you also need shippingtypes

CREATE TABLE `shippingtype` (
`shippingtypeid` int(11) NOT NULL,
`shippingtypename` varchar(50) DEFAULT NULL,
PRIMARY KEY (`shippingtypeid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

Sign in to reply to this post

Ray BorduinWebAssist

Mark is correct. When shipping gets complicated it is usually best resolved by doing tables and looking up rates from the database.

Then you store the shipping amount in the Session and just use that session variable in the eCart shipping rule as the amount when it exists.

If weights aren't enough you could store the item type in the database and have different shipping charges based on both type and weight when necessary.

This is something we could help with in a premier support ticket.

Sign in to reply to this post

NWak04030229

Thank you both very much. I will certainly have a think about this. Am away for a week but will get back to you if looking to go premier route. Again, many thanks Nick

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