Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

****please need help urgently,*****


idlerob

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • 2 weeks later...

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

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...