Page 36 of 36 FirstFirst ... 26343536
Results 351 to 360 of 360
  1. #351
    Join Date
    May 2005
    Location
    England
    Posts
    675
    Plugin Contributions
    0

    Default Re: Big Royal Mail 3.0

    Hello there,
    I get the following error, which weirdly only gives blank page when using shipping estimator on shopping cart page, so far only United States and Canada upon testing:-

    PHP Fatal error: Uncaught TypeError: Unsupported operand types: float + string in /includes/modules/shipping/BigRoyalMail/quote.php:151
    Its fine in php 7.x , the issue only occurs on php 8.x . I guess its something to do with rest of world zones. I read on google that it just needs parentheses adding at certain points, but that was for a different system to zencart. I swtiched back to php 7.x for now, trying to suss it out but the code seems to spread over 2 lines that it refers to.

  2. #352
    Join Date
    Apr 2009
    Posts
    469
    Plugin Contributions
    2

    Default Re: Big Royal Mail 3.0

    I assume you are using the latest version 3.9.
    I have it on my site working with php 8.2.

    Can you check your handling fee is numeric, if zero, make sure it's not letter o.

    if it is numeric try changing line 151 from

    Code:
                $shipping_cost = ($shipping * $shipping_num_boxes) + (defined('MODULE_SHIPPING_' . $module . '_ZONES_HANDLING_' . $dest_zone) ? constant('MODULE_SHIPPING_' . $module . '_ZONES_HANDLING_' . $dest_zone) : 0) +
                    (defined('MODULE_SHIPPING_' . $module . '_ZONES_HANDLING') ? constant('MODULE_SHIPPING_' . $module . '_ZONES_HANDLING') : 0);
    to
    Code:
                $shipping_cost = ($shipping * $shipping_num_boxes) + (float)(defined('MODULE_SHIPPING_' . $module . '_ZONES_HANDLING_' . $dest_zone) ? constant('MODULE_SHIPPING_' . $module . '_ZONES_HANDLING_' . $dest_zone) : 0) +
                    (float)(defined('MODULE_SHIPPING_' . $module . '_ZONES_HANDLING') ? constant('MODULE_SHIPPING_' . $module . '_ZONES_HANDLING') : 0);
    If that works do you have strict mode set? Let me know what happens.
    Mark Brittain
    http:\\innerlightcrystals.co.uk\sales\

  3. #353
    Join Date
    May 2005
    Location
    England
    Posts
    675
    Plugin Contributions
    0

    Default Re: Big Royal Mail 3.0

    Quote Originally Posted by brittainmark View Post
    I assume you are using the latest version 3.9.
    I have it on my site working with php 8.2.

    Can you check your handling fee is numeric, if zero, make sure it's not letter o.

    if it is numeric try changing line 151 from

    Code:
                $shipping_cost = ($shipping * $shipping_num_boxes) + (defined('MODULE_SHIPPING_' . $module . '_ZONES_HANDLING_' . $dest_zone) ? constant('MODULE_SHIPPING_' . $module . '_ZONES_HANDLING_' . $dest_zone) : 0) +
                    (defined('MODULE_SHIPPING_' . $module . '_ZONES_HANDLING') ? constant('MODULE_SHIPPING_' . $module . '_ZONES_HANDLING') : 0);
    to
    Code:
                $shipping_cost = ($shipping * $shipping_num_boxes) + (float)(defined('MODULE_SHIPPING_' . $module . '_ZONES_HANDLING_' . $dest_zone) ? constant('MODULE_SHIPPING_' . $module . '_ZONES_HANDLING_' . $dest_zone) : 0) +
                    (float)(defined('MODULE_SHIPPING_' . $module . '_ZONES_HANDLING') ? constant('MODULE_SHIPPING_' . $module . '_ZONES_HANDLING') : 0);
    If that works do you have strict mode set? Let me know what happens.
    Thanks that worked great! I am testing rest of the world countries and it is working as on 7.4 php.

    I do have this one, is this the database strict on you meant?

    innodb_strict_mode ON

    Thanks again!

  4. #354
    Join Date
    May 2005
    Location
    England
    Posts
    675
    Plugin Contributions
    0

    Default Re: Big Royal Mail 3.0

    Forgot to say yes I am on latest module version, 1.58a. I think it must be strict server sql settings in my case, have had similar issues before and had to change code somewhat.

  5. #355
    Join Date
    Apr 2009
    Posts
    469
    Plugin Contributions
    2

    Default Re: Big Royal Mail 3.0

    I cannot replicate the issue unless I put a letter into the handling fee. Check your world zone 3 handling fee to see if any of them have a non numeric entry. The letter 'o' is most likely instead of zero.
    Mark Brittain
    http:\\innerlightcrystals.co.uk\sales\

  6. #356
    Join Date
    May 2005
    Location
    England
    Posts
    675
    Plugin Contributions
    0

    Default Re: Big Royal Mail 3.0

    Quote Originally Posted by brittainmark View Post
    I cannot replicate the issue unless I put a letter into the handling fee. Check your world zone 3 handling fee to see if any of them have a non numeric entry. The letter 'o' is most likely instead of zero.
    I did double check the fields and even deleted and re-entered and it was still the same. But I just checked the two modules I disabled for airmail (standard airmail), and the handling fees are a minus fee, i.e -2.50. I did this I recall a while ago, as we are on business Royal Mail account and it was two to three pounds cheaper on average than the normal prices. Sorry, I didn't think to check disabled modules, it must be looking up all entries if installed, it was just set to false instead of uninstalled.

  7. #357
    Join Date
    Apr 2009
    Posts
    469
    Plugin Contributions
    2

    Default Re: Big Royal Mail 3.0

    Interesting I have never tried negative handling fees. You know you can alter the rates to suit your situation. I know most of the other shipping modules don't allow -ve fees. Do you want me to leave this ability as I was thinking of adding validation to force fees to be greater than or equal to zero. I'll test with a -ve fee to see if it replicates you issue.
    Mark Brittain
    http:\\innerlightcrystals.co.uk\sales\

  8. #358
    Join Date
    May 2005
    Location
    England
    Posts
    675
    Plugin Contributions
    0

    Default Re: Big Royal Mail 3.0

    Hi Mark. I think maybe keep as it is, just that airmail has such a lot of band rate prices, I did a bodge job fix lol. Of course only need to edit if on the account system for lower prices in some cases. I will probably alter each price in future, so yes maybe do the validation thing I say. I didn't realise php 8 was so picky, it was fine for the last year or so.

  9. #359
    Join Date
    Apr 2009
    Posts
    469
    Plugin Contributions
    2

    Default Re: Big Royal Mail 3.0

    Version 3.9.1 has just been released. I have submitted it to zen cart. In the mean time it is available on git hub.
    Changes:

    Update to rates.php and rVersion.php for April price rise
    Update insuramce rates
    Change max values to match net insurance max values
    Corrected attribute pricing for Royal Mail Tracked 24 and 48.
    PrintedPapers.sql updated for April 2025 prices rise
    apr2024Update.sql created for April 2025 prices rise
    Created wiki for documentation
    Mark Brittain
    http:\\innerlightcrystals.co.uk\sales\

  10. #360
    Join Date
    Apr 2009
    Posts
    469
    Plugin Contributions
    2

    Default Re: Big Royal Mail 3.0

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

 

 
Page 36 of 36 FirstFirst ... 26343536

Similar Threads

  1. v154 Big / Basic Royal Mail??
    By Man from Mars in forum Addon Shipping Modules
    Replies: 1
    Last Post: 19 Apr 2016, 02:07 PM
  2. big royal mail module
    By Sushigal in forum Addon Shipping Modules
    Replies: 3
    Last Post: 25 Nov 2009, 04:58 PM
  3. Big Royal mail
    By ben harry in forum Addon Shipping Modules
    Replies: 2
    Last Post: 20 Jul 2008, 01:11 PM
  4. Big Royal Mail - Big Error - Shipping Abroad
    By bleazy in forum Addon Shipping Modules
    Replies: 0
    Last Post: 14 Jul 2008, 03:01 PM
  5. Warning: Big Royal Mail
    By Rookie gone MAD! in forum Addon Shipping Modules
    Replies: 2
    Last Post: 11 Sep 2007, 08:33 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR