idlerob Posted September 9, 2005 Share Posted September 9, 2005 Have a few questions regarding a shipping contribution? I have 5 catagories - CD albums, CD singles, vinyl, DVDs and tshirts Each catagory of products needs to have different set postage costs but also any additional items from the same catagory be cheaper price eg. CD albums = 1.50 + 1.00 for additional items CD Singles = 1.00 + 50p for additional items etc...... If possible i also need prices to be different if sent outside UK I would have thought this would be possible and simple to do as i feel it is quite a required aspect of an online shop and have seen this throughout all online shops. Please any help would greatly be appreciated Quote Link to comment Share on other sites More sharing options...
brw96 Posted September 13, 2005 Share Posted September 13, 2005 Hi, I haven't seen any contributions that do this either. I would suggest making a database table that holds all the details for each category: id, name, main_charge_uk, secondary_charge_uk, main_charge_non_uk, secondary_charge_non_uk Here id is just the table's primary key while main_charge_uk is the main charge for items in that category (within the UK) and secondary_charge is the cheaper price you referred to (within the UK). main_charge_non_uk and secondary_charge_non_uk are the main and cheaper prices respectively when the items are sent out of the UK. Then add a field to your products table for the category -- add a new field to the admin section to allow a category to be assigned to a product when it is created/edited. Then in your shipping module's quote function, set the cost variable to be the result of a function call. Then in the function do the necessary calculations for the price of the delivery and return the price. I have seen this approach before and it does work, but the algorithm required to get the costs right can be extremely complicated -- good luck. Hope this helps Brian Quote Link to comment Share on other sites More sharing options...
idlerob Posted September 22, 2005 Author Share Posted September 22, 2005 hi thanks for your reply loks like it could be possible just i havent much clue about what you meant. I managed to incoporate the individual product shipping rate with zones but i need to allow for reduced postage on any other item that has same shipping cost rather then just the same product you think you could help some more :) thank you Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.