ecart Object setup for delivery cost based on cart weight
HI Jason, I spoke to Ray and he told me this could be something that could be helped with on the forum since its not really using custom code, but just configuring of the eCart Object.
What I would like to do is configure the eCart Object so that it can calculate the shopping basket delivery cost based on the weight total of the basket. Its in early stages of coding, as I wanted to configure it at the same time after I have run the Checkout Wizard to generate the pages. So wanted to get a head start on knowing how to configure the eCart Object (note: it be great at somepoint if there is a masterclass on the eCart Object and some of the things that can be done inside it, I certainly pay for that).
My client has a shop selling furniture so could range from bulky tables and chairs to less bulky items such as lamps. So they may delivery themsleves in their own van or use a courier. (I assume a courier if this shipping address so to far away for them to delivery in their own van).
I am storing the shipping costs related to weight in 3 seperate database tables:
Im using this structure so that I can usein future projects where the client can chose different delivery methods (but For now they cust want to delivery in the UK (which is stored in ShippingLocation and I assume they just want 1 delivery method (which is stored in ShippingOptions.
So for example
ShippingLocation has the following fields and data: (1 record)
ShippingLocationID = 1
ShippingLocationCountry = United Kingdom
ShippingCode = GB
ShippingLocationZones = World Zone 1
ShippingOptions has the following fields and data: (1 record)
ShippingOptionsID = 1
ShippingOptionsType Standard Delivery
and ShippingCosts has the following fields and data: (this is an example of 1 record so there will be many records with different WeightsTo And different CostsValue)
ShippingCostsID = 1
ShippingCostsType = Standard Delivery
ShippingCostZone = World Zone 1
ShippingCostsWeightTo = 500 (ths would be in Kg)
ShippingCostsValue = 10 (ths would be in British Pounds)
The ShippingCosts table is what I need to use in the eCart Object to calculate the total basket weight to then assign the value stored in ShippingCostsValue to the basket.
NOTE: I wanted to show the tables for ShippingLocation and ShippingOptions as the data in these tables will be used to created new records in ShippingCosts so that I have a level of flexability in creating future ShippingCosts that the client may want to add (such as next day delivery, 2 day delivery and even different countries). But for now they just want to delivery in the UK and assume they just one 1 delivery option (a delivery of a few days since its bulty furniture).
So please could you give me a run through on how to configure the eCart object to calculate shipping cost based on total basket weight please?