Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2009
    Posts
    40
    Plugin Contributions
    0

    Default Adding Mass Descriptions via SQL?

    Hello SQL geniuses,

    Is there an easy way to insert a generic product description into the 'product_descriptions' table only if there is none?

    I don't know SQL too well, but I'm sure it's something like...
    IF 'products_description' = null
    THEN INSERT INTO 'products_description'

    or something? hahah

    Any help would be greatly appreciated...

  2. #2
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Adding Mass Descriptions via SQL?

    What exactly is the *business problem* you're trying to solve?
    .

    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.

  3. #3
    Join Date
    Feb 2009
    Posts
    40
    Plugin Contributions
    0

    Default Re: Adding Mass Descriptions via SQL?

    I just need an SQL script to look for a description of a product, and if there is none.. 'insert generic description'.

  4. #4
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,826
    Plugin Contributions
    31

    Default Re: Adding Mass Descriptions via SQL?

    If you are looking to insert and re-use some text in many product descriptions you could use the boilerplate text concept:
    http://www.thatsoftwareguy.com/zenca...ate_files.html

 

 

Similar Threads

  1. Quantity discounts.... Mass products SQL
    By kitcorsa in forum General Questions
    Replies: 2
    Last Post: 3 Aug 2010, 09:37 AM
  2. Mass update product expected dates via SQL query
    By misaki in forum General Questions
    Replies: 3
    Last Post: 22 May 2010, 01:18 AM
  3. Mass application of values/names through SQL?
    By Teeb in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 14 May 2008, 12:35 AM
  4. How do I run the stock_attribute.sql via Install SQL Patches in admin
    By vivaraquel in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 9 Apr 2007, 01:55 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