| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Shipping With MIN & MAX weight options - V4.0.x | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
Shipping With MIN & MAX weight options - V4.0.x
Heres a mod that will allow you to enter not only the maximum weight limit for a user defined shipping method but also the minumum weight to trigger the availablity of the shipping method.
This has not been tested or coded to deal with real time shipping methods. Saying that its not been fully tested at all so use this as a guide or a starting point. It seems to work ok so far with V4.0.15 that it was done in Basic example is Method 1 - Courier 1 : Packages up to 100Kg - бё10 Method 2 - Courier 2 : packages Over 100kg - бё20 At the moment if you do this then both couriers and prices show in the shipping options drop down. Customer will no doubt not choose a more expensive courier but it could cause confusion. What we want is that only the couriers that we choose are displayed. All Ive done is add another field to the shipping table for MIN weight Add a new row to the shipping table like this Code:
Edit admin/shipping.php replace Code:
with Code:
Edit includes/shipping.php Replace Code:
With Code:
Edit skin1/admin/main/shipping.tpl replace it with this Code:
All that happened in that file was to add the form fields for the min value too. Now add a minimum and maximum value in the weight sections of the shipping methods page in the admin area and test it all out Im sure this could be and may have to be tweaked to work for more complex shipping setups but with basic user defined methods it seems to work ok so far. Feel free to add to this as you see fit
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. EWD Hosting Hands On Hosting |
|||||||||
#2
|
|||||||
|
|||||||
NICE!!!!!
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||
|
|||||||
Re: Shipping With MIN & MAX weight options - V4.0.x
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
__________________
Cliff Aliperti X-Cart Gold 4.0.18 |
|||||||
#4
|
|||||||
|
|||||||
Re: Shipping With MIN & MAX weight options - V4.0.x
Quote:
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:
Code:
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:
Code:
It's work good with me now Thanks Mr. shan
__________________
X-Cart Platinum 4.6.5 |
|||||||
|
|||
X-Cart forums © 2001-2020
|