WebsiteBaker Community Forum

WebsiteBaker Support (2.8.x) => Bakery Shop => Topic started by: HeidemanMedia on August 27, 2012, 09:16:48 AM

Title: Overwrite global shipping settings
Post by: HeidemanMedia on August 27, 2012, 09:16:48 AM
Hi,

for a client i use global shipping settings in bakery so for each product you pay the same shipping.. but now the client has a new category that needs a different shipping price. When i add shipping to a product this will be added to the global shipping. Is there a solution to use global shipping except one category?

greetz heidekeal
Title: Re: Overwrite global shipping settings
Post by: jacobi22 on August 27, 2012, 01:53:22 PM
i see only one solution: dont use global shipping settings - set the shipping price to each product - sorry ;-)

P.S. maybe, there its another way, if you use not the same shop, but i cannot test this for the moment (some lttle Problems with my local WB)
Title: Re: Overwrite global shipping settings
Post by: HeidemanMedia on August 27, 2012, 02:31:16 PM
aaah there are more than 6000 products so that's not a solution;) but mayme an idee to use a subdomain but i hope for an anther solution..
Title: Re: Overwrite global shipping settings
Post by: Bug on September 01, 2012, 09:40:16 AM
Search for the sjipping options in view_summary.php

Look for stuff like f_shipping somewhere at 75% down the page

There you can add and change everything, I did it once where items from one page needed free shipping.

What i did,
I added a databasefield to the items table called shippingvalue,
For the 'other' page i gave this a standard value of 1, the others i gave 0
(in the modify item i added a hidden formfield and a 'if page_id ==...$shippingvalue =1 thingy...)
In the view summery i add up the shippingvalues from the items in the cart, if the value is more than 0 the other shippingvalue is used, also with some ' if shippingvalue >0 ....

It will be a few hours before you understand how the view.. Files and the htt files work together and another few to understand what is going on in the view_summery.php but it will be worth it.

Also think about how shipping for combined orders have to be handled, if combined orders (with items that require regular shipping and items that require the alternative shipping) should not have the regular shipping  the above will do, if combined orders need the regular shipping i think you should count the items and count the shippingvalue, if thereare more items than the value of the shippingvalue it would mean the order is a combined order....

If you need to change the confirmation mail you will also find it at the bottom of the view_summary.php, some values and handy stuff resides in view_confirmation.p hp


Good luck!
(as always, make a backup first, you will fukk up here and there once or twice....)




Title: Re: Overwrite global shipping settings
Post by: HeidemanMedia on September 03, 2012, 03:51:07 PM
Hello Bug,

Thank you for your suggestions! I gonna look to it and hope ill will fix it:)

I let you know

greetz heidekeal