Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Special Offers "Free Product"

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-08-2010, 08:49 AM
 
mrerotic mrerotic is offline
 

eXpert
  
Join Date: Feb 2009
Posts: 264
 

Default 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)
Reply With Quote
  #2  
Old 12-09-2010, 11:12 AM
 
mrerotic mrerotic is offline
 

eXpert
  
Join Date: Feb 2009
Posts: 264
 

Default Re: Special Offers "Free Product"

Anyone please help.
__________________
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)
Reply With Quote
  #3  
Old 12-09-2010, 11:14 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default 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.
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
  #4  
Old 12-10-2010, 09:04 PM
 
mrerotic mrerotic is offline
 

eXpert
  
Join Date: Feb 2009
Posts: 264
 

Default Re: Special Offers "Free Product"

Thank you I will look into it.
__________________
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)
Reply With Quote
  #5  
Old 12-10-2010, 10:19 PM
 
mrerotic mrerotic is offline
 

eXpert
  
Join Date: Feb 2009
Posts: 264
 

Default 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.
__________________
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)
Reply With Quote
  #6  
Old 12-12-2010, 11:30 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default 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.
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote

The following user thanks qualiteam for this useful post:
mrerotic (02-03-2011)
  #7  
Old 04-01-2011, 11:16 PM
 
kurv kurv is offline
 

Advanced Member
  
Join Date: Jun 2010
Posts: 67
 

Default 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'
__________________
Wes Beckwith
KURV studios
XCart 4.4.2 on a Linux Server
Added Mod - Download Expander
Added Mod - Social Icons
Added Mod - Video Samples
Added Mod - Enhanced Tabs
Reply With Quote
  #8  
Old 04-02-2011, 12:01 AM
 
mrerotic mrerotic is offline
 

eXpert
  
Join Date: Feb 2009
Posts: 264
 

Default Re: Special Offers "Free Product"

I'm on 4.2.x so no you can't in this version.
__________________
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)
Reply With Quote
  #9  
Old 04-02-2011, 07:31 PM
 
kurv kurv is offline
 

Advanced Member
  
Join Date: Jun 2010
Posts: 67
 

Default 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???????
__________________
Wes Beckwith
KURV studios
XCart 4.4.2 on a Linux Server
Added Mod - Download Expander
Added Mod - Social Icons
Added Mod - Video Samples
Added Mod - Enhanced Tabs
Reply With Quote
  #10  
Old 06-04-2012, 09:37 AM
 
aitek aitek is offline
 

Advanced Member
  
Join Date: Jul 2010
Posts: 77
 

Default 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).
__________________
X-Cart DB Version: 4.4.4 GOLD Addons:Feature Comparison (enabled);Magnifier (enabled); Product Configurator (enabled); Special Offers (enabled); Survey (enabled); XAffiliate (enabled);
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 06:53 AM.

   

 
X-Cart forums © 2001-2020