Results 1 to 2 of 2
  1. #1
    Join Date
    May 2009
    Posts
    12
    Plugin Contributions
    0

    Default How can I move the price field to the left

    Hello,
    Some people complained to me that the price field in the product listing is too far to the right and away from the picture of the item (which is on the left).
    I could not find a way to do it using the admin tool and the only way I managed to do this was by editing the file: ..zencart/includes/modules/product_listing.php
    and inserting:
    '<br>' . zen_get_products_display_price($listing->fields['products_id']) .

    making the line appear like this:

    $lc_text = '<h3 class="itemTitle"><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']) . '">' . $listing->fields['products_name'] . '<br>' . zen_get_products_display_price($listing->fields['products_id']) . '</a></h3><div class="listingDescription">' . zen_trunc_string(zen_clean_html(stripslashes(zen_get_products_description($listi ng->fields['products_id'], $_SESSION['languages_id']))), PRODUCT_LIST_DESCRIPTION) . '</div>' ;

    I also changed the line:
    $lc_price = zen_get_products_display_price($listing->fields['products_id']) . '<br />';
    to:
    $lc_price = '<br />';

    to stop the price appearing on the right.

    Is there a more elegant way to do this?

    Thanks,
    Amnon.

  2. #2
    Join Date
    May 2009
    Posts
    12
    Plugin Contributions
    0

    Default moving the price field to the left

    Hello,
    Some people complained to me that the price field in the product listing is too far to the right and away from the picture of the item (which is on the left).
    I could not find a way to do it using the admin tool and the only way I managed to do this was by editing the file: ..zencart/includes/modules/product_listing.php
    and inserting:
    '<br>' . zen_get_products_display_price($listing->fields['products_id']) .

    making the line appear like this:

    $lc_text = '<h3 class="itemTitle"><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']) . '">' . $listing->fields['products_name'] . '<br>' . zen_get_products_display_price($listing->fields['products_id']) . '</a></h3><div class="listingDescription">' . zen_trunc_string(zen_clean_html(stripslashes(zen_get_products_description($listi ng->fields['products_id'], $_SESSION['languages_id']))), PRODUCT_LIST_DESCRIPTION) . '</div>' ;

    I also changed the line:
    $lc_price = zen_get_products_display_price($listing->fields['products_id']) . '<br />';
    to:
    $lc_price = '<br />';

    to stop the price appearing on the right.

    Is there a more elegant way to do this?

    I also posted this under the General category. Only then I saw this category and thought it is more suitable.

    Thanks,
    Amnon.

 

 

Similar Threads

  1. How to move the add to cart button to the left side?
    By sharontan in forum Templates, Stylesheets, Page Layout
    Replies: 16
    Last Post: 10 Dec 2010, 04:58 PM
  2. PayPal Express Button Image -how do I get it to move to the right side, not the left?
    By Mike_Dean in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 14 Oct 2009, 04:46 AM
  3. Move qty box to the left of price and remove <br>
    By Three Sisters in forum Templates, Stylesheets, Page Layout
    Replies: 24
    Last Post: 12 Sep 2009, 11:30 PM
  4. How to move the sidebox side ways. from left to more left? realy need help...
    By brekke00 in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 27 Aug 2007, 02:38 PM
  5. How to move BODY to the left side of the website.
    By williamL in forum General Questions
    Replies: 5
    Last Post: 3 Apr 2007, 06:44 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR