Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Buy item button under every item :)

Buy item button under every item :)

Locked

Views: 1,619

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
20 Jun 2008, 3:52 AM
#1
flinders avatar

flinders

New Zenner

Join Date:
Nov 2007
Posts:
58
Plugin Contributions:
0

Buy item button under every item :)

Hi I have a question.

I would like to show a "buy item" button under all my items in the listings.

I have included a screenshots with my (messy) notes to help you understand what I am asking.


Cheers in advance. :smile:

20 Jun 2008, 4:18 AM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Buy item button under every item :)

You need to adjust your settings in Configuration > Product Listing >
Display Product Add to Cart Button (0=off; 1=on; 2=on with Qty Box per Product) > set to 2
and
Display Multiple Products Qty Box Status and Set Button Location > off

20 Jun 2008, 4:39 AM
#3
flinders avatar

flinders

New Zenner

Join Date:
Nov 2007
Posts:
58
Plugin Contributions:
0

Re: Buy item button under every item :)

gjh42:

You need to adjust your settings in Configuration > Product Listing >
Display Product Add to Cart Button (0=off; 1=on; 2=on with Qty Box per Product) > set to 2
and
Display Multiple Products Qty Box Status and Set Button Location > off
Thanks mate, :)
But that removes the "quantity selection field" and replaces it with a "buy now" button, I want them both to show.

I have drawn up a diagram of how I want it to be.

here is an example close to what I am trying to do, I have circled the bits I want in red

20 Jun 2008, 4:47 AM
#4
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Buy item button under every item :)

2=on with Qty Box per Product

Isn't that what you want?

20 Jun 2008, 4:52 AM
#5
flinders avatar

flinders

New Zenner

Join Date:
Nov 2007
Posts:
58
Plugin Contributions:
0

Re: Buy item button under every item :)

gjh42:

2=on with Qty Box per Product

Isn't that what you want?

Bingo...

sorry I was changing "Display Product Price/Add to Cart"
:smile: I owe you one

While I have your ear can I set the "Qty Box" to have a default value of "2" (because most people have two ears)

20 Jun 2008, 4:56 AM
#6
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Buy item button under every item :)

Once you set that to 2, it will stay that way and apply to everything unless you change it.

20 Jun 2008, 4:59 AM
#7
flinders avatar

flinders

New Zenner

Join Date:
Nov 2007
Posts:
58
Plugin Contributions:
0

Re: Buy item button under every item :)

gjh42:

Once you set that to 2, it will stay that way and apply to everything unless you change it.

I can’t have it to show “2” but allow the user to change to “1” or another number?

20 Jun 2008, 5:03 AM
#8
flinders avatar

flinders

New Zenner

Join Date:
Nov 2007
Posts:
58
Plugin Contributions:
0

Re: Buy item button under every item :)

I realised you don't understand what I am saying... different issue now.

When The user comes to my site I want the "Qty Box" top already have a value of two items in it. So if they click on "buy now" two items will go in their basket.

20 Jun 2008, 11:14 PM
#9
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Buy item button under every item :)

OK, that's what you meant by "two ears"... :)

Yes, it will be possible to set a default. It will have to be done in the PHP code - I would have to root around to locate the right places (assuming you want that default in the product listing page and in the product info page). You could look at /includes/modules/your_template/product_listing.php and /includes/templates/your_template/templates/tpl_product_info_display.php (copy them from the original folders into /your_template/ folders), and see what they say about quantity boxes near the add to cart button code.

21 Jun 2008, 5:11 AM
#10
flinders avatar

flinders

New Zenner

Join Date:
Nov 2007
Posts:
58
Plugin Contributions:
0

Re: Buy item button under every item :)

gjh42:

OK, that's what you meant by "two ears"... :)

Yes, it will be possible to set a default. It will have to be done in the PHP code - I would have to root around to locate the right places (assuming you want that default in the product listing page and in the product info page). You could look at /includes/modules/your_template/product_listing.php and /includes/templates/your_template/templates/tpl_product_info_display.php (copy them from the original folders into /your_template/ folders), and see what they say about quantity boxes near the add to cart button code.

thanks mate.. I will have a "root" around and see what I can do :)