Results 1 to 8 of 8
  1. #1
    Join Date
    Feb 2009
    Posts
    81
    Plugin Contributions
    0

    Default Editing Bulk Description

    Tell me what is wrong in the following code!!
    statement does get processed but the description does not get updated
    Code:
    UPDATE products_description 
    SET products_description = REPLACE(products_description,'you can read our client reviews here at
    <a href="https://www.etsy.com/shop/MGDezigns/reviews" target="_blank">Etsy </a> and here at <a href="http://www.################################/reviews/mgdezigns-custom-wedding-invitations-stationery-redwood-city/041a3e52a41c4763.html" target="_blank"> WeddingWire</a>','you can read our client reviews here at
    <a href="https://www.etsy.com/shop/MGDezigns/reviews" target="_blank"> Etsy </a>') 
    WHERE products_description like '%<a href="https://www.etsy.com/shop/MGDezigns/reviews" target="_blank">Etsy </a> and here at <a href="http://www.################################/reviews/mgdezigns-custom-wedding-invitations-stationery-redwood-city/041a3e52a41c4763.html" target="_blank"> WeddingWire</a>%';
    these following lines simply do not get removed from the description!!

    Code:
     and here at <a href="http://www.################################/reviews/mgdezigns-custom-wedding-invitations-stationery-redwood-city/041a3e52a41c4763.html" target="_blank"> WeddingWire</a>

  2. #2
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,522
    Plugin Contributions
    127

    Default Re: Editing Bulk Description

    Don't do this. Use my boilerplate instructions instead.

    http://www.thatsoftwareguy.com/zenca...scription.html
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

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

    Default Re: Editing Bulk Description

    Quote Originally Posted by swguy View Post
    Don't do this. Use my boilerplate instructions instead.

    http://www.thatsoftwareguy.com/zenca...scription.html
    that seems like too difficult! but I will try... Thanks

  4. #4
    Join Date
    Feb 2009
    Posts
    81
    Plugin Contributions
    0

    Default Re: Editing Bulk Description

    Quote Originally Posted by swguy View Post
    Don't do this. Use my boilerplate instructions instead.

    http://www.thatsoftwareguy.com/zenca...scription.html
    i tried but it does not tell me how to remove specific part in my description?

    I just want to remove few lines with a link from all my descriptions, all product description have this same line!

  5. #5
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,522
    Plugin Contributions
    127

    Default Re: Editing Bulk Description

    Yes, I realized that later too. For the removal part, here's what you want (note I replaced your domain name with fooreviews to prevent blocking).

    Code:
    UPDATE products_description
    SET products_description = REPLACE(products_description,'you can read our client reviews here at <a href="https://www.etsy.com/shop/MGDezigns/reviews" target="_blank">Etsy </a> and here at <a href="http://www.fooreviews/mgdezigns-custom-wedding-invitations-stationery-redwood-city/041a3e52a41c4763.html" target="_blank"> WeddingWire</a>','');
    Then use the boilerplate to add this information back. Or just update your includes/templates/YOUR_TEMPLATE/templates/tpl_product_info_display.php file if you only want it to show up on the product info page.
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  6. #6
    Join Date
    Feb 2009
    Posts
    81
    Plugin Contributions
    0

    Default Re: Editing Bulk Description

    Quote Originally Posted by swguy View Post
    Yes, I realized that later too. For the removal part, here's what you want (note I replaced your domain name with fooreviews to prevent blocking).

    Code:
    UPDATE products_description
    SET products_description = REPLACE(products_description,'you can read our client reviews here at <a href="https://www.etsy.com/shop/MGDezigns/reviews" target="_blank">Etsy </a> and here at <a href="http://www.fooreviews/mgdezigns-custom-wedding-invitations-stationery-redwood-city/041a3e52a41c4763.html" target="_blank"> WeddingWire</a>','');
    Then use the boilerplate to add this information back. Or just update your includes/templates/YOUR_TEMPLATE/templates/tpl_product_info_display.php file if you only want it to show up on the product info page.
    totally lost here :/ btw I keep on reading it bipolar instead of boilerplate :/
    any how first I should run that code in SQL patches?
    then what do I edit in tpl_product_info_display.php ?

  7. #7
    Join Date
    Feb 2009
    Posts
    81
    Plugin Contributions
    0

    Default Re: Editing Bulk Description

    [QUOTE=swguy;1276499]Yes, I realized that later too. For the removal part, here's what you want (note I replaced your domain name with fooreviews to prevent blocking).

    Code:
    UPDATE products_description
    SET products_description = REPLACE(products_description,'you can read our client reviews here at <a href="https://www.etsy.com/shop/MGDezigns/reviews" target="_blank">Etsy </a> and here at <a href="http://www.fooreviews/mgdezigns-custom-wedding-invitations-stationery-redwood-city/041a3e52a41c4763.html" target="_blank"> WeddingWire</a>','');
    OMG!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1 this worked totally!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!11
    Thank You!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1

  8. #8
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,522
    Plugin Contributions
    127

    Default Re: Editing Bulk Description

    Thanks for reporting back your success.
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

 

 

Similar Threads

  1. v138a Bulk Editing Product Meta Tags
    By Psykryph in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 16 Mar 2012, 07:31 AM
  2. editing manufacturer description
    By xplosiv in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 27 Nov 2011, 06:35 AM
  3. how to replace the description of product in bulk?
    By handbag86 in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 6 Jul 2009, 05:41 PM
  4. Editing Description
    By hansonian in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 22 Oct 2007, 07:42 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