|

Add Product to Cart that doesn't Exist?
Posted 27 February 2013 - 01:37 AM #1
Posted 27 February 2013 - 05:54 AM #2
EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.
Posted 27 February 2013 - 07:29 AM #3
To add a product if there is no inventory then follow these steps:
####################
Go to Admin panel->Settings->General.
Under The Catalog Heading, there will be option "Allow negative amount in inventory". Check the box next to it and save the data.
This will allow the customer to add any product to cart whose inventory is Zero.
####################
Hope this helps.
Posted 27 February 2013 - 10:09 AM #4
Posted 27 February 2013 - 05:38 PM #5
Posted 27 February 2013 - 08:28 PM #6
$cart['products']['777777777777']['amount'] = 1; $cart['products']['777777777777']['product_options'] = array(); $cart['products']['777777777777']['price'] = 777; $cart['products']['777777777777']['stored_price'] = "N"; $cart['products']['777777777777']['extra']['product_options'] = array(); $cart['products']['777777777777']['extra']['unlimited_download'] = "N"; $cart['products']['777777777777']['extra']['return_period'] = 1; $cart['products']['777777777777']['stored_discount'] = "N"; $cart['products']['777777777777']['company_id'] = 0; $cart['products']['777777777777']['return_period'] = 1; $cart['products']['777777777777']['amount_total'] = 1; $cart['products']['777777777777']['options_type'] = "P"; $cart['products']['777777777777']['exceptions_type'] = "F"; $cart['products']['777777777777']['modifiers_price'] = 0; $cart['products']['777777777777']['is_edp'] = "N"; $cart['products']['777777777777']['edp_shipping'] = "N"; $cart['products']['777777777777']['base_price'] = 777; $cart['products']['777777777777']['display_price'] = 777;
Posted 28 February 2013 - 01:52 AM #7
You might create a new product with a product_code of 'on-the-fly' or something. Make it 'hidden' so it doesn't show.
Then when you add one of these non-existent products to the cart, have a hook that will go in and change the product_code, product (name), price, etc. to your liking.
EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.
Posted 01 March 2013 - 12:58 AM #8