How to add a product to cart, like a guest customer, without the need to have a registered product?
I created a module that have some informations about products that will be added to the shopping cart by api:
{
"products" : [
{
"name" : "product1",
"price" : 30.20,
"qty" : 1
},
{
"name" : "product2",
"price" : 20.30,
"qty" : 2
}
]
}
But this products is not registered in Magento database. And I don't have the interest to register it. I only need to use the informations about these products to finish the checkout.
I need to know if someone knows how to add a "not registered" product to cart to magento make the collection with this "mocked" product and not search a product in the database.