Results 1 to 10 of 13

Hybrid View

  1. #1
    Join Date
    Sep 2008
    Posts
    7
    Plugin Contributions
    0

    Default Re: Add Info from another database???

    Hello Dr Byte,
    That still didn't work which surprised me so i looked hard at the code and realized i have the if/else backwards. So i switched that and changed the coding back to $sku = $products_model; and it worked perfectly. Too many hours for such a stupid mistake on my part. Thanks so much for your help. You are great.

    Josh

  2. #2
    Join Date
    Sep 2008
    Posts
    95
    Plugin Contributions
    0

    Default Re: Add Info from another database???

    Hi,

    Please can anybody say me where to place $sku = $products_model; in tpl_product_info_display.php. So that in Place of Model it shows SKU.

    I need the complete replacement code line.

    thanks.

    ~ Time

  3. #3
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default Re: Add Info from another database???

    Quote Originally Posted by time111 View Post
    Hi,

    Please can anybody say me where to place $sku = $products_model; in tpl_product_info_display.php. So that in Place of Model it shows SKU.

    I need the complete replacement code line.

    thanks.

    ~ Time
    No code edit here. This is a LANGUAGE FILE change.

    The word "model" appears in about 17 language php files, and to find all references in language files, use the DEVELOPER TOOLKIT under ADMIN>>>TOOLS.

    Then you change, FOR EXAMPLE:

    PHP Code:
    define('TEXT_PRODUCT_MODEL''Model: '); 
    to

    PHP Code:
    define('TEXT_PRODUCT_MODEL''SKU: '); 

  4. #4
    Join Date
    Sep 2008
    Posts
    95
    Plugin Contributions
    0

    Default Re: Add Info from another database???

    Hi fairestcape,

    Wow that's fast reply and thank you.

    If it can be done just by using Language files editing then what joshscott31 is trying to do by by so much of php code puzzle. Not able to understand.

    Do I have to edit all language files, template override English file will not do alone.

    ~ Time

  5. #5
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default Re: Add Info from another database???

    To be honest, I have no idea what Josh is up to, but if Dr Byte is devoting so much energy to this, then it must be quite important!

    However, we'll let them get on with it as they seem to know what they are doing.

    As regards MODEL to SKU...

    There are many instances where the language "text string" Model occurs.

    It occurs in search results, product info pages, shopping cart displays, product listing headings... etc.

    I change all instances in my webshop to Product Code, because I don't like Model any more than you do.

    I haven't had to do it for some time, but at last count, there are 17 references to Model in the language files. Some are in places like product_music_info.php, so if you are not using this product type, you can ignore it.

    But what you don't want, for example, is a Table Header or Search Result to say "Model", and then other references to say "SKU". This will confuse customers.

 

 

Similar Threads

  1. v152 How can copy some products from database to another database ?
    By dmagic in forum General Questions
    Replies: 5
    Last Post: 2 Jul 2018, 02:54 PM
  2. adding an attribute from another database
    By seancon1 in forum General Questions
    Replies: 1
    Last Post: 26 Mar 2010, 03:52 AM
  3. Access another database from a custom page?
    By refreshmentshop in forum General Questions
    Replies: 1
    Last Post: 23 Sep 2009, 04:24 PM
  4. Moving database from another cart????
    By AvieLF in forum General Questions
    Replies: 3
    Last Post: 4 Jun 2007, 12:09 AM
  5. Migrate Customer Info from another Database
    By jaxbakers in forum Managing Customers and Orders
    Replies: 1
    Last Post: 1 Jul 2006, 01:20 AM

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