VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: YZF on April 07, 2015, 20:26:06 PM

Title: Synch stock levels with Virtuemart
Post by: YZF on April 07, 2015, 20:26:06 PM
Hello,

We are looking for a simple way to synch our stock levels between our product/accounting software and our Joomla/Virtuemart website.  Can anyone tell us what is the best way to accomplish this?

Joomla - 3.3.6.   Virtuemart - 3.02

Thank you for any assistance with this question.
Title: Re: Synch stock levels with Virtuemart
Post by: GJC Web Design on April 08, 2015, 11:46:00 AM
at the very least if you wanted some help surely you should mention your -> product/accounting software ?
Title: Re: Synch stock levels with Virtuemart
Post by: Matt_Ginn on April 08, 2015, 14:04:41 PM
If your product/accounting software can output a .csv file containing the product SKU and the stock level, it's a fairly easy job to write a .php file that loops through it and writes to your VM database. You can then schedule it to run overnight (if that's what you want) with a shell script. I do something very similar where I automatically download a CSV from our product manufacturer at 1am every morning and update all the stock on our site:

http://www.mardens-trading.co.uk/portwest/

Although we are still using Joomla 2.5.28 and VM 2.6.16, I doubt it will be very different for your versions.
Title: Re: Synch stock levels with Virtuemart
Post by: YZF on April 08, 2015, 18:08:23 PM
Quote from: GJC Web Design on April 08, 2015, 11:46:00 AM
at the very least if you wanted some help surely you should mention your -> product/accounting software ?

I didn't think that was necessary since we export the data fields we need and save it as a text file. However, we are using AccountEdge.

Thanks for your input Matt_Ginn. We will look into that.
Title: Re: Synch stock levels with Virtuemart
Post by: GJC Web Design on April 08, 2015, 21:43:59 PM
If the data is exportable as a csv then csvi is a simple way to import the data
http://www.csvimproved.com/en/
Title: Re: Synch stock levels with Virtuemart
Post by: YZF on April 09, 2015, 18:53:32 PM
Thanks GJC. I think that is the solution we're looking for.