Dangling Carrot (Free Gift/Discount Contrib)
#201
Posted 02 July 2006 - 10:15 AM
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
Posted 17 October 2006 - 02:14 PM
ThiloS, on Jul 2 2006, 10:15 AM, said:
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
Posted 17 October 2006 - 02:59 PM
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
#204
Posted 17 October 2006 - 03:41 PM
The problem with attributes remains.
I have gifts that can be choosen in different colors.
#205
Posted 20 October 2006 - 07:58 AM
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.
I'm never lost - I just don't know how to get to where I want to be.
#206
Posted 22 October 2006 - 08:19 AM
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.
tdhs, on Oct 20 2006, 03:58 AM, said:
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
Posted 24 October 2006 - 02:18 PM
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?
#208
Posted 07 November 2006 - 06:20 PM
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
Posted 15 November 2006 - 04:18 PM
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
Posted 02 December 2006 - 04:12 AM
gelauff, on Oct 24 2006, 07:18 AM, said:
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
Posted 03 December 2006 - 02:01 AM
Of course this doesn't apply to those who don't have categories.
#212
Posted 03 December 2006 - 02:10 AM
Anybody found the magic solution yet?
If so, please post it here, you might even send me a PM while you're at it
#213
Posted 03 December 2006 - 03:44 PM
Jack_mcs, on May 29 2005, 01:03 AM, said:
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
- Reb
#214
Posted 04 December 2006 - 10:18 AM
Thanks a heap
safoo, on Oct 31 2005, 10:12 PM, said:
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.
#215
Posted 21 December 2006 - 01:30 AM
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
Posted 21 December 2006 - 01:52 AM
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
Posted 21 December 2006 - 09:36 AM
its now working perfect
great contribution
#218
Posted 24 December 2006 - 02:59 PM
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
Posted 31 December 2006 - 03:30 PM
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
any help appreciated with these few problems ...
Edited by andytc, 31 December 2006 - 03:35 PM.
#220
Posted 01 January 2007 - 11:37 AM









