Jump to content



Latest News: (loading..)

* * * * * 2 votes

Dangling Carrot (Free Gift/Discount Contrib)


  • Please log in to reply
305 replies to this topic

#1   thejungle

thejungle
  • Members
  • 60 posts
  • Real Name:Ernie Sugrue

Posted 08 March 2005 - 03:15 AM

Hi!

I was trying to see if there was an `official' thread but couldn't find one.

Anyway.

I downloaded the Dangling Carrot contrib which is just what I was looking for.
Allows you to offer free gifts and discounts that appear in the shopping cart page.

eg: If a customer will get a free mug if they spend $50 or more, when they get close the shopping cart will say `Spend just xxx more and get this coffee mug for free'.

I'm having a few problems and was wondering if anyone else had used it, or edited it or if the author plans on releasing an update. It seems to work pretty well on their site.

1) I am unable to offer a discount onlt free items (eg: 50% discount on xxx product on $xx spend)

2) If you run a multi currency store it doesn't take into account additional currencies.

3) Is it possible to offer a discount or free on an entire category - eg: Buy $100 and received your choice of a DVD for $10 (or free) etc.

Also, the gift_add.php page refers to a page called gifts.php (which doesn't exist in the zip download) - it works if you change the gifts.php to gift_add.php

On about line 87-90 a reference is made to the authors site you need to change this to your own sites page.

I do like the contribution, I was just wondering if anyone had updated it, or was planning too.


Thanks
Ernie

#2   lushlongboards

lushlongboards
  • Members
  • 42 posts
  • Real Name:Chris

Posted 09 March 2005 - 09:49 AM

let's call this the official thread.

for discounted products, you need to copy the original product and change the price. Also change the name to say "Towel worth £10 for just £2" or similar. It's a bit crude, but it works.

Currencies - perhaps someone can help out with this one?

I haven't figured out the discounted category yet - this mod works on "copied" products rather than modifying product properties (which would ultimately be more powerful). Maybe someday, but don't hold your breath ...

chris

#3   thejungle

thejungle
  • Members
  • 60 posts
  • Real Name:Ernie Sugrue

Posted 10 March 2005 - 03:28 AM

Hi Chris:

Thanks for replying.

So I guess maybe make a new category called `Freebies' and copy the items into there? Then rename and reprice of course!

How do I `hide' a category so everyone and his dog doesn't order a `towel at $2' - I'm sure I should know....  :blush:

I was looking at your site (very nice too) - the session1 (?) is this the exact contrib you used as is on that site?

Thanks
Ernie

#4   lushlongboards

lushlongboards
  • Members
  • 42 posts
  • Real Name:Chris

Posted 10 March 2005 - 10:10 AM

don't create a new category - you can hide them (I haven't tried, but everything is possible!) but everyone uses such different menus... I have just set all my special products to inactive since they don't show up in my shop.

If your "inactive" or "out of stock" products still show in your shop then you might have to work out the category thing.

Yes, this is the same as I use in my shop, but I also have the bundled products module installed. (it makes no difference to the gift mod though really). all it means is that when someone buys the gift the stock level of the original product is updated.

#5   safoo

safoo
  • Members
  • 514 posts
  • Real Name:Safoo

Posted 11 March 2005 - 04:48 PM

Chris,

I was testing the free gift system on your website and I seem to have found 2 bugs:

First,
- I add this product to my cart (price = 12.76)
http://www.session1.com/product_info.php?products_id=1570

- change the quantity to 4 so the total is 51.04 and I qualify for your gifts at 50 pound threshold.

- add the gift "HALF PRICE Scrub board bag worth £29.99" to my cart.

Now if I change the quantity of the dvd to 3 (so the total is less than 38.28 and less than the threshold), the free gift is still in my cart.

Solution: it seems the 'threshold check' is looking at the cart total including the half price gift. So 38.28 plus the half price gift at 12.77 totals over $50 and it allows the gift to stay.
*The 'threshold check' should calculate the cart total minus the prices of any gifts (if they exist) already in the cart.*


Second:
- Add 4 of the same DVD to my cart:
http://www.session1.com/product_info.php?products_id=1570

- add the free gift:
HQ Airglider worth £12.00 for just 99p!

- now change quantity of the dvd to 3, so total is less than thresholf of 50. the gift is correctly removed, but the gift listing on the bottom now reads:

Spend just £10.88 more to get ...
HQ Airglider worth £12.00 for just 99p!
(Maximum 1 gift per order)

Spend just £11.72 more to get ...
HALF PRICE Scrub board bag worth £29.99
(Maximum 1 gift per order)

The 10.88 amount is incorrect. It should be 11.72 as the 2nd gift correctly shows (assuming both gifts' threshold is 50)


Other than that, this seems like a great contribution.

I will be adding it to my site soon and will attempt to fix the 2 bugs and also the issue of not allowing more than one quantity of a gift as well.

Thanks again for another fine contribution!

#6   lobotomia

lobotomia
  • Members
  • 11 posts
  • Real Name:Giuseppe

Posted 11 March 2005 - 05:22 PM

why when i add product to cart i'm logout from site?

#7   lushlongboards

lushlongboards
  • Members
  • 42 posts
  • Real Name:Chris

Posted 12 March 2005 - 09:34 AM

thanks for that ... I'd missed them :)

lobotomia - I have not had that problem before ... can anybody else help with this?

chris

#8   safoo

safoo
  • Members
  • 514 posts
  • Real Name:Safoo

Posted 12 March 2005 - 04:53 PM

I wasn't able to duplicate the problem Lobotomia has.

It is a bit confusing as the 'log in' text is always there, even when the customer is already logged in.

Edited by safoo, 12 March 2005 - 04:55 PM.


#9   lobotomia

lobotomia
  • Members
  • 11 posts
  • Real Name:Giuseppe

Posted 12 March 2005 - 05:44 PM

my problem is that customer lost session...
i think that error is in link creation....
how can i solve?

#10   lobotomia

lobotomia
  • Members
  • 11 posts
  • Real Name:Giuseppe

Posted 14 March 2005 - 07:00 PM

can anyone help me to insert correctly function for buy_now (create with function of osc)?

#11   msdesmarais

msdesmarais
  • Members
  • 25 posts
  • Real Name:Michael

Posted 19 March 2005 - 08:11 PM

He is something I found odd. When testing on my test pc, I have the a free gift set at a $25 threshold. When you add a product to the cart at or above the $25 threshold everything seems to work fine. However, after adding the 'free gift' the original product dissapears leaving the free gift as the item to be purchased.
Michael

#12   safoo

safoo
  • Members
  • 514 posts
  • Real Name:Safoo

Posted 23 March 2005 - 09:37 PM

I think I was able to solve the 2 bugs I had found before. I may also have figured out Lobotomia's problem. I will be posting my code after some final testing very soon.

When I changed things around a little bit, I got some bugs that I don't think were present before. All should be fixed now.

#13   lushlongboards

lushlongboards
  • Members
  • 42 posts
  • Real Name:Chris

Posted 23 March 2005 - 11:47 PM

thanks safoo! It seems my code is quite buggy for regular OSC stores ...

#14   safoo

safoo
  • Members
  • 514 posts
  • Real Name:Safoo

Posted 24 March 2005 - 06:06 PM

update posted. let me know if anyone has problems. test is on non-live site first if possible as everyone's sites are different.

http://www.oscommerce.com/community/contributions,2990

#15   busonero

busonero
  • Members
  • 65 posts
  • Real Name:roberto

Posted 24 March 2005 - 06:49 PM

Hi Safo,
thank you to post this update !

As you descrive in the contribution text, i'ld be grateful if you can post the 2 changes
you didn't insert in the 1.1 update.

Thank you  in advance

sincerely
Roberto


safoo, on Mar 24 2005, 06:06 PM, said:

update posted. let me know if anyone has problems. test is on non-live site first if possible as everyone's sites are different.

http://www.oscommerce.com/community/contributions,2990

<{POST_SNAPBACK}>



#16   safoo

safoo
  • Members
  • 514 posts
  • Real Name:Safoo

Posted 24 March 2005 - 08:55 PM

Roberto,

I will put that as special instructions for anyone who wants to do that change.

I still have to migrate that change into my live site, so once I do that I will give the instructions for it.

#17   lobotomia

lobotomia
  • Members
  • 11 posts
  • Real Name:Giuseppe

Posted 25 March 2005 - 10:23 AM

ok, problem of lost session is solved :)
but now if I add gift to my cart, in cart is added product with original price, why this?

#18   safoo

safoo
  • Members
  • 514 posts
  • Real Name:Safoo

Posted 25 March 2005 - 05:58 PM

your gift has a special price?

#19   lobotomia

lobotomia
  • Members
  • 11 posts
  • Real Name:Giuseppe

Posted 26 March 2005 - 11:58 AM

no, my gift as normal price.. :(

#20   jeffk

jeffk
  • Members
  • 13 posts
  • Real Name:jeff.keeling

Posted 26 March 2005 - 12:20 PM

lobotomia, on Mar 26 2005, 11:58 AM, said:

no, my gift as normal price.. :(

<{POST_SNAPBACK}>


a gift at its normal selling price , novel   :-"

Edited by jeffk, 26 March 2005 - 12:20 PM.