[solved] how to create products on the fly
Posted: Mon Sep 12, 2011 2:35 pm
i have calguys ecommercebase, cart, products, orders modules installed and all working 100%.
products module works perfectly but im now thinking i could save myself a lot of time and overheads if i got the products from my supplier as a customer is searching on my website.
i wrote a little bit of code to login to one of my suppliers using Curl, retrieve the product, price, description and output it to a page depending on my customers search criteria.
what im trying to figure out is how to allow the customer to add their chosen product to their cart then checkout without the need of adding the product manually through products module myself.
ive been toying with a few ideas and one is if the customer wants the product and clicks add to cart, cmsms will add it to products module in the background and then add it to the actual cart module. after time the products module would become bloated with useless information so will delete it once purchase has been completed.
if anyone has any input or any other method of achieving what im trying to do i would be glad to hear from you.
Regards,
Andy
products module works perfectly but im now thinking i could save myself a lot of time and overheads if i got the products from my supplier as a customer is searching on my website.
i wrote a little bit of code to login to one of my suppliers using Curl, retrieve the product, price, description and output it to a page depending on my customers search criteria.
what im trying to figure out is how to allow the customer to add their chosen product to their cart then checkout without the need of adding the product manually through products module myself.
ive been toying with a few ideas and one is if the customer wants the product and clicks add to cart, cmsms will add it to products module in the background and then add it to the actual cart module. after time the products module would become bloated with useless information so will delete it once purchase has been completed.
if anyone has any input or any other method of achieving what im trying to do i would be glad to hear from you.
Regards,
Andy