Results 1 to 8 of 8
  1. #1
    Join Date
    May 2006
    Location
    Oregon, USA
    Posts
    33
    Plugin Contributions
    0

    Files containing SQL queries

    Could someone point me to the file(s) within ZC containing the SQL queries/statements? (Not to do with the install.)

    I'm particularly interested in queries relating to adding or updating products. So INSERT, UPDATE statements relating to the products, products_description, products_attributes, products_to_categories, etc tables.

    Purpose: I need to create a super simple process to add or update products for some very non-tech users.

    Thanks!

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Files containing SQL queries

    Go to the Admin ... Tools ... Developer's Tool Kit ...

    In the bottom input box type in: INSERT

    Select Catalog, Admin or Catalog/Admin ...

    Click Search ...

    Voila! Tons to choose from ...

    Now do the same with UPDATE ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    May 2006
    Location
    Oregon, USA
    Posts
    33
    Plugin Contributions
    0

    Default Re: Files containing SQL queries

    Doh! Shoulda thought of that.
    Of course, 'tons' was a little bit what I was trying to avoid...
    Thanks!

  4. #4
    Join Date
    May 2006
    Location
    Oregon, USA
    Posts
    33
    Plugin Contributions
    0

    Default Re: Files containing SQL queries

    For curiousity's sake, to whomever would know & has time & inclination:

    I note that in the standard admin/product.php page output a couple of the input names are done as arrays (e.g., 'name="products_name[1]"').
    Just curious about the thinking behind this as opposed to doing them as simple vars.
    thx...

  5. #5
    Join Date
    Feb 2006
    Location
    Chicago
    Posts
    1,162
    Plugin Contributions
    0

    Default Re: Files containing SQL queries

    I dont see any such lines in admin/products.php
    name="products_name[1]"').
    Can you explain again what you are talking about?

  6. #6
    Join Date
    May 2006
    Location
    Oregon, USA
    Posts
    33
    Plugin Contributions
    0

    Default Re: Files containing SQL queries

    I should have been clearer. I was referring to the output as received in the client browser.

  7. #7
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Files containing SQL queries

    That's to support multiple languages
    .
    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.

  8. #8
    Join Date
    May 2006
    Location
    Oregon, USA
    Posts
    33
    Plugin Contributions
    0

    Default Re: Files containing SQL queries

    Ah!
    Thanks, DrB.

 

 

Similar Threads

  1. Replies: 10
    Last Post: 23 Aug 2012, 12:24 PM
  2. Adding Quantity Discounts with SQL Queries
    By bodyjewelrystores in forum General Questions
    Replies: 2
    Last Post: 24 Jul 2008, 04:13 PM

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