Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2004
    Location
    U.K. South Wales
    Posts
    501
    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?

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    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

  3. #3
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    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!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    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. v139h Can I disable 'javascript:void' in categories to preserve category click?
    By ouroboros in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 20 Jun 2012, 01:06 AM
  2. Replies: 0
    Last Post: 29 Jul 2009, 01:13 AM
  3. Replies: 1
    Last Post: 26 Jan 2009, 01:15 PM
  4. URL Redirect Advice - to preserve google rankings
    By Brent in forum General Questions
    Replies: 0
    Last Post: 8 Jun 2008, 02:07 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR