- Posts: 8
- Thank you received: 0
import promblem when field contain comma
I import categories, one of them contains comma (for exapmle "fish, meat, vegetables")
hikashop creates 3 categories instead one: "fish" " meat" " vegetables"
file *.csv attached (19 line)
Please Log in or Create an account to join the conversation.
You will have to use something else than the comma if you don't want that or you should do it differently.
For example, you could create that category and then have the category id instead of the category name in the categories column of your CSV.
Please Log in or Create an account to join the conversation.
But I have another question:
when I import products, and if product ends with quotes, then in hikashop appears without last quotes
for example I have in my *.csv procuct soap "sheep", in hikashop it imports as soap "sheep
but if the last char not quotes, then everything good (soap "sheep" small --> soap "sheep" small)
Please Log in or Create an account to join the conversation.
The first " and the last will delimit the data of the column and the "" will be converted to " during the import.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
$newProduct->$field = trim($value,'\'" ');
by:
$newProduct->$field = preg_replace('#^[\'" ]{1}(.*)[\'" ]{1}$#','$1',$value);
in the file administrator/components/com_hikashop/helpers/import.php and try again.
Please Log in or Create an account to join the conversation.
thanks a lot!
Please Log in or Create an account to join the conversation.
field product_description during import lose html tags
(<p>text1<br />text2 text3 text4 text5<br />text6 text7</p> --> text1text2 text3 text4 text5text6 text7)
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
$newProduct->$field = trim($value,'\'" ');
by:
$newProduct->$field = preg_replace('#^[\'" ]{1}(.*)[\'" ]{1}$#','$1',$value);
Please Log in or Create an account to join the conversation.
Can you do an import while having the debug mode of the joomla configuration activated and give the traces printed at the bottom of the page ?
Please Log in or Create an account to join the conversation.
Thanks
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
One more question: where do you select the field separator in the back panel of Hikashop?
Please Log in or Create an account to join the conversation.
For the export, there is an option for that in the Files/Images tab of the configuration.
Please Log in or Create an account to join the conversation.