X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Special Offers "Free Product" (https://forum.x-cart.com/showthread.php?t=56950)

mrerotic 12-08-2010 08:49 AM

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.

mrerotic 12-09-2010 11:12 AM

Re: Special Offers "Free Product"
 
Anyone please help.

qualiteam 12-09-2010 11:14 PM

Re: Special Offers "Free Product"
 
This feature is available in 4.4.x. Please check the X-Cart demo site.

You can check the special offers module from that version to find the necessary code.

mrerotic 12-10-2010 09:04 PM

Re: Special Offers "Free Product"
 
Thank you I will look into it.

mrerotic 12-10-2010 10:19 PM

Re: Special Offers "Free Product"
 
There has been a ton of stuff changed from 4.2.1 to 4.4.x and ideas on what I should be looking for here? Thanks in advance.

qualiteam 12-12-2010 11:30 PM

Re: Special Offers "Free Product"
 
Quote:

Originally Posted by mrerotic
There has been a ton of stuff changed from 4.2.1 to 4.4.x and ideas on what I should be looking for here? Thanks in advance.


You should check two scripts from X-Cart 4.4.x:
---
1. <xcart>/cart.php
2. <xcart>/modules/Special_Offers/add_free_products.php
---
to see how they work in that version.

I suppose it will give you an idea of how to make the same feature in 4.2.x.

kurv 04-01-2011 11:16 PM

Re: Special Offers "Free Product"
 
Quote:

Originally Posted by qualiteam
This feature is available in 4.4.x. Please check the X-Cart demo site.

You can check the special offers module from that version to find the necessary code.


You can add 'Free Products'

mrerotic 04-02-2011 12:01 AM

Re: Special Offers "Free Product"
 
I'm on 4.2.x so no you can't in this version.

kurv 04-02-2011 07:31 PM

Re: Special Offers "Free Product"
 
Quote:

Originally Posted by mrerotic
I'm on 4.2.x so no you can't in this version.


Thanks, yes understand :( and it is weird that you cant IMHO...

But I was asking the Qualiteam rep here why then did he say...

"This feature is available in 4.4.x. Please check the X-Cart demo site.

You can check the special offers module from that version to find the necessary code."

I checked the XCart demo site and there are no 0.00 items there to test.

Qualiteam???????

aitek 06-04-2012 09:37 AM

Re: Special Offers "Free Product"
 
Hello,
I have 4.4.x and when I add this feature to special offers, it does not automatically add the product to the cart, which I think it should. On the cart page it shows a little text field that they have to click on then add the product to the cart then see that its free, this is causing a lot of calls wondering where their free product is. Is there a way to have it automatically added when the cart total exceeds a certain amount $75 (which I have it set to).


All times are GMT -8. The time now is 11:49 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.