Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2009
    Posts
    66
    Plugin Contributions
    0

    Default What is the code to add the product info box to the category display pages?

    Hi again guys,

    I previously deleted the code for the product info box that goes under the product title and price on the category display page (I know I know, I should have disabled in admin)

    Can somebody please provide the code?

    Thank you so much.

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

    Default Re: What is the code to add the product info box to the category display pages?

    If you are talking about the product details that appear on the product info page, this snippet handles them in /includes/templates/your_template/templates/tpl_product_info_display.php:
    PHP Code:
    <!--bof Product details list  -->
    <?php if ( (($flag_show_product_info_model == and $products_model != '') or ($flag_show_product_info_weight == and $products_weight !=0) or ($flag_show_product_info_quantity == 1) or ($flag_show_product_info_manufacturer == and !empty($manufacturers_name))) ) { ?>
    <ul id="productDetailsList" class="floatingBox back">
      <?php echo (($flag_show_product_info_model == and $products_model !='') ? '<li>' TEXT_PRODUCT_MODEL $products_model '</li>' '') . "\n"?>
      <?php echo (($flag_show_product_info_weight == and $products_weight !=0) ? '<li>' TEXT_PRODUCT_WEIGHT .  $products_weight TEXT_PRODUCT_WEIGHT_UNIT '</li>'  '') . "\n"?>
      <?php echo (($flag_show_product_info_quantity == 1) ? '<li>' $products_quantity TEXT_PRODUCT_QUANTITY '</li>'  '') . "\n"?>
      <?php echo (($flag_show_product_info_manufacturer == and !empty($manufacturers_name)) ? '<li>' TEXT_PRODUCT_MANUFACTURER $manufacturers_name '</li>' '') . "\n"?>
    </ul>
    <br class="clearBoth" />
    <?php
      
    }
    ?>
    <!--eof Product details list -->
    You can place the block wherever you want the output in the page flow.

    You should have an untouched copy of the file at /includes/templates/template_default/templates/tpl_product_info_display.php; if you originally edited the /template_default/ version, you should restore that and make a copy in your custom template override folder.

  3. #3
    Join Date
    Oct 2009
    Posts
    66
    Plugin Contributions
    0

    Default Re: What is the code to add the product info box to the category display pages?

    I am taking about the more info or view product button that is under the product images, names and prices on the category page, not the product info display page.

    Thank you.

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

    Default Re: What is the code to add the product info box to the category display pages?

    You must have your product listing in a column grid layout instead of the stock rows layout, if the "more info" or whatever is appearing below the image and name. Did you edit the original copy of product_listing.php? If you have a column grid layout, the mod's version of the file should have gone into your custom template folder (/includes/modules/your_template/product_listing.php), leaving /includes/modules/product_listing.php as is.
    So what does your setup look like? Do you have a commercial template, and if so, what is it?

 

 

Similar Threads

  1. Where is the file to hard code extra words into title for the category/product pages?
    By skeeterz71 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 23 Mar 2014, 09:32 AM
  2. v150 How do I over ride the Product Info page and the category pages!!
    By Darion in forum General Questions
    Replies: 2
    Last Post: 4 Oct 2012, 03:00 AM
  3. Remove the category picture from the top of the product info page.
    By alterego55 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 1 Oct 2010, 06:56 PM
  4. How can I display the category descriptiong text on the product display info page?
    By HellMind in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 18 Sep 2009, 06:43 AM
  5. Add Atributes Inside The Add To Cart Box on The Product Info Page
    By CoolCarPartsOnline in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 9 Jul 2008, 09:29 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