Results 1 to 7 of 7
  1. #1
    Join Date
    Aug 2006
    Posts
    11
    Plugin Contributions
    0

    Default Price doesn't line up with product title

    HI there,
    I am using an installation of v1.3.9h.
    On my product listing in each categories, the price doesn't line up horizontally with the product title.
    Its hard to easily tell what the price is at a glance.
    I want to make these line up but I cant figure it out.
    http://www.smartcontactless.com/inde...=index&cPath=1


    Any help please?
    Thanks,
    Rich V

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Price doesn't line up with product title

    In your stylesheet, find
    Code:
    	tr.productListing-odd {
    		border:1px red solid;
    	margin-bottom:100px	
    	}
    	tr.productListing-even {
    			border:1px blue solid;
    	margin-bottom:10px	
    	}
    and replace it with
    Code:
    tr.productListing-odd, tr.productListing-even {
    	vertical-align: top;
    	}
    h3.itemTitle {margin-top: 0;}

  3. #3
    Join Date
    Jun 2010
    Location
    Tacoma, Washington
    Posts
    26
    Plugin Contributions
    0

    Default Re: Price doesn't line up with product title

    I am working on my first Zen Cart in v1.39h and I have a similar but different problem. I want to put the price inline with the add to cart box, but for the life of me I can't find where the <br/> tags are being generated. I have searched every line of code I could think of, but not figured it out. Any clues would be welcome.
    Click image for larger version. 

Name:	columner_example.gif 
Views:	91 
Size:	5.2 KB 
ID:	8962

    Click image for larger version. 

Name:	html.gif 
Views:	75 
Size:	8.6 KB 
ID:	8963
    Thank you very much

  4. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Price doesn't line up with product title

    I can't find where the <br/> tags are being generated. I have searched every line of code I could think of
    What code did you search? The HTML view source? That doesn't tell where the <br /> tags are generated. The product listing is built in /includes/modules/your_template/product_listing.php. The price display in that is built by a very complex set of functions and subfiles.

  5. #5
    Join Date
    Jun 2010
    Location
    Tacoma, Washington
    Posts
    26
    Plugin Contributions
    0

    Default Re: Price doesn't line up with product title

    I included the source just to show what I was searching for. I searched through pretty much all of the PHP files that had anything to do with the product listings, and all of the pages I could find called in them. I can live (reluctantly) with the way it is, but I would very much like to make it right if it is possible.

  6. #6
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Price doesn't line up with product title

    In product_listing.php:
    Code:
            case 'PRODUCT_LIST_PRICE':
            $lc_price = zen_get_products_display_price($listing->fields['products_id']) . '<br />';
            $lc_align = 'right';
            $lc_text =  $lc_price;
    
            // more info in place of buy now
            $lc_button = '';
    
    ...
    
              } else {
    // qty box with add to cart button
                if (PRODUCT_LIST_PRICE_BUY_NOW == '2' && $listing->fields['products_qty_box_status'] != 0) {
                  $lc_button= zen_draw_form('cart_quantity', zen_href_link(zen_get_info_page($listing->fields['products_id']), zen_get_all_get_params(array('action')) . 'action=add_product&products_id=' . $listing->fields['products_id']), 'post', 'enctype="multipart/form-data"') . '<input type="text" name="cart_quantity" value="' . (zen_get_buy_now_qty($listing->fields['products_id'])) . '" maxlength="6" size="4" /><br />' . zen_draw_hidden_field('products_id', $listing->fields['products_id']) . zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT) . '</form>';
                } else {
                  $lc_button = '<a href="' . zen_href_link($_GET['main_page'], zen_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing->fields['products_id']) . '">' . zen_image_button(BUTTON_IMAGE_BUY_NOW, BUTTON_BUY_NOW_ALT, 'class="listingBuyNowButton"') . '</a>';
                }
              }
            }
            $the_button = $lc_button;
            $products_link = '<a href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']), 'cPath=' . ( ($_GET['manufacturers_id'] > 0 and $_GET['filter_id']) > 0 ? zen_get_generated_category_path_rev($_GET['filter_id']) : $_GET['cPath'] > 0 ? zen_get_generated_category_path_rev($_GET['cPath']) : zen_get_generated_category_path_rev($listing->fields['master_categories_id'])) . '&products_id=' . $listing->fields['products_id']) . '">' . MORE_INFO_TEXT . '</a>';
            $lc_text .= '<br />' . zen_get_buy_now_button($listing->fields['products_id'], $the_button, $products_link) . '<br />' . zen_get_products_quantity_min_units_display($listing->fields['products_id']);
            $lc_text .= '<br />' . (zen_get_show_product_switch($listing->fields['products_id'], 'ALWAYS_FREE_SHIPPING_IMAGE_SWITCH') ? (zen_get_product_is_always_free_shipping($listing->fields['products_id']) ? TEXT_PRODUCT_FREE_SHIPPING_ICON . '<br />' : '') : '');
    
            break;

  7. #7
    Join Date
    Jun 2010
    Location
    Tacoma, Washington
    Posts
    26
    Plugin Contributions
    0

    Default Re: Price doesn't line up with product title

    Perfect ! I knew I had to simply be missing it, my eyes were getting blurry! Thank you very much for breaking this logjam for me. I appreciate the help.

 

 

Similar Threads

  1. Product Title in One line. add (.....) From in line end..
    By jennydutch in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 28 Sep 2014, 09:25 PM
  2. Specials products with line throught original & discount price
    By irishshopper in forum Basic Configuration
    Replies: 1
    Last Post: 4 Jun 2011, 05:05 PM
  3. Category Product name and price don't line up
    By mattbussey in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 24 Mar 2009, 06:03 AM
  4. Replies: 0
    Last Post: 17 Mar 2008, 02:34 PM
  5. Replies: 1
    Last Post: 7 Apr 2007, 08:05 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