Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    Nov 2006
    Posts
    16
    Plugin Contributions
    0

    Default Can't update product descriptions

    I'm having a problem with Zen Cart updating product descriptions after I've inputted the initial product description just fine. I've tried altering the record using PHPMySql and that throws errors.

    I'm using:

    Zen Cart 1.3.7
    Database Patch Level: 1.3.7

    My last programmer told me that there was a problem in how Zen Cart deals with the HTML on descriptions.

    Is there a fix or a workaround that anyone is aware of?

    Appreciate your help.

  2. #2
    Join Date
    Sep 2006
    Location
    Colorado Springs CO USA
    Posts
    516
    Plugin Contributions
    2

    Default Re: Can't update product descriptions

    From Admin select:

    Catalog -> Categories/Products

    Open the appropriate category and find your product.

    Click the round icon with E inside (usually green icon). E stands for "Edit".

    Make changes to your product listing.

    Now here is where I believe things went wrong:

    You MUST click "PREVIEW" when finished editing.
    Then, from the Preview Screen you MUST click "UPDATE" in order to save your changes.

    Best of luck,

    Ron
    www.aspenshopsonline.com - ZenCart 1.3.9h
    www.wilkssupply.com - ZenCart 1.3.9h
    www.un-du.net - ZenCart 1.3.8a

  3. #3
    Join Date
    Nov 2006
    Posts
    16
    Plugin Contributions
    0

    Default Re: Can't update product descriptions

    Quote Originally Posted by ronlee67 View Post
    From Admin select:

    Catalog -> Categories/Products

    Open the appropriate category and find your product.

    Click the round icon with E inside (usually green icon). E stands for "Edit".

    Make changes to your product listing.

    Now here is where I believe things went wrong:

    You MUST click "PREVIEW" when finished editing.
    Then, from the Preview Screen you MUST click "UPDATE" in order to save your changes.

    Best of luck,

    Ron
    Thanks Ron but that's not the problem. Zen Cart won't allow me to do the update after the preview. Actually, I make the changes to an existing product and hit "preview" and the original product description re-appears. It's not a cache issue either.

    My ex-Zen Cart programmer told me it was a problem with how Zen Cart handles some HTML. He was able to update product descriptions through MySql... I know a bit about that too but PHPMySql throws an error when I attempt to make a description change through this backdoor.

    Here's a warning I get:

    More than one FULLTEXT key was created for column `products_description`

    When I try to make a change to a product description through PHPMySql I get this error:

    Error

    SQL query:
    A
    MySQL said:

    #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'A' at line 1


    Here's a pic from PHPMySql. Is the problem because I have 4 product descriptions? Should I simply delete the last three of them?
    Attached Images Attached Images  
    Last edited by geoman; 23 Aug 2007 at 12:58 PM.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Can't update product descriptions

    1. yes, you should delete the 3 extra product-description indexes.

    2. Zen Cart doesn't currently use FULLTEXT indexes, so you're apparently not using default core code.
    What are all the addons/contributions you've installed?
    What additional customizations have been done to your store?

    3. Additionally, in the future, all the details of error messages you're encountering should be posted when you mention that there's a problem. Based only on your first post there is no explanation for having any problems because all you said is that you couldn't save product descriptions and had some blame to point to Zen Cart. Specific details are always more likely to get you detailed help faster. Otherwise things sometimes go unanswered.
    .

    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.

  5. #5
    Join Date
    Nov 2006
    Posts
    16
    Plugin Contributions
    0

    Default Re: Can't update product descriptions

    Quote Originally Posted by DrByte View Post
    1. yes, you should delete the 3 extra product-description indexes.

    2. Zen Cart doesn't currently use FULLTEXT indexes, so you're apparently not using default core code.
    What are all the addons/contributions you've installed?
    What additional customizations have been done to your store?

    3. Additionally, in the future, all the details of error messages you're encountering should be posted when you mention that there's a problem. Based only on your first post there is no explanation for having any problems because all you said is that you couldn't save product descriptions and had some blame to point to Zen Cart. Specific details are always more likely to get you detailed help faster. Otherwise things sometimes go unanswered.
    Doc,

    Your point is well taken (however, see #3, below).

    1) I deleted the three extra product description indexes and cannot add new products to the store now... (CLARIFICATION: I can add new products but no product descriptions for the new products).

    2) I've added shipping modules (Ajah performed this), Easy Populate (have never used it), and HelpCenter Live (do not use it - was installed as a script through my ISP). None others that I can name. No other customizations except I will occasionally change header text on banner boxes, etc.

    3) I did not understand there were errors until I had dug in a bit deeper while waiting for some help...

    Thanks for your input.

  6. #6
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Can't update product descriptions

    Quote Originally Posted by geoman View Post
    3) I did not understand there were errors until I had dug in a bit deeper while waiting for some help...
    Fair enough. Thus, your additional post with the details of what you discovered while waiting was completely appropriate. I apologize if my tone sounded harsh - it wasn't intended to be. I really only meant it as an explanation and a guide. Thanks for clarifying.


    What kind of HTML is in your product description?
    .

    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.

  7. #7
    Join Date
    Nov 2006
    Posts
    16
    Plugin Contributions
    0

    Default Re: Can't update product descriptions

    Quote Originally Posted by DrByte View Post
    Fair enough. Thus, your additional post with the details of what you discovered while waiting was completely appropriate. I apologize if my tone sounded harsh - it wasn't intended to be. I really only meant it as an explanation and a guide. Thanks for clarifying.

    What kind of HTML is in your product description?
    No harshness taken. I understand completely where you are coming from. I love Zen Cart.

    First of all, I better clarify. I am on a Mac using Safari and/or Firefox (mostly Firefox). I can emulate XP (and IE Explorer) using Parallels but don't usually...

    For the most part, I cut and paste descriptions from manufacturer sites. They can contain bulleted lists, etc.

    Here's an example of one that cannot be altered at all via Zen Cart or PHPMySql:

    Click here

    Appreciate your input.

  8. #8
    Join Date
    Mar 2007
    Location
    Seattle, WA
    Posts
    159
    Plugin Contributions
    0

    Default Re: Can't update product descriptions

    Hi Folks,

    I came in late on this thread, but I loaded the example that you mentioned and my debugger instantly had an issue with it, though of course, it didn't tell me what it didn't like. I do see a bunch of javascript in there that doesn't make sense to me. I haven't played around too much with Javascript and Zencart, but I imagine it is possible that some of this troulbe could be there.

    My debugger failed on line 344 with the following segment of code:

    Code:
    Cleverly, the LEDs are user replaceable, as are the <a class="inline" onclick="function onclick(event) {sndReq("./content/_uni/products.php?cat=lightheads&products=wilma&section=lens"); }">lenses</a>
    Looking at the page itself, that link doesn't show up. I don't know that htis is your problem, but script errors on the preview page could cause the update script to not function.

    Good luck.

  9. #9
    Join Date
    Nov 2006
    Posts
    16
    Plugin Contributions
    0

    Default Re: Can't update product descriptions

    Quote Originally Posted by jammin320 View Post
    Hi Folks,

    I came in late on this thread, but I loaded the example that you mentioned and my debugger instantly had an issue with it, though of course, it didn't tell me what it didn't like. I do see a bunch of javascript in there that doesn't make sense to me. I haven't played around too much with Javascript and Zencart, but I imagine it is possible that some of this troulbe could be there.

    My debugger failed on line 344 with the following segment of code:

    Code:
    Cleverly, the LEDs are user replaceable, as are the <a class="inline" onclick="function onclick(event) {sndReq("./content/_uni/products.php?cat=lightheads&products=wilma&section=lens"); }">lenses</a>
    Looking at the page itself, that link doesn't show up. I don't know that htis is your problem, but script errors on the preview page could cause the update script to not function.

    Good luck.
    Thanks jammin.

    I take that as problem that I will correct - thank you.

    However, I can't add a new product description even with sample description text (i.e. no code at all) to my store. I can add the product, just not any description. This particular issue seems to have happened after I deleted the 3 product description indexes as mentioned earlier in the thread. Prior to that, I could not update descriptions once they were entered and updated.

    UPDATE: I just retried a simple sample description text and it will add it to a new product. So my problem really involves updated existing descriptions. I'll try completely deleting the original description, reformatting looking particularly close at the code you describe above, and see if that fixes it. Thanks for the headsup.
    Last edited by geoman; 23 Aug 2007 at 06:14 PM.

  10. #10
    Join Date
    Nov 2006
    Posts
    16
    Plugin Contributions
    0

    Default Re: Can't update product descriptions

    BINGO.

    Copied original description text to a text editor, removed all HTML, and it saves to the product.

    Thanks very much for all the help.

    I seem to be fixed.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. How to use a append query to update all product descriptions?
    By welshop.com in forum General Questions
    Replies: 7
    Last Post: 24 Aug 2016, 12:33 PM
  2. Replies: 2
    Last Post: 9 Oct 2013, 06:09 PM
  3. Replies: 10
    Last Post: 26 Oct 2006, 11:07 PM
  4. suddenly can't edit product descriptions!
    By p m in forum General Questions
    Replies: 3
    Last Post: 23 Oct 2006, 03:02 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