Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2008
    Posts
    36
    Plugin Contributions
    0

    Default separate php file inside catalog can't connect to database

    Hi,
    i create a separate php file put inside includes/templates/my_template/templates/
    this file will execute when tpl_product_info_display.php is load.
    In that file i need to connect with the database and get some data but it seems not working.
    i tried to put this code on the top "require('includes/application_top')" but no luck.

    please help!
    thanks in advance!

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

    Default Re: separate php file inside catalog can't connect to database

    What EXACTLY is this file doing?
    And why isn't it in /includes/modules/pages/product_info/main_template_vars_product_type.php instead?
    .

    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. Can't include catalog functions in seperate PHP file.
    By fawad123 in forum General Questions
    Replies: 38
    Last Post: 6 Dec 2017, 07:59 PM
  2. v150 Using a database file to build my catalog of items?
    By comsystics in forum General Questions
    Replies: 2
    Last Post: 12 Sep 2012, 11:40 PM
  3. How do I setup or connect a 'define_mobile.php' page with my catalog?
    By westdh in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 20 Aug 2012, 10:12 PM
  4. Replies: 2
    Last Post: 18 Jan 2008, 01:46 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