Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Apr 2009
    Posts
    29
    Plugin Contributions
    0

    Default REMOVE "more info" from Productlisting and reduce space between price & drescription

    Hello

    How can I remove the "more info" from the product listing pages?

    I want the layout to be

    product image
    title
    price

    and no description or no words saying " more info"

    I want to get remove the "more info" part. how can i earse this?

    Also,

    between product image and title and prices, I want to reduce the space between this two lines.

    PLEASE HELP!

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: REMOVE "more info" from Productlisting and reduce space between price & drescript

    Please, please provide a link to your site, especially when asking about layout issues.

  3. #3
    Join Date
    Jul 2009
    Location
    Australia
    Posts
    2
    Plugin Contributions
    0

    Default Re: REMOVE "more info" from Productlisting and reduce space between price & drescript

    I have the same question also. I have sort out the space already

    edit:
    includes/modules/product_listing.php

    find the text:
    if (PRODUCT_LISTING_LAYOUT_STYLE == 'columns') {

    $lc_text = implode('<br />', $product_contents);

    and change to:

    if (PRODUCT_LISTING_LAYOUT_STYLE == 'columns') {

    $lc_text = implode($product_contents);

    --------------- Thanks mollymagahy for this answer :) -----------

    I still can't get rid of "Add: " under the price.

    Any idea how to do that? This is what my page look like and I just want Product name and Price only.
    Attached Images Attached Images  

  4. #4
    Join Date
    Apr 2009
    Posts
    29
    Plugin Contributions
    0

    Default Re: REMOVE "more info" from Productlisting and reduce space between price & drescript

    ok
    tHANK YOU BUT,

    MY /shop/zen/includes/modules/product_listing.php

    doesn't have that code.

    where Can I find it?

    instead that folder, I found in
    /shop/zen/includes/modules/mytemplate/product_listing.php

    is this right directory? because I fixed from this product listing and it doens't change anything.

    Please help!

  5. #5
    Join Date
    Apr 2009
    Posts
    29
    Plugin Contributions
    0

    Default Re: REMOVE "more info" from Productlisting and reduce space between price & drescript

    my product listing looks like this from that picture

    but

    I cannot remove the "More info" I want to remove and only appears the

    Image
    title
    Price

    like the other picture which is my new product list.

    How Can I fix this like my new product listing?

    here are the picture

    here are the site

    http://www.shopyourstrulee.com/shop/...ex&cPath=66_67
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	main.jpg 
Views:	338 
Size:	44.4 KB 
ID:	6158   Click image for larger version. 

Name:	new.jpg 
Views:	324 
Size:	42.5 KB 
ID:	6159  

  6. #6
    Join Date
    Jul 2009
    Location
    Esperance Western Australia
    Posts
    10
    Plugin Contributions
    0

    Default Re: REMOVE "more info" from Productlisting and reduce space between price & drescript

    Below is the code I removed from includes/modules/product_listing.php Line 152 or 153. Delete code shown below. Removes ..more info and the buy now and cart features from the product listing page. I think this is what your looking for. Have a look at this to verify before you remove code http://www.ozlingerie.com.au/index.php?main_page=index&cPath=72 . I turned product title and model number off from Admin.
    Code:
     // more info in place of buy now
            $lc_button = '';
    if (zen_has_product_attributes($listing->fields['products_id']) or PRODUCT_LIST_PRICE_BUY_NOW == '0') {
              $lc_button = '<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 ? $_GET['cPath'] : zen_get_generated_category_path_rev($listing->fields['master_categories_id']))) . '&products_id=' . $listing->fields['products_id']) . '">' . MORE_INFO_TEXT . '</a>';
            }
    
             else {
              if (PRODUCT_LISTING_MULTIPLE_ADD_TO_CART != 0) {
                if (
                    // not a hide qty box product
                    $listing->fields['products_qty_box_status'] != 0 &&
                    // product type can be added to cart
                    zen_get_products_allow_add_to_cart($listing->fields['products_id']) != 'N'
                    &&
                    // product is not call for price
                    $listing->fields['product_is_call'] == 0
                    &&
                    // product is in stock or customers may add it to cart anyway
                    ($listing->fields['products_quantity'] > 0 || SHOW_PRODUCTS_SOLD_OUT_IMAGE == 0) ) {
                  $how_many++;
                }
                // hide quantity box
                if ($listing->fields['products_qty_box_status'] == 0) {
                  $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>';
                } else {
                  $lc_button = TEXT_PRODUCT_LISTING_MULTIPLE_ADD_TO_CART . "<input type=\"text\" name=\"products_id[" . $listing->fields['products_id'] . "]\" value=\"0\" size=\"4\" />";
                }
              } 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 />' : '') : '');

  7. #7
    Join Date
    Jul 2009
    Location
    Australia
    Posts
    2
    Plugin Contributions
    0

    Default Re: REMOVE "more info" from Productlisting and reduce space between price & drescript

    Finally, i got all fixed.

    to remove " more info" , you need to go to "english.php" and find the line that says DEFINE("More_info_Text', '...more info');
    and change to DEFINE("More_info_Text','');

    Good Luck!

  8. #8
    Join Date
    Apr 2009
    Posts
    29
    Plugin Contributions
    0

    Default Re: REMOVE "more info" from Productlisting and reduce space between price & drescript

    I did the both way but still cannot figure this out.

    I have two product_listing.php on the /shop/zen/includes/modules/product_listing.php

    and
    /shop/zen/includes/modules/mytemplate/product_listing.php

    I tried to erase both from the code that you gave me to me which is

    Code:
        }
            break;
            case 'PRODUCT_LIST_MANUFACTURER':
            $lc_align = '';
            $lc_text = '<a href="' . zen_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $listing->fields['manufacturers_id']) . '">' . $listing->fields['manufacturers_name'] . '</a>';
            break;
            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 = '';
            if (zen_has_product_attributes($listing->fields['products_id']) or PRODUCT_LIST_PRICE_BUY_NOW == '0') {
              $lc_button = '<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 ? $_GET['cPath'] : zen_get_generated_category_path_rev($listing->fields['master_categories_id']))) . '&products_id=' . $listing->fields['products_id']) . '">' . MORE_INFO_TEXT . '</a>';
            } else {
              if (PRODUCT_LISTING_MULTIPLE_ADD_TO_CART != 0) {
                if (
                    // not a hide qty box product
                    $listing->fields['products_qty_box_status'] != 0 &&
                    // product type can be added to cart
                    zen_get_products_allow_add_to_cart($listing->fields['products_id']) != 'N'
                    &&
                    // product is not call for price
                    $listing->fields['product_is_call'] == 0
                    &&
                    // product is in stock or customers may add it to cart anyway
                    ($listing->fields['products_quantity'] > 0 || SHOW_PRODUCTS_SOLD_OUT_IMAGE == 0) ) {
                  $how_many++;
                }
                // hide quantity box
                if ($listing->fields['products_qty_box_status'] == 0) {
                  $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>';
                } else {
                  $lc_button = TEXT_PRODUCT_LISTING_MULTIPLE_ADD_TO_CART . "<input type=\"text\" name=\"products_id[" . $listing->fields['products_id'] . "]\" value=\"0\" size=\"4\" />";
                }
              } 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;
            case 'PRODUCT_LIST_QUANTITY':
            $lc_align = 'right';
            $lc_text = $listing->fields['products_quantity'];
            break;
            case 'PRODUCT_LIST_WEIGHT':
            $lc_align = 'right';
            $lc_text = $listing->fields['products_weight'];
            break;
            case 'PRODUCT_LIST_IMAGE':
            $lc_align = 'center';
            if ($listing->fields['products_image'] == '' and PRODUCTS_IMAGE_NO_IMAGE_STATUS == 0) {
              $lc_text = '';
            } else {
              if (isset($_GET['manufacturers_id'])) {
                $lc_text = '<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']) . '">' . zen_image(DIR_WS_IMAGES . $listing->fields['products_image'], $listing->fields['products_name'], IMAGE_PRODUCT_LISTING_WIDTH, IMAGE_PRODUCT_LISTING_HEIGHT, 'class="listingProductImage"') . '</a>';
              } else {
                $lc_text = '<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']) . '">' . zen_image(DIR_WS_IMAGES . $listing->fields['products_image'], $listing->fields['products_name'], IMAGE_PRODUCT_LISTING_WIDTH, IMAGE_PRODUCT_LISTING_HEIGHT, 'class="listingProductImage"') . '</a>';
              }
            }
            break;
          }
    
          $list_box_contents[$rows][$col] = array('align' => $lc_align,
                                                  'params' => 'class="productListing-data"',
                                                  'text'  => $lc_text);
        }
    red part is Where I delete but whole product listing page is gone.

    prdouct listing page came out blanks.

    So I delete the only the

    Code:
     // more info in place of buy now
            $lc_button = '';
            if (zen_has_product_attributes($listing->fields['products_id']) or PRODUCT_LIST_PRICE_BUY_NOW == '0') {
              $lc_button = '<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 ? $_GET['cPath'] : zen_get_generated_category_path_rev($listing->fields['master_categories_id']))) . '&products_id=' . $listing->fields['products_id']) . '">' . MORE_INFO_TEXT . '</a>';
    red part which is only the links a href parts.

    And finally it was gone but.. still it make huge gap space between the product pricing and next line below.

    I think because I only earse the a href part so the blank part is still there. How Can I just get rid of everything ?

    I just want my product + title + price and no big spabe below.

    How Can I do that?

  9. #9
    Join Date
    Apr 2009
    Posts
    29
    Plugin Contributions
    0

    Default Re: REMOVE "more info" from Productlisting and reduce space between price & drescript

    Quote Originally Posted by chanchera View Post
    Finally, i got all fixed.

    to remove " more info" , you need to go to "english.php" and find the line that says DEFINE("More_info_Text', '...more info');
    and change to DEFINE("More_info_Text','');

    Good Luck!
    I did delete the more info part but now it becomes

    "More_info_text" on the page. instead of more info.

  10. #10
    Join Date
    Apr 2009
    Posts
    29
    Plugin Contributions
    0

    Default Re: REMOVE "more info" from Productlisting and reduce space between price & drescript

    thanks to all ofyou! help me.!!
    I actually figured it out my own.

    instead of delete all of the code I earase all the

    "a href" code from the the code including "</a> and </br> codes also.

    Thank you.

    it's all gone now.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v150 Styling the price and "... more info" on my product info pages
    By coreyalderin in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 27 Oct 2012, 03:35 PM
  2. HELP! How to Remove "more info..." from product listings
    By taraeng in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 30 Apr 2011, 05:46 PM
  3. reduce the space between image, name, brand, price & login for price.
    By carlosesierra in forum Customization from the Admin
    Replies: 1
    Last Post: 12 Oct 2009, 04:00 PM
  4. reduce the space between image, name, brand, price & login for price.
    By carlosesierra in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 8 Oct 2009, 11:54 AM
  5. description insted of "more info" & space between products images
    By shmints in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 23 May 2009, 10:10 AM

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