UK Royal Mail & Overseas Shipping Methods for specific categories of products

Original “UK Royal Mail & Overseas Shipping Methods 21st Aug Prices” contribution:

http://addons.oscommerce.com/info/4473

I have modified to enable the Royal Mail shipping modules for specific categories of the products only. Example: DVD disks can be sent using the Royal Mail 1st recorded services; as for Jewellery you need to enable Special Delivery only .

This contribution is for UK Stores only. What it will do is add several shipping zones to your Oscommerce store. If your customer is UK based, it will not show any of the International Shipping Options, and vice versa.

Shipping Methods:
(1) Royal Mail First Class Standard Post (upto 3.0Kg Limit)
(2) Royal Mail Second Class Standard Post (upto 1.0Kg Limit)
(3) Royal Mail First Class Recorded Post (upto 3.0Kg and £32.00 Limit)
(4) Royal Mail Second Class Recorded Post (upto 1.0Kg and £32.00 Limit)
(5) Royal Mail Standard Parcels (upto 20.0Kg and £500) with additional insurance
(6) Parcel Force 48

Direct Download link

Download from oscommerce website

Tags: , , , , , , ,

14 Responses to “UK Royal Mail & Overseas Shipping Methods for specific categories of products”

  1. Jeremy Isherwood says:

    Sorry I think I posted my problem to the wrong thread. Sorry. Any how I’m have this error when I load a shipping module:

    call_user_func(tep_cfg_show_multicategories) [function.call-user-func]: First argument is expected to be a valid callback in /home/pharmacy/public_html/admin/includes/functions/general.php on line 1195

    and on the checkout_shipping.php page I get the following:

    Fatal error: Call to undefined function tep_get_categories_name() in /home/pharmacy/public_html/includes/modules/shipping/rmfirstrec.php on line 92

    Any help would be great.

    Thanks

    jeremy

  2. admin says:

    If you patch the general.php file with extra code(you will find the code in readme.txt file) your shipping module will be working without any problem.
    Regards,
    Alex

  3. Charlotte says:

    Hi I made the amendments via the readme.txt file and uploaded the module however when I get to check out I get this error

    1064 – You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘) and products_id in (37,73,75)’ at line 1

    select * from products_to_categories where categories_id not in () and products_id in (37,73,75)

    [TEP STOP]

  4. admin says:

    Never had any errors, simply re-check the installation. Tested/Debuged several times before release.

  5. Tony Lees says:

    Hi,

    I am getting the following error in the admin page ‘ Fatal error: Cannot redeclare class rmstandardparcel in /public_html/includes/modules/shipping/rmstandardparcel.php on line 7

    Can you please advise?
    Thanks
    Tony

  6. admin says:

    Dear Tony,

    It seems to me you have installed the same contribution twice, simply remove one or rename the php class “rmstandardparcel”.

    Regards, Alex

  7. Tony Lees says:

    Hi Alex,
    I renamed the php file to make a modification (can’t remember why now) just deleted that and now it works!

    Thanks for your help

    Tony

  8. Colin says:

    Hi Alex
    everything has been altered so your contribution for Royal Mail (Shipping for specific categories) works OK..
    but when i need to Edit an Order this error occours

    Fatal error: Call to undefined function tep_get_categories_name() in /home/deansmar/public_html/osctestshop/includes/modules/shipping/parcelforce48.php on line 89

    i have Order Editor also installed Mod 1435
    http://addons.oscommerce.com/info/1435

    i would gues that the problem is in the edit_orders.php and not in the parcelforce48.php

    any chance of a little help ?
    regards
    Colin

  9. admin says:

    Dear Colin,

    You forgot to patch the general.php file with extra code(you will find the code in readme.txt file).

    I hope it will helps.
    Regards, Alex

  10. admin says:

    Dear Colin,

    Fatal error: Call to undefined function tep_get_categories_name()

    because you forgot to add:

    catalog\includes\functions\general.php

    function tep_get_categories_name($cID, $language = ”){
    global $languages_id;
    if (!tep_not_null($language))
    $language = $languages_id;

    $cname = tep_db_fetch_array(tep_db_query(‘select categories_name from ‘.TABLE_CATEGORIES_DESCRIPTION.’ where categories_id=”‘.$cID.’” and language_id=”‘.$language.’”‘));

    return $cname['categories_name'];
    }

    FOR ALL: PLEASE READ THE “INSTALLATION STEPS” BEFORE POSTING ANY POSTS OR ASK FOR HELP, AS 100% IS THE ISSUE WITH READING INSTALLATION STEPS INSTEAD OF MODULE.

  11. Colin says:

    i did not for get to add that code… its all in there and on the wedsite.. !!

  12. admin says:

    Dear Colin,

    Before or after installation of “Order Editor”, as some people simply overwrite the existing files and erasing the extra code from other modules.

    You see my point?
    Regards, Alex

  13. Colin says:

    of course i see your point, you must also understand I am not a beginner at this sort of thing… our shop has been up and running for a year now..

    we were having Problems with the Royal Mail and sizes of delivery items thats why i have installed your contribution.. and every thing works out great… apart from if i have to Edit an Order then i get the Fault..

    your contribution was installed after the Order Editor..

  14. Colin says:

    if i disable the Parcelforce 48

    Enable Parcel Force 48 Delivery
    False

    then i have no Problems with my Order Editor..

Leave a Reply

You must be logged in to post a comment.