Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2010
    Posts
    474
    Plugin Contributions
    0

    Default SQL question... help please!

    In the SQL, what controls the turning on/off of product meta title and product name?

    Here is a screen shot:
    http://904roofing.com/metascreen.jpg

    Can somebody show me how I could write a little script I could send thru the sql patch that would flip the switch to ON for all prod meta titles?

    Then another script to for flipping on all the product names?

    Thanks,
    Mike

  2. #2
    Join Date
    Jan 2004
    Posts
    59,773
    Blog Entries
    4
    Plugin Contributions
    133

    Default Re: SQL question... help please!

    You really should fix your import problem instead: http://www.zen-cart.com/forum/showth...96#post1108596

    This will turn the title/prod-name switches on for EVERY product in your database:
    Code:
    UPDATE products SET metatags_title_status = 1, metatags_products_name_status = 1;
    Use with caution. Backup your database first.
    Last edited by Ajeh; 3 Mar 2012 at 03:28 PM.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    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
    Apr 2010
    Posts
    474
    Plugin Contributions
    0

    Default Re: SQL question... help please!

    DrByte,

    Words cannot express how grateful I am! This worked perfectly! If you weren't a dude I'd kiss you!

    I totally agree with you that it would be far better to fix the import problem, but for some reason Apsona forgot to include the metatags_products_name_status field in their ShopAdmin.

    Thanks again,
    Mike

  4. #4
    Join Date
    Jan 2004
    Posts
    59,773
    Blog Entries
    4
    Plugin Contributions
    133

    Default Re: SQL question... help please!

    You can kiss Ajeh instead. She fixed my typo :)
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    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.

  5. #5
    Join Date
    Apr 2010
    Posts
    474
    Plugin Contributions
    0

    Default Re: SQL question... help please!

    aaah yes, a much more pleasant idea!

 

 

Similar Threads

  1. Ask a Question [product] Question - Stop Guest Posts
    By ScrapbookSupplies in forum Addon Sideboxes
    Replies: 2
    Last Post: 22 Jun 2008, 04:13 AM
  2. Newbie question - spacing question...
    By coolcat in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 22 May 2007, 03:23 AM
  3. I'm not sure if this is a CSS question or an admin panel question....
    By kinget in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 24 Mar 2007, 08:29 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
  •