View Single Post
  #4  
Old 09-13-2006, 06:45 AM
 
salsabeel salsabeel is offline
 

Senior Member
  
Join Date: Jan 2004
Posts: 132
 

Default Re: Shipping With MIN & MAX weight options - V4.0.x

Quote:
Originally Posted by magazine-collector
Hi,

Totally new user here, and probably ranking near the very bottom of this group when it comes to being tech-savvy! That said, I've been setting up my cart myself relying heavily on the manual and these boards, and could really use the solution proposed here...but am confused!

First off, since this topic is almost a year old, is this solution still working and/or is there a different/better option that has cropped up? Would especially love to hear from the original poster or balinor (whose name I've come across so often here!)

I'm assuming this is a solution where I could specify, for example, a 3-5 pound rate for Media Mail in conjunction with a 0-5 pound rate for Priority with the result for the customer being, again for example, a 0.0-2.9 lb. order shows only Priority option w/Media option invisible and anything 3 lbs and over would show both Media and Priority Rates. Whereas by default a package less than 3 lbs that I did not want to offer the Media rate on would still show the customer the cheaper/unavailable rate? Correct?

I'm using X-Cart 4.0.18, which I assume is very similar to 4.0.15 that the original poster implemented this on. Has anyone tried with success on 4.0.18?

I can locate where to make the 2nd change (in admin/shipping.php) and the fourth change (in skin1/admin/main/shipping.tpl), but have no clue where to make the change to includes/shipping.php (I have a file called just include, w/o the "s" but there is no shipping.php file under it?) and do not understand where to make the first change (Add a new row to the shipping table like this...) -- not sure where I add code to the shipping table?

Thanks in advance!

Cliff Aliperti
X-cart 4.0.18
you can apllay changeing in
shipping/shipping.php

in 4.0.18
When I apply that changes in shipping/shipping.php
no shipping method is appeared with any weight
Code:
Sorry, there are no available shipping methods for your location
This message appeared because new code not contain
Code:
weight_limit='0'
because in all method in my store weight_limit=0
I solve this problem by this
- with the method that I want begin from specific weight I put min value and max value of weight
- change the code in shipping/shipping.php
From
Code:
# # The preparing to search the allowable shipping methods # $weight_condition = " AND (weight_limit='0' OR weight_limit>='$total_weight_shipping')";
To
Code:
# # The preparing to search the allowable shipping methods # $weight_condition = " AND (weight_limit='0' OR '$total_weight_shipping'<=weight_limit AND '$total_weight_shipping'>=weight_limit_min )";

It's work good with me now

Thanks Mr. shan
__________________
X-Cart Platinum 4.6.5
Reply With Quote