TolleyM Posted May 5, 2011 Share Posted May 5, 2011 hi all i am trying to set up zone rate shipping i have 3 zones - GB, Europe and US zone set up working fine -just shown zone 1 and 2 below as example however when i enter the calc rates ie Zone Based Rates Enable Zones Method True Tax Class --none-- Sort Order 0 Zone 1 Countries US,CA Zone 1 Shipping Table 3:8.50,7:10.50,99:20.00 Zone 1 Handling Fee 0 Zone 2 Countries GB Zone 2 Shipping Table 3:8.50,7:10.50,99:20.00 when i put items in shopping basket and check out it only ever takes the first shipping rate example 3:8.50,7:10.50,99:20.00 say the item purchased re US was 3kg, then shipping cost should be 8.50 - this works fine then say item purchsed 8 kg then shipping cost shd now be 10.50 but the system is still showing 8.50 regardless of weight of items - when i reach check out the system only ever takes the first shipping rate from the shipping table any ideas whats going wrong anyone mark Quote Link to comment Share on other sites More sharing options...
TolleyM Posted May 5, 2011 Author Share Posted May 5, 2011 hi all been investigating more and found out that even if a product for sale has NO weight, the shipping cost is still the first cost in the list when i first set this up the tare weight was set to zero so i started look at tareweight and it appears as if this is the only weight taken into account for the calulation example table reads 1:8,2:10.50,5:15,10:24,99:100.00 with tare weight set to zero -put an item in the shopping baset with a weight of 5kg then the price should be 15 but it only shows as 8 leave this 5kg item in the shopping cart, increase tare weight to 2kg (total 7kg) price should be 24 but is only 10.50 which is in the second weight band leave this 5kg item in the shopping cart, increase tare weight to 3kg (total 8kg) price should be 24 but is only 15 which is in the third weight band so basically the system is only looking at the tare weight for the calc and ignoring the weight of the product item any help much appreciated - can post copy of zone.php if it helps mark Quote Link to comment Share on other sites More sharing options...
TolleyM Posted May 5, 2011 Author Share Posted May 5, 2011 hi every one solved this the problem was actually in the file checkout_shipping.php in the code around line 61 is $total_weight = $cart->show_weight(); $total_count = $cart->count_contents(); both of these lines were set with // in front of them which effectivly removed them took away the // and works fine mark Quote Link to comment Share on other sites More sharing options...
Xpajun Posted May 6, 2011 Share Posted May 6, 2011 Hi Mark, Glad you managed to sort it yourself - I don't think anyone else would have caught on to that somehow. Standard 2.3.1 has those lines uncommented as does 2.2 - are you using a template by any chance? Quote My store is currently running Phoenix 1.0.3.0 I'm currently working on 1.0.7.2 and hope to get it live before 1.0.8.0 arrives (maybe 🙄 ) I used to have a list of add-ons here but I've found that with the ones that supporters of Phoenix get any other add-ons are not really neccessary Link to comment Share on other sites More sharing options...
TolleyM Posted May 6, 2011 Author Share Posted May 6, 2011 (edited) hi yes its for a customer i am building a store for - they purchased a template and i am working with that only guessed it was the checkout_shipping.php as i tried to configure the table rate shipping module but had the same results as with the zones, - then figured the only place the two came together was in the checkout_shipping.php page so then compared mine to standard untemplated page and found it so forget coding, i think with templates it more about being a detective mark Edited May 6, 2011 by TolleyM 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.