Forums / General Questions / Can I display "Sold Out" button AND "Add to Cart" button on product information page?

Can I display "Sold Out" button AND "Add to Cart" button on product information page?

Locked

Views: 10,594

Results 1 to 20 of 27
This thread is locked. New replies are disabled.
24 Nov 2009, 1:34 PM
#1
ningyotan avatar

ningyotan

New Zenner

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

Can I display "Sold Out" button AND "Add to Cart" button on product information page?

I did some searching and found threads about changing the image of the sold out button to whatever the user wants but is there a way to display the image AND display the "add to cart" image (and the functionality) both on the product page?

Thanks in advance. . . . .

:blush:

24 Nov 2009, 6:52 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Can I display "Sold Out" button AND "Add to Cart" button on product information page?

If it sold out and you are displaying this why would you want the add to cart?

Zen-Venom Get Bitten

24 Nov 2009, 9:07 PM
#3
ningyotan avatar

ningyotan

New Zenner

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

Re: Can I display "Sold Out" button AND "Add to Cart" button on product information page?

kobra:

If it sold out and you are displaying this why would you want the add to cart?

That's not what my post was asking, I only wish to know how I can display both. I expect it's one line of code somewhere but I'm new to this and not experienced enough to actually code my way unsupervised.

24 Nov 2009, 9:19 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Can I display "Sold Out" button AND "Add to Cart" button on product information page?

That's not what my post was asking, I only wish to know how I can display both.
That is exactly what I responded to...
Do you want BOTH displayed for the same product??

If not, a sold out item will display sold out and an instock item will display the add to cart automatically

Zen-Venom Get Bitten

25 Nov 2009, 8:41 AM
#5
ningyotan avatar

ningyotan

New Zenner

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

Re: Can I display "Sold Out" button AND "Add to Cart" button on product information page?

kobra:

That is exactly what I responded to...
Do you want BOTH displayed for the same product??

If not, a sold out item will display sold out and an instock item will display the add to cart automatically

Yes I would like to display both for the same product. Do you know if it's possible?

Thanks in advance!

25 Nov 2009, 7:57 PM
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Can I display "Sold Out" button AND "Add to Cart" button on product information page?

Yes I would like to display both for the same product. Do you know if it's possible?
Full Circle - Back to why you want the Add to cart when it is sold out?

Zen-Venom Get Bitten

25 Nov 2009, 8:40 PM
#7
ningyotan avatar

ningyotan

New Zenner

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

Re: Can I display "Sold Out" button AND "Add to Cart" button on product information page?

kobra:

Full Circle - Back to why you want the Add to cart when it is sold out?

Full circle, not relevant. I want a customer to be able to add to cart & checkout the item regardless.

Why is it important, I don't really understand?

:unsure:

26 Nov 2009, 12:49 AM
#8
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Can I display "Sold Out" button AND "Add to Cart" button on product information page?

I want a customer to be able to add to cart & checkout the item regardless.

Why is it important, I don't really understand?
Still, Then why do you want the sold out image displayed??

Check the settings in admin > config > stock

Zen-Venom Get Bitten

26 Nov 2009, 6:44 AM
#9
ningyotan avatar

ningyotan

New Zenner

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

Re: Can I display "Sold Out" button AND "Add to Cart" button on product information page?

I've already checked there before I posted because I found the thread about allowing checkout when insufficient stock.

I want the customer to see that an item is sold out, I want the image to display.

Also, I want the "add to cart" functionality to be available so they can add the item to the cart.

I want to display the sold out sign and the add to cart button on the page, is this possible in Zen Cart or is it not possible in Zen Cart?

26 Nov 2009, 11:56 AM
#10
tino_schlegel avatar

tino_schlegel

Totally Zenned

Join Date:
Nov 2007
Location:
Melbourne, Australia
Posts:
532
Plugin Contributions:
0

Re: Can I display "Sold Out" button AND "Add to Cart" button on product information page?

Yes it is possible, but you have to change the code for the buy now button. It actually checks of it displays the buy now button of the sold out button. Just create a new function that gives you the sold out button and shwo this on your product pages.

Still makes no snese but maybe your customers appreciate you option to buy a sold out product.

Maybe add another donation button if your website is lacking functionality.

26 Nov 2009, 12:33 PM
#11
kdays avatar

kdays

Zen Follower

Join Date:
May 2008
Posts:
239
Plugin Contributions:
0

Re: Can I display "Sold Out" button AND "Add to Cart" button on product information page?

This is actually a pretty standard option in some industries, you can purchase an item, knowing it has to go on backorder. Your item(s) is then shipped when it comes back in stock.

If I can add a quick question to this thread: It is standard Zen Cart behavior (provided set in Admin) to allow a customer to purchase more items than currently in stock. It shows on the checkout page that the items will be backordered. However, I haven't seen anywhere in Admin that the storeowner can check a list of items on backorder that they have to follow up on. Is there such a feature? If not, it seems like it would be easy to miss items that customers have paid for but you haven't shipped yet.

27 Nov 2009, 1:16 PM
#12
ningyotan avatar

ningyotan

New Zenner

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

Re: Can I display "Sold Out" button AND "Add to Cart" button on product information page?

kdays:

This is actually a pretty standard option in some industries, you can purchase an item, knowing it has to go on backorder. Your item(s) is then shipped when it comes back in stock.

If I can add a quick question to this thread: It is standard Zen Cart behavior (provided set in Admin) to allow a customer to purchase more items than currently in stock. It shows on the checkout page that the items will be backordered. However, I haven't seen anywhere in Admin that the storeowner can check a list of items on backorder that they have to follow up on. Is there such a feature? If not, it seems like it would be easy to miss items that customers have paid for but you haven't shipped yet.

That's a good question!!

If/when I can find help with this, I was just planning to use the "Orders Status" option to create a new one and categorise that order as "waiting for stock" seeing as the "Orders" section has the pull down menu to just show orders of a certain status.

29 Nov 2009, 9:03 PM
#13
ningyotan avatar

ningyotan

New Zenner

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

Re: Can I display "Sold Out" button AND "Add to Cart" button on product information page?

tino.schlegel:

Yes it is possible, but you have to change the code for the buy now button. It actually checks of it displays the buy now button of the sold out button. Just create a new function that gives you the sold out button and shwo this on your product pages.

If another button was added it could be linked to a "when stock is 0" add this button, couldn't it?

Hang on, could the existing code just be changed? Currently when stock is "0" there is obviously two things the code is doing

  1. It removed the "Add to cart" button
  2. It displays the "Sold Out" image

Rather than add a button, could the code be told to just leave the "Add to cart" button there? I can't code at all but just an idea.

8 Dec 2009, 11:43 AM
#14
ningyotan avatar

ningyotan

New Zenner

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

Re: Can I display "Sold Out" button AND "Add to Cart" button on product information page?

ningyotan:

If another button was added it could be linked to a "when stock is 0" add this button, couldn't it?

Hang on, could the existing code just be changed? Currently when stock is "0" there is obviously two things the code is doing

  1. It removed the "Add to cart" button
  2. It displays the "Sold Out" image

Rather than add a button, could the code be told to just leave the "Add to cart" button there? I can't code at all but just an idea.

It's been a week, hoping for an answer :wink:

17 Dec 2009, 12:45 PM
#15
ningyotan avatar

ningyotan

New Zenner

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

Re: Can I display "Sold Out" button AND "Add to Cart" button on product information page?

tino.schlegel:

Yes it is possible, but you have to change the code for the buy now button. It actually checks of it displays the buy now button of the sold out button. Just create a new function that gives you the sold out button and shwo this on your product pages.

Still makes no snese but maybe your customers appreciate you option to buy a sold out product.

Maybe add another donation button if your website is lacking functionality.

Awesome except I can't code or write a function, I can copy and paste other people's code no problem at all but being such a newb at this, I can't get my head around that at this stage.

I've seen so many threads on this forum where people provide the code for various requests, I was hoping to hang in there to get someone's help.

Is there somewhere I can post to request someone's service? I'm getting desperate, perhaps I can pay them?

7 Jan 2010, 11:57 AM
#16
ningyotan avatar

ningyotan

New Zenner

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

Re: Can I display "Sold Out" button AND "Add to Cart" button on product information page?

Really struggling with my store as the store grows and more and more products added.

Please, I would really appreciate the help with this!

:cry:

7 Jan 2010, 12:16 PM
#17
alan145 avatar

alan145

New Zenner

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

Re: Can I display "Sold Out" button AND "Add to Cart" button on product information page?

if you set it to 0 quantities, then it will display sold out

7 Jan 2010, 12:25 PM
#18
ningyotan avatar

ningyotan

New Zenner

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

Re: Can I display "Sold Out" button AND "Add to Cart" button on product information page?

alan145:

if you set it to 0 quantities, then it will display sold out

I know how to make the sold out picture appear, check the title of the thread and the opening post. I'm trying to do more than just that . . . . sadly, I seem to be the only person wanting to do this.

4 Feb 2010, 3:00 AM
#19
tojasonharris avatar

tojasonharris

New Zenner

Join Date:
Feb 2010
Posts:
10
Plugin Contributions:
0

Re: Can I display "Sold Out" button AND "Add to Cart" button on product information page?

I am looking for this same information...

I want customers to know that items that are out of stock will be on special order and will take longer to be dispatched. But it seems to be an either/or proposition...

I'm happy to edit code if someone can direct me in the right direction.

5 Feb 2010, 8:44 AM
#20
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Can I display "Sold Out" button AND "Add to Cart" button on product information page?

tojasonharris:

I want customers to know that items that are out of stock will be on special order and will take longer to be dispatched. But it seems to be an either/or proposition..
Well I would create a "Special Order" image that would replace the add to cart if the stock is "0"
You will need a stock check and a if/else to trigger the image swap

Zen-Venom Get Bitten