Jump to content



Latest News: (loading..)

* * * * * 2 votes

Dangling Carrot (Free Gift/Discount Contrib)


  • Please log in to reply
305 replies to this topic

#201   ThiloS

ThiloS
  • Members
  • 5 posts
  • Real Name:Thilo Schnell

Posted 02 July 2006 - 10:15 AM

The Version 2.6a works much better than 2.5 BUT:

Same problem as other users like "simplyclesha" had:
If you click to "add to cart" the gift is not added to the cart -
instead the user is forwarded to the product info page -
and there is no "add to cart" button...

No Fix - for that problem ?

There should be users where the contrib works fine ...?!

#202   Noutje

Noutje
  • Members
  • 34 posts
  • Real Name:Aernout

Posted 17 October 2006 - 02:14 PM

View PostThiloS, on Jul 2 2006, 10:15 AM, said:

The Version 2.6a works much better than 2.5 BUT:

Same problem as other users like "simplyclesha" had:
If you click to "add to cart" the gift is not added to the cart -
instead the user is forwarded to the product info page -
and there is no "add to cart" button...

No Fix - for that problem ?

There should be users where the contrib works fine ...?!

I noticed this is only when the gift has attributes to choose from. When the gift has NO attributes it wil go in the cart.
My problem is also that it displayed the normal price and added this price to the total. You can hardly call that a gift huh. It can also be caused by the TOTALB2B contribution that is on my site and makes Dangling Carrot hard to install

#203   Noutje

Noutje
  • Members
  • 34 posts
  • Real Name:Aernout

Posted 17 October 2006 - 02:59 PM

I did a fresh install over a fresh OSC install on my local server.

There are a few bugs:
  • If Gift has attributes is goes to the product_info page so you can choose options but there is NO in cart Button.
  • When a gift has NO attributes the gift goes in the cart but calculates the normal price and ads it to the TOTALS
Somebody solved this?

#204   Noutje

Noutje
  • Members
  • 34 posts
  • Real Name:Aernout

Posted 17 October 2006 - 03:41 PM

I allready noticed that you can create a free gift with price $0,00 and it will not be shown in the shop.
The problem with attributes remains.
I have gifts that can be choosen in different colors.

#205   tdhs

tdhs
  • Members
  • 25 posts
  • Real Name:Rob Heywood
  • Location:Warrington

Posted 20 October 2006 - 07:58 AM

Hi all

Sounds like a great contrib - few probs tho!

Like Noutje I'm using 2.6a

1.
The products I use as gifts are also products in my catalog therefore have a value - when selected as a gift it is added to the cart and the customer charged the full amount.

2.
In the free gifts box how do you enable it to display a random free gift?  I know the code I need to edit but I'm not great with PHP - I tried but couldn't get it to work.

3.
What code would I need to make a Free Gift page - one that will display like the specials page but without add to cart.

Thanks in advance for any help!!

Noutje - on my site when a gift has options there is an add to cart button.
This post was by Rob

I'm never lost - I just don't know how to get to where I want to be.

#206   knokenet

knokenet
  • Members
  • 38 posts
  • Real Name:knokenet

Posted 22 October 2006 - 08:19 AM

all you have to do is select the product as a carrot in the admin's product's page, and then go into specials, and add the product, giving it a new special price value of 0 (zero).
That way it cannot be added to the cart as a regular product, and it will also appear on your specials page, giving you more pages with that product.
You can also make a gift box, and place it on the left/right page. Just take one of your current boxes, and change its database values to the gift ones, add it your column_right.php or column_left.php and there you go.

View Posttdhs, on Oct 20 2006, 03:58 AM, said:

Hi all

Sounds like a great contrib - few probs tho!

Like Noutje I'm using 2.6a

1.
The products I use as gifts are also products in my catalog therefore have a value - when selected as a gift it is added to the cart and the customer charged the full amount.

2.
In the free gifts box how do you enable it to display a random free gift?  I know the code I need to edit but I'm not great with PHP - I tried but couldn't get it to work.

3.
What code would I need to make a Free Gift page - one that will display like the specials page but without add to cart.

Thanks in advance for any help!!

Noutje - on my site when a gift has options there is an add to cart button.


#207   gelauff

gelauff
  • Members
  • 4 posts
  • Real Name:Chris Gelauff
  • Location:FRANCE

Posted 24 October 2006 - 02:18 PM

I have a particular prob with the dangling carrot contribution.
The free gifts I offer in my shop are downloads and in osC downloads are to be configured as an attribute.
The final result of this is that the download-box doesn't show on the chechout_success page, as the attribute normally has to be assigned by the user.

In other words, I would need to have the download-attribute assigned automatically to the gift.

There is no other products as downloads, only the gifts.
There is no other attributes for other products.
So I would have no problem with a somewhat unorthodox solution.

Would anyone know a fix/workaround?
Problems? No, only solutions!

#208   Noutje

Noutje
  • Members
  • 34 posts
  • Real Name:Aernout

Posted 07 November 2006 - 06:20 PM

I installed Dangling Carrot Version 2.6 and merged it in a Creloaded 6.2 store with the BTS template system.
Everything works OK but the product does not go to the cart when clicking the button_add_now.

This is the part making problems:

	 if ($gift['products_id'] != $gift_exists && $deficit <= 0) { // this particular gift is not in cart but qualifies
		$freebie[$p]['message'] .= sprintf(TEXT_QUALIFIED_FOR_GIFT, $currencies->display_price($gift['threshold'],tep_get_tax_rate($gift['products_tax_class_id'])));
	$freebie[$p]['link'] = '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $gift['products_id']) . '">' . tep_image_button('button_add_now.gif', 'Select ' . $gift['products_id'] ) . '</a>';
		$freebie[$p]['name']			= $gift['products_name'];
		$freebie[$p]['id']			  = $gift['products_id'];
		$freebie[$p]['image']   		= $gift['products_image'];
		$p++;

When i point the button_add_now image i can read the URL http>//www.mysite.com/shopping_cart.php?action=buy_now&product_id=2233 so that must be OK
But when i click it the item does not go to the cart.

I treid to replace this code:
$freebie[$p]['message'] .= sprintf(TEXT_QUALIFIED_FOR_GIFT, $currencies->display_price($gift['threshold'],tep_get_tax_rate($gift['products_tax_class_id'])));
$freebie[$p]['link'] = '<<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $gift['products_id']) . '">' . tep_image_button('button_add_now.gif', 'Select ' . $gift['products_id'] ) . '</a>';
$freebie[$p]['name'] = $gift['products_name'];
$freebie[$p]['id'] = $gift['products_id'];
$freebie[$p]['image'] = $gift['products_image'];
$p++;

With this:

if (!$cart->in_cart($gift['products_id'])) $cart->add_cart($gift['products_id']);

And this adds the gift automatically to the cart and this one works.

Because i want to create multiple gifts to choose from and then its better when it is added by clicking the button_add_now

Anyone with BTS experience got a clue why the code on top is not working??

#209   rd1000

rd1000
  • Members
  • 14 posts
  • Real Name:Robert Dolliver

Posted 15 November 2006 - 04:18 PM

HI,

I am about to install Dangling Carrot. It sounds like a terrific contribution, and thank you to the author and everyone who has contributed. I do have one concern before I install it, and I was hoping someone could answer for me. I searched the topic, but coud not find the answer.

When adding the free product, does the weight of the item get added to the total for shipping calculation? In Canada, an small increase in weight can lead to a large increase in shipping cost. Sadly.

If someone could answer, I would really appreciate it.

Thank you
Rob

#210   DragnSoul

DragnSoul
  • Members
  • 28 posts
  • Real Name:Jean Patry
  • Location:Wainwright Alberta

Posted 02 December 2006 - 04:12 AM

View Postgelauff, on Oct 24 2006, 07:18 AM, said:

I have a particular prob with the dangling carrot contribution.
The free gifts I offer in my shop are downloads and in osC downloads are to be configured as an attribute.
The final result of this is that the download-box doesn't show on the chechout_success page, as the attribute normally has to be assigned by the user.

In other words, I would need to have the download-attribute assigned automatically to the gift.

There is no other products as downloads, only the gifts.
There is no other attributes for other products.
So I would have no problem with a somewhat unorthodox solution.

Would anyone know a fix/workaround?

I am having the same problem... I'm currently trying to work on this but I have a lack in some aspects of the programming.  Any help would be appreciated.

#211   gelauff

gelauff
  • Members
  • 4 posts
  • Real Name:Chris Gelauff
  • Location:FRANCE

Posted 03 December 2006 - 02:01 AM

To all who have trouble hiding the Dangling Carrot Gift-items from the product listing, IT'S VERY EASY : just place the gifts in the "TOP" of the catalog, so not in a category, and they WILL NOT SHOW, no need to set them out of stock or inactive, no need either to mod the code.  :thumbsup:

Of course this doesn't apply to those who don't have categories. :rolleyes:
Problems? No, only solutions!

#212   gelauff

gelauff
  • Members
  • 4 posts
  • Real Name:Chris Gelauff
  • Location:FRANCE

Posted 03 December 2006 - 02:10 AM

It appears that I'm not the only one who has this problem: when the gift are set on AUTO-ADD, MULTIPLE GIFTS will be added to the cart. I'd like ONLY ONE GIFT to be auto-added, whenever a new threshold is reached.

Anybody found the magic solution yet?
If so, please post it here, you might even send me a PM while you're at it :rolleyes:
Problems? No, only solutions!

#213   rebelina

rebelina
  • Members
  • 22 posts
  • Real Name:Rebecca

Posted 03 December 2006 - 03:44 PM

View PostJack_mcs, on May 29 2005, 01:03 AM, said:

I can't see a problem with the admin section. Do you get any kind of indication at all when you try to edit/delete an gift. Also, I assume you are speaking about when you try to do this in admin->catalog->Gifts. Is that correct?

Jack

Hi Jack,

This problem was resolved some time ago, and i can't honestly remember what I did to fix it.  I either installed a later version or found something on one of the discussion boards.  Sorry that I can't give any more info (but thanks for taking the time).  Thankfully the dangling carrots are working very successfully on my site - I am sure this contrib has helped with sales  :D

- Reb

#214   gelauff

gelauff
  • Members
  • 4 posts
  • Real Name:Chris Gelauff
  • Location:FRANCE

Posted 04 December 2006 - 10:18 AM

Yep, it fixes it just fine!
Thanks a heap  :thumbsup:

View Postsafoo, on Oct 31 2005, 10:12 PM, said:

OK...I seem to have fixed the issue. For the instructions pertaining to the changes in catalog/shopping_cart.php around line 228:

Find:

//<!--BOF dangling carrot v2.0--> 

if ($products[$i]['carrot'] == "1"){
				 $info_box_contents[$cur_row][] = array('align' => 'center',
			   									'params' => 'class="productListing-data" valign="top"',
												'text' => $products[$i]['quantity']. tep_draw_hidden_field('products_id[]', $products[$i]['id']));
	}

and Change to:

	  if ($products[$i]['carrot'] == "1"){
				 $info_box_contents[$cur_row][] = array('align' => 'center',
			   									'params' => 'class="productListing-data" valign="top"',
												'text' => $products[$i]['quantity'] . 

tep_draw_hidden_field('cart_quantity[]', $products[$i]['quantity']) . tep_draw_hidden_field('products_id[]', 

$products[$i]['id']));
	}

Notice the 2 tep_draw_hidden_field calls in the new version.

If someone can test the full functionality of the shopping cart and post back on this thread, we can then release a new version with this fix.

Problems? No, only solutions!

#215   Masoud

Masoud
  • Members
  • 6 posts
  • Real Name:Masoud

Posted 21 December 2006 - 01:30 AM

Hi,

i just ' installed ' this contribution, but i have a very stupid question  :'(

how can i add gifts? the contribution is correctly installed.

i see 'free gifts'  in admin>catalog menu.

and there is a link to categories. and then?

i have read the whole forum but could not find how to add gifts.

i hope someone could tell me how i can get this to work.

thanx,

#216   Masoud

Masoud
  • Members
  • 6 posts
  • Real Name:Masoud

Posted 21 December 2006 - 01:52 AM

I am sorry, i have fount out how to add gifts.

but now i have another problem.
On the website, if select a product, to some more information. ( product_info.php i think) i get a weard error:

error is:

1064 - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'p.products_carrot, select p.products_id, pd.products_name, pd.p

p.products_carrot, select p.products_id, pd.products_name, pd.products_description, p.products_model, p.products_quantity, p.products_image, pd.products_url, p.products_price, p.products_tax_class_id, p.products_date_added, p.products_date_available, p.manufacturers_id from products p, products_description pd where p.products_status = '1' and p.products_id = '199' and pd.products_id = p.products_id and pd.language_id = '4'

[TEP STOP]

is the problem in the SQL file or somewhere else?

thanQ

#217   Masoud

Masoud
  • Members
  • 6 posts
  • Real Name:Masoud

Posted 21 December 2006 - 09:36 AM

Sorry once agian, i found my problem,

its now working perfect :D

great contribution

#218   andytc

andytc
  • Members
  • 249 posts
  • Real Name:andy carter
  • Location:UK

Posted 24 December 2006 - 02:59 PM

Does anyone know how i can remove the image link from for the free gift on the shopping cart ?

not when it's in the cart , but when it's being offered ..ie spend another x pounds and get....

the image is a link , i'd like to remove the link and just show the image and message.

#219   andytc

andytc
  • Members
  • 249 posts
  • Real Name:andy carter
  • Location:UK

Posted 31 December 2006 - 03:30 PM

Where can i set the threshold at which the "dangling Carrot" message gets displayed ?  

ie spend another x amount and get this free ....



Does anyone know how to exclude the free gift from the dynamic site map contrib ?  it shows in the product list , even though it is not placed in a catoagory.

Related to the above problem  , i cannot set the free gift product  to "out of stock" or inactive , if i do the gift doesn't get added to the shopping cart and will not show at all.

I've checked all through this thread and the fixes posted dont work.

My gift product is outside of any catagories

it's model name is gift

it has a stock qty

it has a price of 0


Finally , does anyone know how to remove the link from the image in the shopping cart view when the gift is being offered carrot style.....ie ...spend another x amount and get this free ....the image is a link , i need to remove it as i have problems removing the buy now buttons , my site shows out of stock buttons , which looks a bit odd if someone wants a free gift , clicks the link and it says..out of stock.  So i thoiught best to remove it all together......never look a gift horse in the mouth  :D


any help appreciated with these few problems ...

Edited by andytc, 31 December 2006 - 03:35 PM.


#220   andytc

andytc
  • Members
  • 249 posts
  • Real Name:andy carter
  • Location:UK

Posted 01 January 2007 - 11:37 AM

:-"