Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2005
    Location
    France
    Posts
    581
    Plugin Contributions
    8

    Default Where did these sql queries move to?

    [Note: remember to include site URL, ZC version, list of plugins, PHP version, etc ... read the Posting Tips shown above for information to include in your post here.
    And, remove this comment before actually posting!]

    In the process of upgrading from 1.5.6c to 1.5.7a and I need to merge in some customisation that was done on an sql query in includes/modules/pages/product_info/main_template_vars.php. Opened up the file to find the query no longer resides in there.
    On ZC 1.5.6c there was a query at lines 18 to 24 and lines 39 to 53.

    I noticed that the queries have been removed from includes/modules/pages/document_general_info/main_template_vars.php and includes/modules/pages/document_product_info/main_template_vars.php too.

    Are there common queries for them all now, and where are they located?

    Thanks for any help on this one.

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

    Default Re: Where did these sql queries move to?

    I'm guessing you're referring to the queries that are now run via zen_get_product_details() in the /includes/functions/functions_products.php file?

    Beware that if you start changing queries in a function that's used by other parts of the code then you might cause unexpected effects elsewhere.

    In the case of product_info (and other product-type pages), there's a main_template_vars_product_type.php file in each of those includes/modules/pages folders whose purpose is specifically for adding additional data and running custom queries if needed.

    You can use whichever approach fits your custom needs best, without causing unexpected side effects.
    .

    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. How did I add these links ?
    By ggbarnum in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 14 Aug 2010, 09:29 PM
  2. Where did they get these?
    By lizord in forum Customization from the Admin
    Replies: 2
    Last Post: 22 Mar 2009, 04:07 PM
  3. Files containing SQL queries
    By gnotapipe in forum General Questions
    Replies: 7
    Last Post: 6 Jul 2006, 07:03 PM

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