Just found this it may work for what you need UK Shipping by Postcode.
Mark Brittain
http:\\innerlightcrystals.co.uk\sales\
I have installed Big Royal Mail and all is going well at this stage. But, within my business I have extra long items appx' 3 meters in length. What I need to do is have the ability to fix a price on certain categories that have these types of product. Has anyone had this problem before and if so how did you work round it?
These products fall within length price structure and not weight, so a single price would cover them all. As a business I could then use a different carrier if so required.
Any thoughts?
You could clone one of the modules (say royal mail first class letter) give it a new name.
Copy <YourCatalog>/includes/modules/shipping/rm1stletter.php to <YourCatalog>/includes/modules/shipping/rmlongitem.php make changes below.
add a new type to the attributes for these itemsPHP Code:
class rmlongitem {
var $code, $title, $description, $enabled, $num_zones ;
// class constructor
function rmlongitem () {
global $order, $total_weight;
$this->version = '3.3.2';
$this->code = 'rmlongitem ';
Add the new attribute to the system (sql).PHP Code:
function quote($method = '') {
global $order, $shipping_weight, $shipping_num_boxes, $currency, $db;
$postage_check = array(100);
copy the language file <YourCatalog>/includes/languages/english/modules/shipping/rm1stletter.php to <YourCatalog>/includes/languages/english/modules/shipping/rmlongitem.phpCode:SELECT @LongItem_id := ifnull(max(products_options_values_id)+1,1) FROM products_options_values; SELECT @LongItem_id := ifnull(products_options_values_id, @LongItem_id) FROM products_options_values WHERE products_options_values_name="Long Item" ; REPLACE INTO products_options_values (products_options_values_id, language_id, products_options_values_name, products_options_values_sort_order) VALUES (@LongItem_id, 1, 'Long Item', 100);
In the file change every occurrence of RM1STLETTER to RMLONGITEM and modify all the descriptions as required.
Install the module then adjust the shipping weights and costs to cover the items you want to ship. Add the attribute "Long Item" to the items that you want to ship this way. If you only want it to apply to these items then turn on exact match and it will only allow these items to be shipped by this method. Note it may prevent them from being combined with other items. If you want to allow combinations but ensure that this method is selected you could set the shipping weight to 30.1Kg for the items which I think is above the maximum shipping weight for parcel force.
If you are not a coder then let me know and I'll see if I can create the module for you. I will not include it as part of big royal mail and will not guarantee that I will maintain it in the future as I do not know what shipping rates you will be using.
Mark Brittain
http:\\innerlightcrystals.co.uk\sales\
Just a few questions.
1) Do you only want this method to appear only when you have an item that is too long?
2) Is there one price for all items that are too long no matter how heavy?
3) can you combine other items with a long item?
4) is there any weight limit?
That should enable me to get something for you.
Mark
Mark Brittain
http:\\innerlightcrystals.co.uk\sales\
Attached a zip file with the module in. Install instructions are in README.htm in the docs directory.
You will need to adjust the rates to suit your requirements. The first figure is the maximum weight the second is the price you charge.e.g. (.1:1.4) is 100g (.1 kg) charging £1.40.
If you want to put in multiple rates then separate each one with a comma (,) e.g. (.1:1.4,1:20) this added above 100g to 1 kg charge £20.
I suggest that you turn on exact match for these items unless the shipping rate is above all other rates as it will appear for all items with out long item attribute. In its current form it will allow other items to be mixed in so if someone buys a rod and a reel then the items will be allowed in the same package. Give it a go and if you need any more help let me know.
Mark
Mark Brittain
http:\\innerlightcrystals.co.uk\sales\
Thank you Mark, I've had a good play with this mod and have got my attribute for Long Items working well :-) . One little query though, why is long items (length) have a weight rate charge? The reason I ask this is that I need to set up an excess weight charge (same cost as Long Items), but when setting an attribute for these items instead of Minimum Delivery Method showing 'Long Item' I want to display it as 'Heavy Item'. Is there a quick way I can do this with what you created?
Additional reply
I still need to keep the long item part you created, that is perfect. Would a duplicate mod work with another name work along side the Long Item mod?
Zen cart does not have length attributes. All the shipping modules are base on the weight of the item being shipped. Therefore the shipping module adds up the total weight of the order to calculate the cost of sending items. I added to Big royal mail the ability to take into account some aspect of size by using product attributes.
It sound like you are trying to use big royal mail to deliver via an other supplier (not royal mail). I would suggest that you just use the weight to determine the extra cost. If you want to use one of the modules you could just choose say 1st medium parcel and change all its headings in "\includes\languages\english\modules\shipping\rm1stmedparcel.php" to say what you want for the deliver. If you are entering the weights for all your items then you could just put in different weights for the different costs as described above. If you are using a template then you should copy the file above to includes>language>english>modules>shipping>YOUR_TEMPLATE in this way if you ever update big royal mail then your changes to the description will not be updated. (If you are not using royal mail rates then I would not advise updating as it would overwrite your price changes). If you do this you could use medium parcel for heavy items.
If you are using royal mail and want to keep the modules. Let me know. Is heavy item more important that long item or other way round?
Last edited by brittainmark; 17 May 2016 at 12:07 PM.
Mark Brittain
http:\\innerlightcrystals.co.uk\sales\
Bookmarks