Results 1 to 10 of 13

Hybrid View

  1. #1
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Add Info from another database???

    You'll see in that file that the product model number is contained in the $products_model variable:
    Code:
      <?php echo (($flag_show_product_info_model == 1 and $products_model !='') ? '<li>' . TEXT_PRODUCT_MODEL . $products_model . '</li>' : '') . "\n"; ?>
    .

    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.

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

    Default Re: Add Info from another database???

    Thanks DrByte,
    I did notice that and one of the 1st things i tried was $sku = $products_model; but it didn't work.

  3. #3
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Add Info from another database???

    So, when you echo out the value of $products_model, what does it give you?
    And, is the products_model field populated for that product in your database?
    .

    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.

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

    Default Re: Add Info from another database???

    Yes all of the products in my main database have sku's that are the exact same as the products_model. If i echo out the $sku = $products_model line then i don't see the word Ingredient and of course i still do not see any data from the other database. For a working example you can go to:

    http://www.lifebalm.com/herbal-produ...a-Capsule.html

    of course this is oscommerce which i'm trying to get away from and use only zen cart but you can see the ailments, ingredients etc.. are shown from my other database.

    Now on http://www.herbshopconnection.com/ch...100-ct-28.html

    you will see that only the word ingredients show.
    AAh???

    thanks again Dr Byte for your continual help.

  5. #5
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Add Info from another database???

    And what happens if you use this:
    Code:
     $sku = '89147';
    .

    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.

  6. #6
    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

  7. #7
    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

 

 

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