Forums / Templates, Stylesheets, Page Layout / Product List Price/Add To Cart stuck together

Product List Price/Add To Cart stuck together

Locked

Views: 2,843

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
9 Oct 2007, 3:23 PM
#1
glv avatar

glv

New Zenner

Join Date:
Oct 2007
Posts:
29
Plugin Contributions:
0

Product List Price/Add To Cart stuck together

Hello,

On my product list page, I want to break the quanity box and add to cart buttons out of the price column. It doesn't look like there is a way to do this via the admin or anyone having asked for it before here.

Can anyone help me?

Ideally the new column would not be sortable, just like the images column.

9 Oct 2007, 4:04 PM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Product List Price/Add To Cart stuck together

You would need to edit the page's template to change its structure.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

9 Oct 2007, 5:35 PM
#3
glv avatar

glv

New Zenner

Join Date:
Oct 2007
Posts:
29
Plugin Contributions:
0

Re: Product List Price/Add To Cart stuck together

Yes, that is what I am trying to do.

I am terrible with php, and the template page is so far beyond me.

I have just saved a copy of the classic one and am using an editted copy of that as my own template.

I guess it sounds like a little much to ask for someone to just show me what I need to change, but you guys seem to be awesome with giving that level of help, so maybe? :)

Thanks.

13 Oct 2007, 6:44 AM
#4
biojohn avatar

biojohn

New Zenner

Join Date:
Sep 2007
Posts:
23
Plugin Contributions:
0

Re: Product List Price/Add To Cart stuck together

:blink:
I agree with GLV. It looks odd to put "price" and "Add " in the same column. It'll be really nice to be in separate column. Any help to accomplish that is appreciated.

18 Oct 2007, 5:23 PM
#5
topcan5 avatar

topcan5

New Zenner

Join Date:
Oct 2007
Posts:
7
Plugin Contributions:
0

Re: Product List Price/Add To Cart stuck together

If you only want to show the price without "add to cart", go to:
admin/configuration/productlising, and set the "display product add to cart button" to "0".
see my site: http://www.topads.com

5 Dec 2007, 7:42 PM
#6
glv avatar

glv

New Zenner

Join Date:
Oct 2007
Posts:
29
Plugin Contributions:
0

Re: Product List Price/Add To Cart stuck together

No, I want them both, just in separate columns side-to-side not stacked in the same column.

28 Oct 2008, 9:44 PM
#7
lancemonotone avatar

lancemonotone

New Zenner

Join Date:
Oct 2008
Posts:
11
Plugin Contributions:
0

Re: Product List Price/Add To Cart stuck together

Here is what I did to split the price and add fields:

  1. Download and install the 'Column Layout Grid for Product Listing' add-on. I used v1.3.8. If you have a different version of Zen, sorry...I can't help you if it doesn't work.

  2. Modify the product_listing.php file in the add-on as follows:

Change

$lc_align = '';
for ($col=0, $n=sizeof($column_list); $col<$n; $col++) {

to

$lc_align = '';

/**
 * split price and add fields
 */
$column_list []= 'PRODUCT_LIST_QTY';
/**
 * end split price and add fields
 */

for ($col=0, $n=sizeof($column_list); $col<$n; $col++) {

Change

break;
  }

  if ( ($column_list[$col] != 'PRODUCT_LIST_IMAGE') ) {
    $lc_text = zen_create_sort_heading($_GET['sort'], $col+1, $lc_text);

to

break;

/**
 * split price and add fields
 */
    case 'PRODUCT_LIST_QTY':
    $lc_text = TABLE_HEADING_QUANTITY;
    $lc_align = 'right';
    $zc_col_count_description++;
    break;
/**
 * end split price and add fields
 */
  }

  if ( ($column_list[$col] != 'PRODUCT_LIST_IMAGE' && $column_list[$col] != 'PRODUCT_LIST_QTY') ) {
    $lc_text = zen_create_sort_heading($_GET['sort'], $col+1, $lc_text);

Change

 
// more info in place of buy now
        $lc_button = '';

to

// more info in place of buy now

/**
 * split price and add fields
 */
        break;
        case 'PRODUCT_LIST_QTY':
        	$lc_text = '';
/**
 * end split price and add fields
 */
        $lc_button = '';
21 Nov 2008, 6:44 AM
#8
eljay avatar

eljay

New Zenner

Join Date:
Nov 2008
Posts:
9
Plugin Contributions:
0

Re: Product List Price/Add To Cart stuck together

lancemonotone:

Here is what I did to split the price and add fields:

  1. Download and install the 'Column Layout Grid for Product Listing' add-on. I used v1.3.8. If you have a different version of Zen, sorry...I can't help you if it doesn't work.

  2. Modify the product_listing.php file in the add-on as follows:

Change

$lc_align = '';
for ($col=0, $n=sizeof($column_list); $col<$n; $col++) {
.........etc


I needed to split the colums and this solution worked great. Thanks! :smile: