Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Templates, Stylesheets, Page Layout / How do I move the qty box/buy now button etc to its own column in product listing?

How do I move the qty box/buy now button etc to its own column in product listing?

Locked

Started by b3motorsports on 11 Feb 2008, 4:34 AM · Views: 1,278

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
11 Feb 2008, 4:34 AM
#1
b3motorsports avatar

b3motorsports

New Zenner

Join Date:
Aug 2006
Posts:
17
Plugin Contributions:
0

Post #1 by b3motorsports

Hi All,

I'm attempting to modify the products listing layout.

Essentially, I want to relocate the qty box, buy now button, more info link etc etc to its own column immediately to the RIGHT of the price column (instead of directly below it). I've overridden the products_listing module, but i'm having a hell of a time trying to work out how to affect what I would assume would be an easy change....

Can someone offer some insight?

Thanks

11 Feb 2008, 6:28 AM
#2
ronlee67 avatar

ronlee67

Totally Zenned

Join Date:
Sep 2006
Location:
Colorado Springs CO USA
Posts:
519
Plugin Contributions:
0

Post #2 by ronlee67

You set the column number in admin-> configuration-> product listing.

For instance, if you want the add to cart box to appear in the fourth column you would set "Display Product Price/Add to Cart" to 4.

If yours is wrapping to the next line, it is probably because you have more columns active then there is room for on one line.

Ron

www.aspenshopsonline.com - ZenCart 1.3.9h
www.wilkssupply.com - ZenCart 1.3.9h
www.un-du.net - ZenCart 1.3.8a

11 Feb 2008, 6:30 AM
#3
ronlee67 avatar

ronlee67

Totally Zenned

Join Date:
Sep 2006
Location:
Colorado Springs CO USA
Posts:
519
Plugin Contributions:
0

Post #3 by ronlee67

just a followup on my last: The price and the add to cart box are married together and will appear in the same column (unless forced to wrap as explained earlier).

Ron

www.aspenshopsonline.com - ZenCart 1.3.9h
www.wilkssupply.com - ZenCart 1.3.9h
www.un-du.net - ZenCart 1.3.8a

11 Feb 2008, 6:37 AM
#4
b3motorsports avatar

b3motorsports

New Zenner

Join Date:
Aug 2006
Posts:
17
Plugin Contributions:
0

Post #4 by b3motorsports

ronlee67:

just a followup on my last: The price and the add to cart box are married together and will appear in the same column (unless forced to wrap as explained earlier).

Ron

I don't want them in the same col though...i'm trying to determine how to break them appart so they sit in 2 distinct columns....

so literally it is

Price [col] add to cart

instead of

Price
add to cart

11 Feb 2008, 6:48 AM
#5
kobra avatar

kobra

Black Belt

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

Post #5 by kobra

You are gonna have to custom code this...

See tpl_modules_product_listing.php and alter the add to cart insertion.
And the array creater in modules/product_listing.php

Zen-Venom Get Bitten