Is there a way where we can create an order with a cron job? I need this because, the product which I sell is a prepaid subscription(a simple magento product).
Which after payment, I convert it into 6 products(again simple magento product) in case it is a six month subscription and put the first month's order into the cart and remaining 5 products SKUs into a separate table, along with customer_id, some foreign_id for identification and the respective shipping dates.
I could do the above by hooking on to the event
Then I program the cron to run each day and match today's date with the shipping dates in the above created table, fetch those SKUs, customer_id and process the order.
How to go about in making a CRON job to order on behalf of the customer.
The reason I am using the above method is because,
1) The payment is prepaid. NO RECURRING PAYMENTS. I could not use magento's in-built recurring profiles or Aheadworks' subscription and recurring payments plugin. As all are based on billing agreement and are recurring based on paypal/ authorize.net 's call. Thus this is not the solution for the problem
2) If I use a bundle product and put all the 12 sub products (incase of 12 month subscription) into it and sell, the orders will be translated as a single order. It will be pending for 12 months as the shipping will take place 1 sub-product per month.
3) I need to manage inventory on the sub products
If there is some other way to go about in this, please let me know.
If there is a plugin to do all these stuff and you could point that out to me, I owe you a beer!
Help me out. I am literally 5 days old in Magento