ctech Posted December 29, 2010 Share Posted December 29, 2010 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??? Link to comment Share on other sites More sharing options...
CYTechnologies Posted December 29, 2010 Share Posted December 29, 2010 Can we see a sample line item from the import? Link to comment Share on other sites More sharing options...
ctech Posted December 29, 2010 Author Share Posted December 29, 2010 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 Link to comment Share on other sites More sharing options...
rocky Posted December 30, 2010 Share Posted December 30, 2010 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. Link to comment Share on other sites More sharing options...
ctech Posted December 30, 2010 Author Share Posted December 30, 2010 available_later' => 'isGenericName', seems to remove all the html so i just removed that from the array. that was very helpfulthank you very much!!!! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now