Special Offers "Free Product"
ok so I have this setup correctly in the special offers area, however if the condition is met then this free product is not automatically added to the cart. I found the following code
PHP Code:
if ($func_is_cart_empty) { $add_product = array(); $add_product["productid"] = productid_to_add; $add_product["amount"] = 1; $add_product["product_options"] = array(); $add_product["price"] = 0; $result = func_add_to_cart($cart, $add_product); }
and I need to know how to add this to special offers so when the customer meets the condition setup to receive this free product, this product is automatically added to their cart. Any help would be great.
__________________
x-cart 4.2.3
AlteredCart Smart Search
Auto Featured Products Mod (Personal Mod)
BCSE Product Importer Pro & Drop Shipper Pro
CDSEO Pro
CMS EZRecommends
EE slider login (Personal Mod)
Next Prev Link Mod (Customized)
ShadowBox Detailed Images (Personal Mod)
Shop By Price (Customized)
Social Media (Personal Mod)
Switch Layout View (Personal Mod)
Special Offers
Testimonials (Personal Mod)
Whats New (Customized)
|