Jump to content
  • 0
ctech

[Solved] (ID 1) cannot be saved, cvs import

Question

so i manually put this" "Stocked in China into ps_product_lang::available_later field.
the cvs import tool does some error checking and does not like html in this field.....
what i didnt expect is if only update the fields name,id,img() that it would do error checking on whats already in the db, WOW.
anywho i need to disable this error checking where do i start???

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

sure:
"1","http://server17.hosting24.com/~semisane/product_img/TL-WR541G.jpg","TL-WR541G"
,"","TL-WR541G"

and a picture of ps_product_lang row one. i think the available_later is the problem
(edit) content of the DB before the insert/update

35947_0jqCHlJqdlYek4yanapg_t

Share this post


Link to post
Share on other sites
  • 0

It's line 192 of classes/Product.php that prevents you putting HTML in the available_later field:

'description' => 'isString', 'description_short' => 'isString', 'available_now' => 'isGenericName', 'available_later' => 'IsGenericName');



The isGenericName function generates an error if you use any of the characters ^<>;=#{}

To allow HTML, change the line to:

'description' => 'isString', 'description_short' => 'isString', 'available_now' => 'isGenericName', 'available_later' => 'isCleanHtml');



This will allow all HTML except Javascript and events.

Share this post


Link to post
Share on other sites
  • 0

available_later' => 'isGenericName', seems to remove all the html so i just removed that from the array.
that was very helpful

thank you very much!!!!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×