Results 1 to 8 of 8
  1. #1
    Join Date
    Oct 2007
    Posts
    29
    Plugin Contributions
    0

    Default 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.

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default 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)

  3. #3
    Join Date
    Oct 2007
    Posts
    29
    Plugin Contributions
    0

    Default 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.

  4. #4
    Join Date
    Sep 2007
    Posts
    23
    Plugin Contributions
    0

    Default Re: Product List Price/Add To Cart stuck together


    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.

  5. #5
    Join Date
    Oct 2007
    Posts
    7
    Plugin Contributions
    0

    Default 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

  6. #6
    Join Date
    Oct 2007
    Posts
    29
    Plugin Contributions
    0

    Default 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.

  7. #7
    Join Date
    Oct 2008
    Posts
    11
    Plugin Contributions
    0

    Default 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
    PHP Code:
    $lc_align '';
    for (
    $col=0$n=sizeof($column_list); $col<$n$col++) { 
    to
    PHP Code:
    $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
    PHP Code:
    break;
      }

      if ( (
    $column_list[$col] != 'PRODUCT_LIST_IMAGE') ) {
        
    $lc_text zen_create_sort_heading($_GET['sort'], $col+1$lc_text); 
    to
    PHP Code:
    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
    PHP Code:
    // more info in place of buy now
            
    $lc_button ''
    to
    PHP Code:
    // 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 ''

  8. #8
    Join Date
    Nov 2008
    Posts
    9
    Plugin Contributions
    0

    Default Re: Product List Price/Add To Cart stuck together

    Quote Originally Posted by lancemonotone View Post
    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
    PHP Code:
    $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!

 

 

Similar Threads

  1. v151 Display "add to cart" and "Call for price together"
    By Tadj Hemingway in forum General Questions
    Replies: 2
    Last Post: 6 Mar 2015, 07:53 PM
  2. product priced by attributes but stuck together
    By charliepingpong in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 31 May 2011, 07:38 AM
  3. How to put "price" and "add to cart" together?
    By leisbi in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 9 May 2011, 01:34 AM
  4. Attribute images are stuck together !
    By petek in forum Setting Up Categories, Products, Attributes
    Replies: 8
    Last Post: 15 Mar 2008, 02:23 PM
  5. Zen Cart / PHP List not working together?
    By designsbytrina in forum General Questions
    Replies: 0
    Last Post: 19 Dec 2006, 05:10 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg