Results 1 to 5 of 5

Easy Populate and double quotes -- any way to use them?

This is a discussion on Easy Populate and double quotes -- any way to use them? within the osCmax v2 Customization/Mods forums, part of the osCmax v2.0 Forums category; I'm wanting to add a simple javascript popup window to several hundred product descriptions. But EasyPopulate gives an error because ...

      
  1. #1
    Member
    Join Date
    Feb 2004
    Posts
    89
    Rep Power
    0


    Cool Easy Populate and double quotes -- any way to use them?

    I'm wanting to add a simple javascript popup window to several hundred product descriptions. But EasyPopulate gives an error because of the use of quotation marks in my code.


    Specifically, the HTML/javascript description I've tried to paste into the fields in my EP file is as follows:

    <p>Look to the Black & White photos for the <strong>SHAPE</strong> of the bead. To view the color note the <strong>COLOR NUMBER</strong> beside the color name and <a onclick=/"window.open('http://www.bellinghambeadbazaar.com/images/guatemalanclaycolors.jpg','popup','toolbar=0,scrol lbars=1,location=0,statusbar=0,menubar=0,resizable =1,width=82
    5,height=500,left = 400,top = -468'); return false/" href=/"../../../images/guatemalanclaycolors.jpg/">click to see the color guide</a>. The colors are arranged by number.</p>


    The error that EasyPopulate spits out is:

    1064 - You have an error in your SQL syntax near 'http://www.bellinghambeadbazaar.com/images/guatemalanclaycolors.jpg','popup','to' at line 3
    UPDATE products_description SET products_name='2-Pink Stamped Round Tube-Lrg/24-30x10-12mm/Qty 10', products_description='
    Look to the Black & White photos for the SHAPE of the bead. To view the color note the COLOR NUMBER beside the color name and click to see the color guide. The colors are arranged by number.
    ', products_url='
    Look to the Black & White photos for the SHAPE of the bead. To view the color note the COLOR NUMBER beside the color name and click to see the color guide. The colors are arranged by number.
    ' WHERE products_id = '72' AND language_id = '1'
    [TEP STOP]



    Anyone have any ideas for getting the double quotes in there?

    Thanks ahead of time,
    Gheffron

  2. #2
    osCMax Testing Team
    Join Date
    Oct 2006
    Location
    Atlanta GA
    Posts
    193
    Rep Power
    12


    Default Re: Easy Populate and double quotes -- any way to use them?

    All you should have to do is update you EP you can download:

    http://www.oscmax.com/project/easypopulate_attributes

    Are you trying to add this in the Description filed?

    Adam

  3. #3
    Member
    Join Date
    Feb 2004
    Posts
    89
    Rep Power
    0


    Default Re: Easy Populate and double quotes -- any way to use them?

    I downloaded the update and installed it, but I wasn't able to get it to work. In fact, I wasn't able to upload any changes at all, as EP told me (upon upload of the modified CSV file) that there wasn't a product model number for the products, and so no changes were made. (I've been using EP successfully for awhile, and I know the model numbers were there.)

    Any other ideas?

  4. #4
    osCMax Testing Team
    Join Date
    Oct 2006
    Location
    Atlanta GA
    Posts
    193
    Rep Power
    12


    Default Re: Easy Populate and double quotes -- any way to use them?

    Did you try downloading a new export from EP?

    Please also post the 1st 2 lines of your EP file so I can see what you are trying to import?

    Did you maybe add new fields in the old EP?

    Adam

  5. #5
    Member
    Join Date
    Feb 2004
    Posts
    89
    Rep Power
    0


    Cool Re: Easy Populate and double quotes -- any way to use them?

    I figured out how to get it uploading -- I'm on a Mac, so I had to save the CSV from Excel as "CSV (Windows)". Victory on that front.

    And I figured out the other problem as well. I'd had escaped characters in my code (since I was trying to get them into the system via the old version of EasyPopulate). Once I removed them -- i.e. replaced them with the standard code -- everything worked perfectly.

    Thanks so much!

Similar Threads

  1. Easy Populate
    By justedee in forum osCMax v2 Features Discussion
    Replies: 2
    Last Post: 10-12-2007, 07:19 AM
  2. Where did Easy Populate Go?
    By ScaleCreep in forum osCmax v1.7 Discussion
    Replies: 10
    Last Post: 02-21-2005, 08:23 AM
  3. Easy Populate
    By lem in forum osCmax v1.7 Discussion
    Replies: 6
    Last Post: 12-07-2004, 03:28 PM
  4. Double Trouble (double products?)
    By gheffron in forum osCmax v1.7 Discussion
    Replies: 2
    Last Post: 06-18-2004, 11:54 AM
  5. How to use Easy Populate
    By judoka in forum osCommerce 2.2 Installation Help
    Replies: 1
    Last Post: 07-07-2003, 10:47 AM

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
  •