Forums / All Other Contributions/Addons / Free Gifts-Dangling Carrot support

Free Gifts-Dangling Carrot support

Views: 48,602

Results 141 to 160 of 237
29 Oct 2009, 2:38 PM
#141
kvwlls avatar

kvwlls

New Zenner

Join Date:
Jan 2009
Posts:
32
Plugin Contributions:
0

Free Gifts-Dangling Carrot support

I think reading through everyone elses issues with this mod, you should only install this if absolutely sure, and experienced enough to deal with any issues, until a more reliable update has been submitted.

6 Nov 2009, 3:21 PM
#142
bddots avatar

bddots

New Zenner

Join Date:
Oct 2009
Posts:
4
Plugin Contributions:
0

Re: Free Gifts-Dangling Carrot support

This mod is mostly working for me. The only issue I'm having is that when I put in an amount ($7) for the threshhold and then click on add, it's showing under 'Free Gift' as 0. Then on my checkout page it says "By spending over $0.00 you have qualified for the following gift!" So it's almost working, just not allowing me to set the threshhold. What can I do to fix this?

10 Nov 2009, 12:19 PM
#143
chronicent avatar

chronicent

New Zenner

Join Date:
Nov 2009
Posts:
7
Plugin Contributions:
0

Re: Free Gifts-Dangling Carrot support

i have a problem with this mod, i have installed this mod and it show in the admin panel. i have set the threshold for 25. but at the checkout the free gif doesnt add to the cart??

any help please?

11 Nov 2009, 6:33 AM
#144
chronicent avatar

chronicent

New Zenner

Join Date:
Nov 2009
Posts:
7
Plugin Contributions:
0

Re: Free Gifts-Dangling Carrot support

bddots:

This mod is mostly working for me. The only issue I'm having is that when I put in an amount ($7) for the threshhold and then click on add, it's showing under 'Free Gift' as 0. Then on my checkout page it says "By spending over $0.00 you have qualified for the following gift!" So it's almost working, just not allowing me to set the threshhold. What can I do to fix this?

It is because you are using the $ symbol. Remove it and it will work fine..

By the way i got my problem sorted out. and im in a new problem.

When the user is qualifiled for a free gift and when the customer adds it to the cart, the price of the free product is not deducted.

If i set the item out of stock and add a product i get the below error and it will not be added to the cart..please help me.

Please update your order. The item: A3001 purple
We are sorry but this product has been removed from our inventory at this time.
This item has been removed from your shopping cart.

28 Nov 2009, 2:24 PM
#145
jinxster13 avatar

jinxster13

New Zenner

Join Date:
Nov 2005
Posts:
26
Plugin Contributions:
0

Re: Free Gifts-Dangling Carrot support

I am waiting to install this on a site based on the many issues it seems to be having. Do we have any word, if and when an update will be made to this??

Thanks in advance!

17 Dec 2009, 1:25 PM
#146
pmgint avatar

pmgint

New Zenner

Join Date:
Nov 2008
Posts:
15
Plugin Contributions:
0

Re: Free Gifts-Dangling Carrot support

I had to remove dangling carrot because I could not get it operating effectively however I now have a related problem where the shopping cart cannot be viewed. Message when viewing the shopping cart is:

1146 Table 'kee48203_zencart.TABLE_CARROT' doesn't exist
in:
[SELECT fg.*, p.products_id, p.products_model, p.products_price, p.products_image, p.products_status, pd.products_name FROM (TABLE_CARROT fg, products p) LEFT JOIN products_description pd ON (pd.products_id=fg.products_id) WHERE pd.language_id = '1' AND p.products_id = fg.products_id ORDER BY fg.threshold ASC]

Any ideas on what I need to do to correct this problem ??

2 Jan 2010, 5:27 PM
#147
paul3648 avatar

paul3648

Zen Follower

Join Date:
Mar 2007
Location:
Taiwan
Posts:
239
Plugin Contributions:
0

Re: Free Gifts-Dangling Carrot support

I think this module is working except for the issue of the gifts remaining in the cart if the customer logs off without completing the purchase.

The solution to this, it seems to me, is to remove gifts from carts which have an expired session ID.

This code, from gift_add.php, might allow the gift to be deleted:

  case 'delete' :
  	$id = $_GET['ID'];
	if ($id) {
	    $db->Execute("delete from " . TABLE_CARROT . " where products_id = '".$id."'");
	}

Except instead of products_id it should be session id.

I'm just thinking out loud here, so if anyone can tell me if I'm on the right track, please let me know.

2 Jan 2010, 6:17 PM
#148
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,683
Plugin Contributions:
0

Re: Free Gifts-Dangling Carrot support

I am using Zen Version 1.3.8V Everything is working in Admin area but When I add an product when they purchase $100.00 or more. When add an item for $250.00 to the cart and when I check out the product it didn't add the free prodcut to the shopping cart at all what am I doing wrong?

2 Jan 2010, 6:56 PM
#149
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,683
Plugin Contributions:
0

Re: Free Gifts-Dangling Carrot support

I have it working but when I insert 100 or up 250 for the free gift but when they purchase 90.00 it pops up the free gift in the shopping cart I don't want that. I want they have to purchase $100 or more to get the free gift. How can I fix that?

3 Jan 2010, 6:13 AM
#150
paul3648 avatar

paul3648

Zen Follower

Join Date:
Mar 2007
Location:
Taiwan
Posts:
239
Plugin Contributions:
0

Re: Free Gifts-Dangling Carrot support

I think I have the solution to delete the gifts when a session ends:

includes/functions/sessions.php

Line 162 in function zen_session_recreate()

replace:

global $http_domain, $https_domain, $current_domain;

with:

global $http_domain, $https_domain, $current_domain, $db;
$db->Execute("DELETE from " . TABLE_CUSTOMERS_BASKET . " WHERE products_id = 96 OR products_id = 97 OR products_id = 98");

Replace 96, 97, 98 with your actual product ids for your free gifts.

This removes the gifts when the customer times out, or when the customer logs off. If the gifts are not deleted, it's possible to select two free gifts when a visitors cart is merged with a customers cart.

8 Jan 2010, 9:42 PM
#151
bigjon1982 avatar

bigjon1982

New Zenner

Join Date:
Aug 2009
Posts:
25
Plugin Contributions:
0

Re: Free Gifts-Dangling Carrot support

I installed the free gift add on but I cannot seem to add any items. I gone to the products page and made some fake products but I cannot choose anything under the Free Gift menu. I reinstalled it with the same results.

The only other add on I have that deal with price is the sitewide markup and the MSRP.

8 Jan 2010, 10:01 PM
#152
paul3648 avatar

paul3648

Zen Follower

Join Date:
Mar 2007
Location:
Taiwan
Posts:
239
Plugin Contributions:
0

Re: Free Gifts-Dangling Carrot support

bigjon1982:

I installed the free gift add on but I cannot seem to add any items. I gone to the products page and made some fake products but I cannot choose anything under the Free Gift menu. I reinstalled it with the same results.

Have you done this?

The last step is to go to admin/gift_add.php and on line 107-108 delete this:
PHP Code:
pd.language_id = '".$languages_id."'
AND
so that it will display the free gifts that you have already defined.

9 Jan 2010, 1:49 AM
#153
bigjon1982 avatar

bigjon1982

New Zenner

Join Date:
Aug 2009
Posts:
25
Plugin Contributions:
0

Re: Free Gifts-Dangling Carrot support

paul3648:

Have you done this?

The last step is to go to admin/gift_add.php and on line 107-108 delete this:
PHP Code:
pd.language_id = '".$languages_id."'
AND
so that it will display the free gifts that you have already defined.

Looks like that code is already gone

11 Jan 2010, 9:13 PM
#154
bigjon1982 avatar

bigjon1982

New Zenner

Join Date:
Aug 2009
Posts:
25
Plugin Contributions:
0

Re: Free Gifts-Dangling Carrot support

Could you mean another page?

21 Jan 2010, 9:26 PM
#155
lauriesscraps avatar

lauriesscraps

Zen Follower

Join Date:
Sep 2009
Posts:
255
Plugin Contributions:
0

Re: Free Gifts-Dangling Carrot support

I installed this mod on my site, and it seems to work fine, but it erased some other mods I had installed. I installed a mod that would include the product image and a check out button in the shopping cart sidebox, and that is no longer there. I also had each of the product pages listed by add date first and the category pages no longer do this.

I am wondering if there is a way to give me the code from this mod that I need to add to certain files in the other mod files to make these mods work together? I am pretty sure I know which ones they are.

I am also having a problem with deleting the free gift. When I delete it, it deletes the entire product!

Thanks for your help.

lauriesscraps.com/store

21 Jan 2010, 9:38 PM
#156
lauriesscraps avatar

lauriesscraps

Zen Follower

Join Date:
Sep 2009
Posts:
255
Plugin Contributions:
0

Re: Free Gifts-Dangling Carrot support

And I noticed that it deletes it from the store so that it shows in the store, but when you click on it the product is not there. Then in the admin, it won't let you delete the product because it says that it is not there.

HELP!

21 Jan 2010, 11:56 PM
#157
lauriesscraps avatar

lauriesscraps

Zen Follower

Join Date:
Sep 2009
Posts:
255
Plugin Contributions:
0

Re: Free Gifts-Dangling Carrot support

OK, after working on this for several hours, I have been able to get it to work, but I am still having the ghost product issue and it deleting my products information, and locking me out of being able to delete it from admin.

I also wanted to move the text of the special gift to the left of the image and vertical align it middle. Either that or just delete the image all together and just leave the text. Is there a way to do this?

Thank you.

9 Feb 2010, 4:41 PM
#158
milkyway avatar

milkyway

Inactive

Join Date:
Aug 2006
Location:
Singapore
Posts:
167
Plugin Contributions:
1

Re: Free Gifts-Dangling Carrot support

Hi!

My client have Dual Pricing module and it seems it will conflict with this mod in 'price section' at product info page, if anyone can let me know how to make both works without conflict would be great.

Below are the codes of Dual pricing price section:

<?php
// base price

//***********************************************************************
//***DISPLAY NET RETAIL PRICE IF WHOLESALE CUSTOMER IS LOGGED ON
//***********************************************************************
if ($_SESSION['customer_id']) {
  $customers_id = $_SESSION['customer_id'];
	$customer_check = $db->Execute("select * from " . TABLE_CUSTOMERS . " where customers_id = '$customers_id'");
 if ($customer_check->fields['customers_whole'] != "0") { 
 	echo '<span id="retailwhole">' . 'Price: '.$one_time . ((zen_has_product_attributes_values((int)$_GET['products_id']) and $flag_show_product_info_starting_at == '1') ? TEXT_BASE_PRICE : '') . zen_get_products_display_retail_net_price((int)$_GET['products_id']).'</span><br /> ';
 }
}
//***********************************************************************
//***END DISPLAY NET RETAIL PRICE IF WHOLESALE CUSTOMER IS LOGGED ON
//***********************************************************************

  if ($show_onetime_charges_description == 'true') {
    $one_time = ' <span> Your Price: ' . TEXT_ONETIME_CHARGE_SYMBOL . TEXT_ONETIME_CHARGE_DESCRIPTION . '</span><br />';
  } else {
    $one_time = '';
  }
//*********************************************************************************
//***Properly display price labeling when set to Whole sale and when not
//*********************************************************************************

  if ($_SESSION['customer_id']) {
  $customers_id = $_SESSION['customer_id'];
	$customer_check = $db->Execute("select * from " . TABLE_CUSTOMERS . " where customers_id = '$customers_id'");
 if ($customer_check->fields['customers_whole'] != "0") {
  echo  '<span id="whole">Whole Sale Price: ';
  } else {
  echo '<span id="retail">Price: ';
  } 
  } else {
  echo '<span id="retail">Price: ';
  }

  echo $one_time . ((zen_has_product_attributes_values((int)$_GET['products_id']) and $flag_show_product_info_starting_at == 1) ? TEXT_BASE_PRICE : '') . zen_get_products_display_price((int)$_GET['products_id']);
  echo '</span>';
//*********************************************************************************
//***END Properly display price labeling when set to Whole sale and when not
//*********************************************************************************

?>

Thanks so much!

Responsive ZenCart Templates that automatically adapt itself with iPad, iPhone, BlackBerry, Androids and any monitor screen size
Buy a coffee for Zen-Cart devs. http://www.zen-cart.com/donate

11 Feb 2010, 6:47 PM
#159
tapper avatar

tapper

Zen Follower

Join Date:
Nov 2007
Location:
Upstate NY
Posts:
233
Plugin Contributions:
0

Re: Free Gifts-Dangling Carrot support

Thank you for this mod!! It's just lovely.

Except for one thing: my products and shopping cart take much, much longer to load than before. I had to run the SQL a few times to get it to insert properly. My tables do have the zen prefix but I got errors when I ran it with the prefix so I had to do it without. This is a new site that's being hosted on GoDaddy. I know, I know, they're horrible for zen but that's where my client's acct is so I don't have an option.

Anyway, is there a way for me to troubleshoot this lag? I'd really like to use this on a live site but if it kills the product display I can't.

Thanks

16 Feb 2010, 3:58 PM
#160
gamesmart avatar

gamesmart

New Zenner

Join Date:
Nov 2008
Posts:
28
Plugin Contributions:
0

Re: Free Gifts-Dangling Carrot support

I've installed this contribution without problems but i've a strange problem.

Here it is my test site:

http://www.re-games.it/shop/?language=en&sort=2a

For example i've created many gift for a minum of 12 € of order.

I select one gift but checkout total prices are normal and gift item is not free :blink:

Many help?

Max