If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / What is the code to add the product info box to the category display pages?

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

Started by riolas on 13 Nov 2013, 12:52 PM · Views: 749

Results 1 to 4 of 4
13 Nov 2013, 12:52 PM
#1
riolas avatar

riolas

New Zenner

Join Date:
Oct 2009
Posts:
66
Plugin Contributions:
0

Post #1 by riolas

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.

13 Nov 2013, 3:51 PM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Post #2 by gjh42

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

<!--bof Product details list --> <?php if ( (($flag_show_product_info_model == 1 and $products_model != '') or ($flag_show_product_info_weight == 1 and $products_weight !=0) or ($flag_show_product_info_quantity == 1) or ($flag_show_product_info_manufacturer == 1 and !empty($manufacturers_name))) ) { ?> <ul id="productDetailsList" class="floatingBox back"> <?php echo (($flag_show_product_info_model == 1 and $products_model !='') ? '<li>' . TEXT_PRODUCT_MODEL . $products_model . '</li>' : '') . "\n"; ?> <?php echo (($flag_show_product_info_weight == 1 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 == 1 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.

13 Nov 2013, 10:33 PM
#3
riolas avatar

riolas

New Zenner

Join Date:
Oct 2009
Posts:
66
Plugin Contributions:
0

Post #3 by riolas

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.

16 Nov 2013, 11:11 PM
#4
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Post #4 by gjh42

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?