Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Individual Shipping Prices


Recommended Posts

Here's my problem...


I've added a new attribute to TABLE_PRODUCTS called products_shipping -> decimal (5,2) / NULL

I've altered the /admin/categories.php accordingly, so I't will read the values from TABLE_PRODUCTS and also write them to TABLE_PRODUCTS...

no problem what so ever... easy going...


The shop is set to calculate the shiping costs (only one type offered) according to its weight (0-4.9 kg = 6.9 € ; >=5 kg = 10,- €)


The thing I wanna achieve now, is to alter the /includes/modules/shipping/table.php function quote() in such a fashion that it'll

check if one of the products in the shoping cart has an individual shipping price saved in the Database,

and if it's higher than the standard shipping costs, it'll replace the standard shipping costs.


Therefore We can decide to set special shipping prices for extremely heavy or bulky items.

For example an item thats lighter than the 5kg but still is so bulky we'd have to charge extra extra (15,- € for example)


Now where must I set my routine to check on the database, compare the values and change the value of the shipping costs if the DB value exceeds the standard value ???


I hope this explanation aint to confusing :)

Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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