Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2004
    Location
    U.K. South Wales
    Posts
    491
    Plugin Contributions
    0

    Default languages installed - how to preserve?

    Hi
    Not criticism, not criticism (just so I make myself clear)

    I recently deleted a (second) language from a test cart and I discovered once you do that, there's no chance of reinstating it because the delete language process rips out most of the references to that language i.d from the database.

    So... it would be a solution if there could be a 'status' icon on the admin language lists, which only stops that language from showing in the cart languages sidebox, but retains all the database entries for it..

    Then one could retain languages and work on them in admin mode, but not have them show..

    There must be a simple way of inhibiting a cart side language, would just hiding the appropriate cart language icon be a solution?
    book zip downloads at http://www.jphuk.co.uk/zc/index.php?...roducts_id=490
    3 test sites: http://www.jphuk.co.uk/zc138a_t1/ also alter the last _t1 to _t2 or _t3

  2. #2
    Join Date
    Aug 2005
    Posts
    26,012
    Plugin Contributions
    9

    Default Re: languages installed - how to preserve?

    You ahould b able to install this or another language from th admin that will re write the DB configuration for it
    Zen-Venom Get Bitten
    Get Your Business Found

  3. #3
    Join Date
    Jan 2004
    Posts
    58,244
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: languages installed - how to preserve?

    hareslade, you are correct ... deleting a language via the admin will delete all database content related to that language ... in products, categories, reviews, etc etc etc. It does a complete cleanup.

    If you prefer to control the list of languages in the storefront sidebox, you can make your changes in the /includes/templates/YOURTEMPLATE/sideboxes/tpl_languages.php file, by adding the highlighted line:
    Code:
      while (list($key, $value) = each($lng->catalog_languages)) {
        if (in_array($key, array('en', 'fr', 'tw'))) continue;
    
    (and replace 'fr' and 'en' and 'tw' with the codes of your languages to NOT be offered.
    You can list as many languages as you wish to NOT offer from your normal list of installed languages, just by extending or reducing the array.

    You'll still be able to access them by adding &language=fr to your storefront URL, but they will not show up in the sidebox and therefore will stop most from using them unexpectedly.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. File Expiration Date is 4 Years Later
    By vivaknievel in forum Bug Reports
    Replies: 7
    Last Post: 14 May 2007, 12:41 AM
  2. Replies: 3
    Last Post: 14 Feb 2007, 07:02 PM
  3. EZ pages and languages overrides
    By femky in forum Customization from the Admin
    Replies: 3
    Last Post: 17 May 2006, 05:57 AM
  4. Products Languages (by moku)
    By moku in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 13 May 2006, 02:05 AM

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
  •