You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Save product with Product Model -> store() ?

Started by andrew.overlord, September 09, 2013, 16:48:13 PM

Previous topic - Next topic


I'm trying to write a component for importing product through uploaded pricelist.
I'm using VmModel::getModel ('product')->store($mydata).
The data is written successfully #__virtuemart_products_LANG table, but the #__virtuemart_products table is empty.
What am I doing wrong?
Thanx. (Sorry for my bad english)


additional info:

            'virtuemart_product_id'=>ID HERE,

If the product exists with 'virtuemart_product_id' - it's work (save changes).
If I don't use 'virtuemart_product_id' it's work too (simply add value to DB).