osCmax v2.5 User Manual
Results 1 to 7 of 7

Hack: OZ Pack

This is a discussion on Hack: OZ Pack within the osCmax v2 Customization/Mods forums, part of the osCmax v2.0 Forums category; Part 1: Using phpMyAdmin (or similar), import the following: Code: INSERT INTO `zones` (`zone_id`, `zone_country_id`, `zone_code`, `zone_name`) VALUES (290, 13, ...

      
  1. #1
    osCMax Development Team
    ridexbuilder's Avatar
    Join Date
    Jul 2008
    Location
    Haggisland
    Posts
    3,014
    Rep Power
    36


    Post Hack: OZ Pack

    Part 1:
    Using phpMyAdmin (or similar), import the following:
    Code:
    INSERT INTO `zones` (`zone_id`, `zone_country_id`, `zone_code`, `zone_name`) VALUES
    (290, 13, 'Australian Capital Territory', 'Australian Capital Territory'),
    (291, 13, 'New South Wales', 'New South Wales'),
    (292, 13, 'Northern Territory', 'Northern Territory'),
    (293, 13, 'Queensland', 'Queensland'),
    (294, 13, 'South Australia', 'South Australia'),
    (295, 13, 'Tasmania', 'Tasmania'),
    (296, 13, 'Victoria', 'Victoria'),
    (297, 13, 'Western Australia', 'Western Australia');
    Save the above as a plain text file called oz-zones.sql, for later use. If you get a warning about a duplicate key, then you will need to renumber the zone_id numbers to begin from, say, 300 or 400. This will depend on whether you have additional zones, other than the default installed.

    EJ
    Hosting plans with installation, configuration, contributions, support and maintenance.

  2. #2
    Active Member
    Join Date
    Aug 2007
    Posts
    145
    Rep Power
    5


    Default Re: Hack: OZ Pack

    Awesome Thanks

    For codes you can also have the following:

    Code:
    INSERT INTO `zones` (`zone_id`, `zone_country_id`, `zone_code`, `zone_name`) VALUES
    (290, 13, 'ACT', 'Australian Capital Territory'),
    (291, 13, 'NSW', 'New South Wales'),
    (292, 13, 'NT', 'Northern Territory'),
    (293, 13, 'QLD', 'Queensland'),
    (294, 13, 'SA', 'South Australia'),
    (295, 13, 'TAS', 'Tasmania'),
    (296, 13, 'VIC', 'Victoria'),
    (297, 13, 'WA', 'Western Australia');

  3. #3
    osCMax Development Team
    ridexbuilder's Avatar
    Join Date
    Jul 2008
    Location
    Haggisland
    Posts
    3,014
    Rep Power
    36


    Default Re: Hack: OZ Pack

    As a Jock, we dinnae like to see abbreviations, 'cept when the Poms shove a 'shire' on the end of places.
    Last edited by ridexbuilder; 11-16-2010 at 04:25 PM.
    Hosting plans with installation, configuration, contributions, support and maintenance.

  4. #4
    osCMax Development Team
    ridexbuilder's Avatar
    Join Date
    Jul 2008
    Location
    Haggisland
    Posts
    3,014
    Rep Power
    36


    Default Re: Hack: OZ Pack

    Part 2:
    Files where VAT is mentioned...
    Line 55: catalog\admin\includes\languages\english\edit_orde rs.php
    [check catalog\includes\languages\english\affiliate.php]
    Hosting plans with installation, configuration, contributions, support and maintenance.

  5. #5
    osCMax Development Team
    ridexbuilder's Avatar
    Join Date
    Jul 2008
    Location
    Haggisland
    Posts
    3,014
    Rep Power
    36


    Post Re: Hack: OZ Pack

    Part 3:
    Files that mentions tax...
    catalog/admin/includes/languages/english/invoice.php
    orders.php
    edit_orders.php
    affiliate_affiliates.php
    affiliate_invoice.php
    create_order_process.php
    batch_print.php
    catalog/admin/fm-feed-configs/google-simple.php - refer to Google.au for this one.

    catalog/includes/languages/english/ot_coupon.php
    checkout_process.php
    ot_loyalty_discount.php
    ot_gv.php
    checkout.php
    address_book.php
    ot_tax.php
    core.php
    affiliate.php
    account_history_info.php
    checkout_confirmation.php
    paypal_ipn.php - may not be relevant

    This is not an exhaustive list but should cover most places where is visible to customers. Sorry about the lack of line numbers but it was a bit time consuming just getting the list. FYI: Notepad++ is excellent at searching out strings of text in files.

    The above list is for 'Max 2.5. Older releases: replace core.php with english.php

    HTH
    EJ
    Last edited by ridexbuilder; 11-16-2010 at 05:14 PM.
    Hosting plans with installation, configuration, contributions, support and maintenance.

  6. #6
    osCMax Development Team
    pgmarshall's Avatar
    Join Date
    Feb 2009
    Location
    London
    Posts
    2,678
    Rep Power
    49


    Default Re: Hack: OZ Pack

    Ridex,

    I have posted a bit of this into the bug tracker - adding the states to the core code. (Seems sensible to me).

    As for the rest of the stuff - perhaps we should be adding (as per the bug tracker) specific text for US/UK/Oz using the language specific coding?

    Regards,
    pgmarshall
    _______________________________

  7. #7
    osCMax Development Team
    ridexbuilder's Avatar
    Join Date
    Jul 2008
    Location
    Haggisland
    Posts
    3,014
    Rep Power
    36


    Wink Re: Hack: OZ Pack

    Yeah, the above is just to act as pointers - not a definitive guide.

    I've no issue with adding to the core code but in doing so, why not include World Zones? Put another way, what about other English-speaking locations?

    Hosting plans with installation, configuration, contributions, support and maintenance.

Similar Threads

  1. New Hack?
    By kerryanne in forum osCmax v2 Installation issues
    Replies: 5
    Last Post: 07-28-2010, 01:50 AM
  2. What the Hack?
    By BrandonScottishRegalia in forum osCmax v2 Installation issues
    Replies: 5
    Last Post: 09-17-2009, 01:09 PM
  3. Is this a hack?
    By pgmarshall in forum osCmax v2 Installation issues
    Replies: 6
    Last Post: 08-12-2009, 07:57 AM
  4. QT Pro STS hack
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 04-15-2007, 02:06 AM
  5. QT Pro STS hack
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 04-13-2007, 08:00 AM

Tags for this Thread

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
  •