#211 – Attached products

Posted in ‘Catproduct’
 Hi,
this is inside database (xxx_virtuemart_product_customfields --> field customfield_params) when I save the CATProduct parameters (unnecessary white space and carriage return).
I can not import / export products using csv Roland improved.

........show_total_discountAmount="0"|enable_attached_products_array=[
    "1"
]|enable_title_for_attached_array=[
    "1"
]|title_for_attached_products_array=[
    "chainsaw"
]|id_sku_for_attached_products_array=[
    "sku"
]|attached_products_array=[
    "root"
]|attached_products_layout_array=[
    "checkbox_g_CP_3_2_2.php"
]|attached_products_def_qty_array=[
    "1"
]|attached_products_show_qty_array=[
    "0"
]|use_max_min_quantity="0".........


can I have a solution?
Best regards,
Bruno
broma
Hi,

Hm... this is strange. All saving and loading from database is handled by VM and Joomla. So, in fact Catproduct has nothing to do here. Also, I don't have this issue with my enviroment.

It could be some issues with char coding in database...

CSV improved supports replacement rule so you can try here. To add replacement rule that changes all unwanted chars into empty char.

So something like this_ CSVI -> Replacements -> New

Find: "/\s+/S"
Replace: ""
Multiple: YES
Method: Expression

Or something like that. You can ask Roland about exact settings.

Hope this helps.

Best Regards,
Maja

maja_mlinar

Hi Majia,
have the pleasure to inform you that the problem disappears if I use php 5.3.
The error occurs if I use PHP 5.4 or greater (I'll try to understand why).
Thank you very much.

Best regards
Bruno
broma

This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.

About the author

Who‘s behind this

Demo

Maja Mozina Mlinar

founder
Demo

Sandi Mlinar

procurator

info@sm-planet.net

Skype: maja.mozina1