Forums / Addon Shipping Modules / Big Royal Mail 3.0

Big Royal Mail 3.0

Views: 98,541

Results 321 to 340 of 363
19 May 2021, 8:43 AM
#321
cunningstunt2 avatar

cunningstunt2

Zen Follower

Join Date:
Jan 2019
Location:
UK
Posts:
113
Plugin Contributions:
0

Big Royal Mail 3.0

Is it possible to use attributes to add an extra option, or possibly replace Special Delivery / Parcel Force with the Table rate?

A lot of the products we sell cannot be sent using Royal Mail as they are restricted, flammable adhesives, aerosols, etc so I need to be able to restrict all Royal Mail shipping options and use the Table Rate, which is set up with the price our hazardous carrier charges.

In the past we have sent everything on carriers just because it was easier, but having royal mail options set up for non-hazardous products will hopefully result in increased sales as the carriage charges will not be so high for smaller orders.

19 May 2021, 9:50 AM
#322
cunningstunt2 avatar

cunningstunt2

Zen Follower

Join Date:
Jan 2019
Location:
UK
Posts:
113
Plugin Contributions:
0

Re: Big Royal Mail 3.0

CunningStunt2:

Is it possible to use attributes to add an extra option, or possibly replace Special Delivery / Parcel Force with the Table rate?

A lot of the products we sell cannot be sent using Royal Mail as they are restricted, flammable adhesives, aerosols, etc so I need to be able to restrict all Royal Mail shipping options and use the Table Rate, which is set up with the price our hazardous carrier charges.

In the past we have sent everything on carriers just because it was easier, but having royal mail options set up for non-hazardous products will hopefully result in increased sales as the carriage charges will not be so high for smaller orders.

Nevermind, I think its working how I need it to, I wasn't seeing the Table Rate listed in shipping estimator, but when I restrict aerosols from using Royal Mail it does only show store collection and table rate.

19 May 2021, 1:20 PM
#323
brittainmark avatar

brittainmark

Totally Zenned

Join Date:
Apr 2009
Posts:
509
Plugin Contributions:
1

Re: Big Royal Mail 3.0

CunningStunt2:

Is it possible to use attributes to add an extra option, or possibly replace Special Delivery / Parcel Force with the Table rate?

A lot of the products we sell cannot be sent using Royal Mail as they are restricted, flammable adhesives, aerosols, etc so I need to be able to restrict all Royal Mail shipping options and use the Table Rate, which is set up with the price our hazardous carrier charges.

In the past we have sent everything on carriers just because it was easier, but having royal mail options set up for non-hazardous products will hopefully result in increased sales as the carriage charges will not be so high for smaller orders.

You can set up additional attribute values. 40 is the highest used currently for parcel force. If you set anything higher than that (say 50) then none or the royal mail modules will show.

If you want to to use this to restrict table rates on only those with attribute_postage of > 40 you could code this in the the table rates module.

You can see how i have done this in the includes>modules>shipping>BigRoyalMail>quote.php the $postage_check value for the module is set in the individual modules.
It should not take to much effort to change the other module.

Mark Brittain
http:\innerlightcrystals.co.uk\sales\

19 May 2021, 1:57 PM
#324
brittainmark avatar

brittainmark

Totally Zenned

Join Date:
Apr 2009
Posts:
509
Plugin Contributions:
1

Re: Big Royal Mail 3.0

CunningStunt2:

That's worked, I can see the attributes now, thank you!
Also I did notice a spelling mistake on 'special delivery' in the attributes list.
Attachment 19579

Thanks. I have corrected. (spelling not my strong point Dyslexia).

Mark Brittain
http:\innerlightcrystals.co.uk\sales\

20 May 2021, 3:00 PM
#325
brittainmark avatar

brittainmark

Totally Zenned

Join Date:
Apr 2009
Posts:
509
Plugin Contributions:
1

Re: Big Royal Mail 3.0

CunningStunt2:

Is it possible to use attributes to add an extra option, or possibly replace Special Delivery / Parcel Force with the Table rate?

A lot of the products we sell cannot be sent using Royal Mail as they are restricted, flammable adhesives, aerosols, etc so I need to be able to restrict all Royal Mail shipping options and use the Table Rate, which is set up with the price our hazardous carrier charges.

In the past we have sent everything on carriers just because it was easier, but having royal mail options set up for non-hazardous products will hopefully result in increased sales as the carriage charges will not be so high for smaller orders.

Liked this idea so I have add and attribute "Do Not Use Any Big Royal Mail Modules" value 100. It is in the latest github.
You can download install3.2.sql and run again and it will create the extra attribute value without effecting the current values.
It will also correct the spelling mistake if you have not already done so.
You can then use this to exclude all the items that you do not want to send via royal mail.

Mark Brittain
http:\innerlightcrystals.co.uk\sales\

22 May 2021, 6:32 PM
#326
cunningstunt2 avatar

cunningstunt2

Zen Follower

Join Date:
Jan 2019
Location:
UK
Posts:
113
Plugin Contributions:
0

Re: Big Royal Mail 3.0

Excellent, just reinstalling and setting up for my products on the live store so this change comes at the perfect time. Thanks a lot

4 Nov 2021, 6:24 PM
#327
toyseller avatar

toyseller

Zen Follower

Join Date:
Jun 2008
Location:
UK
Posts:
209
Plugin Contributions:
0

Re: Big Royal Mail 3.0

Hi,

Trying to run the sql for BigRoyal Mail and getting an error.

V.1.5.7c (new install).

I took this sql code from GitHub.

Error is :
[04-Nov-2021 18:17:40 UTC] PHP Recoverable fatal error: Object of class queryFactoryResult could not be converted to string in /zcadmin/sqlpatch.php on line 753

I admit that I only loaded up one of the Royal Mail Modules - rm1stmedparcel.php

# 
#  Set up the Attributes for Big royal Mail delivery options.
# 
#  Create or find the Delivery option
# 
SELECT (@options_id:=ifnull(max(products_options_id)+1,1)) FROM products_options;

SELECT (@options_id := ifnull(products_options_id, @options_id)) FROM products_options WHERE products_options_name='Minimum Delivery Method:' ;

REPLACE INTO products_options (products_options_id, language_id, products_options_name, products_options_sort_order, products_options_type, products_options_length, products_options_comment, products_options_size, products_options_images_per_row, products_options_images_style, products_options_rows) VALUES
(@options_id, 1, 'Minimum Delivery Method:', 0, 5, 32, '', 32, 0, 0, 0);

SELECT (@options_id := products_options_id) FROM products_options WHERE products_options_name='Minimum Delivery Method:' ;

# 
#  Set up the option values
# 
#  Large Letter
# 
SELECT (@LargeLetter_id := ifnull(max(products_options_values_id)+1,1)) FROM products_options_values;

SELECT (@LargeLetter_id := ifnull(products_options_values_id, @LargeLetter_id)) FROM products_options_values WHERE products_options_values_name='Large Letter' ;

REPLACE INTO products_options_values (products_options_values_id, language_id, products_options_values_name, products_options_values_sort_order) VALUES
(@LargeLetter_id, 1, 'Large Letter', 10);

SELECT (@LargeLetter_id := products_options_values_id) FROM products_options_values WHERE products_options_values_name='Large Letter' ;

# 
#  Small Parcel
# 
SELECT (@SmallParcel_id := ifnull(max(products_options_values_id)+1,1)) FROM products_options_values;

SELECT (@SmallParcel_id := ifnull(products_options_values_id, @SmallParcel_id)) FROM products_options_values WHERE products_options_values_name='Small Parcel' ;

REPLACE INTO products_options_values (products_options_values_id, language_id, products_options_values_name, products_options_values_sort_order) VALUES
(@SmallParcel_id, 1, 'Small Parcel', 20);


SELECT (@SmallParcel_id := products_options_values_id) FROM products_options_values WHERE products_options_values_name='Small Parcel' ;

# 
#  Medium Parcel
# 
SELECT (@MediumParcel_id := ifnull(max(products_options_values_id)+1,1)) FROM products_options_values;

SELECT (@MediumParcel_id := ifnull(products_options_values_id, @MediumParcel_id)) FROM products_options_values WHERE products_options_values_name='Medium Parcel' ;

REPLACE INTO products_options_values (products_options_values_id, language_id, products_options_values_name, products_options_values_sort_order) VALUES
(@MediumParcel_id, 1, 'Medium Parcel', 30);


SELECT (@MediumParcel_id := products_options_values_id) FROM products_options_values WHERE products_options_values_name='Medium Parcel' ;

# 
#  Parcel Force
# 
SELECT (@ParcelForce_id := ifnull(max(products_options_values_id)+1,1)) FROM products_options_values;

SELECT (@ParcelForce_id := ifnull(products_options_values_id, @ParcelForce_id)) FROM products_options_values WHERE products_options_values_name='Special Delivery or Parcel Force' ;

REPLACE INTO products_options_values (products_options_values_id, language_id, products_options_values_name, products_options_values_sort_order) VALUES
(@ParcelForce_id, 1, 'Special Delivery or Parcel Force', 40);


SELECT (@ParcelForce_id := products_options_values_id) FROM products_options_values WHERE products_options_values_name='Special Delivery or Parcel Force' ;

# 
#  Link the option and option values.
# 
SELECT (@Pov2po_id := ifnull(max(products_options_values_to_products_options_id)+1,1)) FROM products_options_values_to_products_options;

SELECT (@Pov2po_id := ifnull(products_options_values_to_products_options_id, @Pov2po_id)) FROM products_options_values_to_products_options 
WHERE products_options_id= @options_id AND products_options_values_id = @LargeLetter_id;
REPLACE INTO products_options_values_to_products_options (products_options_values_to_products_options_id, products_options_id, products_options_values_id) VALUES
(@Pov2po_id, @options_id, @LargeLetter_id);

SELECT (@Pov2po_id := ifnull(max(products_options_values_to_products_options_id)+1,1)) FROM products_options_values_to_products_options;

SELECT (@Pov2po_id := ifnull(products_options_values_to_products_options_id, @Pov2po_id)) FROM products_options_values_to_products_options 
WHERE products_options_id= @options_id AND products_options_values_id = @SmallParcel_id;
REPLACE INTO products_options_values_to_products_options (products_options_values_to_products_options_id, products_options_id, products_options_values_id) VALUES
(@Pov2po_id, @options_id, @SmallParcel_id);

SELECT (@Pov2po_id := ifnull(max(products_options_values_to_products_options_id)+1,1)) FROM products_options_values_to_products_options;

SELECT (@Pov2po_id := ifnull(products_options_values_to_products_options_id, @Pov2po_id)) FROM products_options_values_to_products_options 
WHERE products_options_id= @options_id AND products_options_values_id = @MediumParcel_id;
REPLACE INTO products_options_values_to_products_options (products_options_values_to_products_options_id, products_options_id, products_options_values_id) VALUES
(@Pov2po_id, @options_id, @MediumParcel_id);

SELECT (@Pov2po_id := ifnull(max(products_options_values_to_products_options_id)+1,1)) FROM products_options_values_to_products_options;

SELECT (@Pov2po_id := ifnull(products_options_values_to_products_options_id, @Pov2po_id)) FROM products_options_values_to_products_options 
WHERE products_options_id= @options_id AND products_options_values_id = @ParcelForce_id;
REPLACE INTO products_options_values_to_products_options (products_options_values_to_products_options_id, products_options_id, products_options_values_id) VALUES
(@Pov2po_id, @options_id, @ParcelForce_id);

#  
#  Add the insurance rates for Special delivery if installed
# 
INSERT ignore INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added)
SELECT 'Insurance rates ', 'MODULE_SHIPPING_RMSPECIALDELIVERY_ZONES_INSURE', '500:0,1000:1,2500:3', 'example: 200:1.2 means values less than or equal to £200 would cost £1.20. to insure. 100+:4.5 means that each additional £100 costs £4.50 to insure.', '6', '0', 'zen_cfg_textarea(', now()
FROM configuration WHERE configuration_key  = 'MODULE_SHIPPING_RMSPECIALDELIVERY_STATUS';
  
INSERT ignore INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added)
SELECT 'Insurance rates ', 'MODULE_SHIPPING_RMSPECIALDELIVERY9AM_ZONES_INSURE', '50:0,2.2:1000,5.7:2500', 'example: 200:1.2 means values less than or equal to £200 would cost £1.20. to insure. 100+:4.5 means that each additional £100 costs £4.50 to insure.', '6', '0', 'zen_cfg_textarea(', now()
FROM configuration WHERE configuration_key  = 'MODULE_SHIPPING_RMSPECIALDELIVERY9AM_STATUS';

#  
#  Update max order value for special to 2500
#  
UPDATE configuration SET configuration_value = 2500 WHERE configuration_key  = 'MODULE_SHIPPING_RMSPECIALDELIVERY_MAX_ORDERVALUE';

UPDATE configuration SET configuration_value = 2500 WHERE configuration_key  = 'MODULE_SHIPPING_RMSPECIALDELIVERY9AM_MAX_ORDERVALUE';

21 Dec 2021, 5:09 PM
#329
brittainmark avatar

brittainmark

Totally Zenned

Join Date:
Apr 2009
Posts:
509
Plugin Contributions:
1

Re: Big Royal Mail 3.0

Just for info. It appears that royal mail are not raising their prices in January for postoffice customer.

Mark Brittain
http:\innerlightcrystals.co.uk\sales\

13 Mar 2022, 3:19 PM
#330
heresy_miniatures avatar

heresy_miniatures

New Zenner

Join Date:
Jul 2011
Posts:
59
Plugin Contributions:
0

Re: Big Royal Mail 3.0

Just heard that Royal mail are changing their EU parcel and splitting into 3 new zones, just to make life even more complicated, with different prices for each, depending on delivery method. Link to pdf on the Royal Mail site
https://www.royalmail.com/sites/royalmail.com/files/2022-03/royal-mail-our-prices-april-2022-v2.pdf?fbclid=IwAR074h8vz6t90YZnNzBYx-7PqecRphY1uq-hZi8WBqDVcggNNNuPSkExTwg

13 Mar 2022, 4:54 PM
#331
brittainmark avatar

brittainmark

Totally Zenned

Join Date:
Apr 2009
Posts:
509
Plugin Contributions:
1

Re: Big Royal Mail 3.0

I am currently coding the changes. At the testing stage. I cannot find detail of Parcelforce worldwide non UK delivery prices, so may that have to come later. Will let you knpw whe it is in github and when arrived in zen cart addons.

Mark Brittain
http:\innerlightcrystals.co.uk\sales\

16 Mar 2022, 6:13 PM
#332
brittainmark avatar

brittainmark

Totally Zenned

Join Date:
Apr 2009
Posts:
509
Plugin Contributions:
1

Re: Big Royal Mail 3.0

I have completed the latest release for April 4th 2022 Rates update.
The release includes:
Updated to simplify modules now removes all configuration values (except expires date) when module removed.
Made Country codes editable for all rates, including GB. So, if you use Parcelforce in UK can add country codes for UK regions.
Updated Royal Mail rates for 2022
Updated to include Europe zones 1, 2, and 3
Corrected issue with naming of second class signed for letter
PrintedPapers.sql updated for 2022 prices
2022Update.sql created for 2022 prices

Note: Parcelforce Global Rates have not been changed, as they were not available at this time.

It is available on git hub and has been submitted to zen cart for release.

Mark Brittain
http:\innerlightcrystals.co.uk\sales\

28 Mar 2022, 10:42 AM
#334
cunningstunt2 avatar

cunningstunt2

Zen Follower

Join Date:
Jan 2019
Location:
UK
Posts:
113
Plugin Contributions:
0

Re: Big Royal Mail 3.0

Hi Mark, I just imported the '2022Update.sql created for 2022 prices', but I notice now when the weight of the order exceeds 2kg the royal mail options are no longer being displayed, only the carrier option I use for hazardous items is selectable. Did I do something wrong? Or should I have upgraded the module rather than just importing the new price sql patch?

Thanks, Jon
thegluepeople.co.uk

edit: Nevermind, I think the 'maximum order value' setting is what is hiding the royal mail options.

31 Mar 2022, 10:38 PM
#335
draxwyn avatar

draxwyn

New Zenner

Join Date:
Aug 2005
Posts:
30
Plugin Contributions:
0

Re: Big Royal Mail 3.0

Hi Mark,

Now that it is easier to buy the cheaper UK tracked 24 and tracked 48 online have you thought about adding these as additional options to the plugin?

Thanks
~D

1 Apr 2022, 6:59 PM
#336
brittainmark avatar

brittainmark

Totally Zenned

Join Date:
Apr 2009
Posts:
509
Plugin Contributions:
1

Re: Big Royal Mail 3.0

Draxwyn:

Hi Mark,

Now that it is easier to buy the cheaper UK tracked 24 and tracked 48 online have you thought about adding these as additional options to the plugin?

Thanks
~D

Now that it is easier to buy the cheaper UK tracked 24 and tracked 48 online have you thought about adding these as additional options to the plugin?

Thanks
~D[/QUOTE]

It would be easy for you to do. Just copy one of the uk rate modules like rm1stsmlparcel in the modules and the languages setion. rename it somthing like rmuktracked24
change all the values in the language file and the one occourance in the modules. and you are there.

The issue I have is it already takes me about a week to update all the rates and test them each time they change and two more that I would not use as I cannot get to the depot to drop off the parces would be more work with no/little reward for me.

I have just checked it would actually be 6 new modules letter, small and medium parcel.
An other option would be to use the existing modules 1st and 2st and just change the language files to say that it is tracked 24/48 then update the rates and there you have it. This assumes that you do not use the standard 1st and second class modules. The language files are in inclides\english\modules\payment if you create folder with the name of your template you can copy the language files and in to this directory they will not get over written if there is an update.

Mark Brittain
http:\innerlightcrystals.co.uk\sales\

26 Jan 2023, 6:41 AM
#337
flappingfish avatar

flappingfish

Zen Follower

Join Date:
Nov 2020
Posts:
319
Plugin Contributions:
4

Re: Big Royal Mail 3.0

Would anyone be interested in assisting me with polishing off a royal mail module that uses the v2 api to retrieve parcel quotes and create label orders ect for the OBA click and drop?? I'm about as technical on coding as my username and used chatgpt to make it but during test and install its encountering an issue to do with a mismatch on the api defining and handling or it isn't coded in to be called somewhere. spent about 4 days in a vicious diagnostics loop with a chatbot on files it created and now it seems the servers overloaded and it refuses to continue even responding let alone helping sadly. i made a thread and it hasnt been spotted by many, thought there may be enough people subscribed to this thread that may take interest in the module concept and have the coding ability to help me finish it enough to upload my second contribution? thread is located here if anyone can help.... https://www.zen-cart.com/showthread.php?229237-Using-AI-to-make-modules

9 Mar 2023, 6:42 PM
#338
brittainmark avatar

brittainmark

Totally Zenned

Join Date:
Apr 2009
Posts:
509
Plugin Contributions:
1

Re: Big Royal Mail 3.0

I have just submitted the latest version 3.7.0. This includes the April 2023 price rises for Royal Mail. It has also been changed to work with the new Zen Cart 1.5.8 language files and be PHP 8.2 compliant.
Please note: as usual, Parcel Force rates were not available for overseas deliveries. I will attempt to update when they are available.

If you are using Zen Cart prior to 1.5.8 you can use version 3.6.0 and the 2023Update.sql file from the current release to update your rates.

Mark Brittain
http:\innerlightcrystals.co.uk\sales\

12 Sep 2023, 9:31 AM
#339
brittainmark avatar

brittainmark

Totally Zenned

Join Date:
Apr 2009
Posts:
509
Plugin Contributions:
1

Re: Big Royal Mail 3.0

Version 3.8.0 released for October 2023 price change.
If you are using Zen Cart prior to 1.5.8 you can use version 3.6.0 and the oct2023Update.sql file from the current release to update your rates.

Mark Brittain
http:\innerlightcrystals.co.uk\sales\

16 Oct 2023, 5:18 PM
#340
mgk avatar

mgk

New Zenner

Join Date:
Jan 2008
Posts:
25
Plugin Contributions:
0

Re: Big Royal Mail 3.0

Hi Mark,

Since we upgraded to version 3.8.0, 'Royal Mail 2nd Class Small Parcel' does not seem to want to be displayed on our website even though it is installed and enabled.

All the other Royal Mail modules appear to be working except for this ?

(We are presently using: v2.0.0-alpha)

Admin : Royal Mail Shipping Module;

Royal Mail 2nd Class "Small Parcel" ver. 3.8.0 rates: 3.8.0

Royal Mail 2nd Class "Small Parcel" Rates. Weights in lbs. Rates valid until 2024-04-01 00:00:01

Royal Mail Rates Expiry Date
2024-04-01 00:00:01

Enable this shipping option
True

Hide Invalid Shipping
True

Attribute Exact Match
False

Tax Class
--none--

Sort Order
50

Minimum Order Value
0.00

Maximum Order Value
-1

Zone 1 Countries
GB

Shipping rates to GB & Northern Ireland
1:3.95, 2:3.95