Auto-Fill Invoice with every Product
Hi guys. I am having trouble with a script I'm writing. Basically I want to add every current Product in my database to an Invoice. The user will at times need to start an invoice by running this script and adding all products to the invoice. I've been told the best way to do this is to write a script that pulls all products, then loops through them by adding each one. I've spent the last week working on it but I'm still not having any luck.
Anyone that can help please let me know.