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

    Default Add sidebox in Product Listing Page

    How can i add a sidebox in a product listing page?

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Add sidebox in Product Listing Page

    Look at the numerous commented items in tpl_main_page.php
    There are many examples that you can use or modify for pages you want
    Zen-Venom Get Bitten

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

    Default Re: Add sidebox in Product Listing Page

    Yes you are right but if i add anything under "right column" it will appear on all pages. I want that only on product listing pages which has the following urls:

    http://www.xxxxxxxxxx.com/index.php?...ath=11_200_201

    Now how can i detect the product listing page in tpl_main_page.php ?

    Like

    If (Product_listing_Page) then
    {
    Show right column text
    }

    ............

    Please help me out.

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

    Default Re: Add sidebox in Product Listing Page

    An individual sidebox will not be controlled in tpl_main_page.php, but in its own module file
    (/includes/modules/sideboxes/your_template/sidebox_name.php). You will see something like this near the top of the file:

    $show_sidebox_name = true;
    if ($show_sidebox_name == true;) {

    For your example, you would do something like this:
    PHP Code:
    if ($current_page_base == 'index' and $_GET['cPath'] == '11_200_201') {
      
    $show_sidebox_name true;
    } else {
      
    $show_sidebox_name false;
    }
    if (
    $show_sidebox_name == true;) { 

 

 

Similar Threads

  1. Product Listing Page Add To Cart
    By matchlock in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 3 Aug 2011, 01:59 AM
  2. how to add freeshipping listing as new product listing and special listing
    By zeme_09g in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 15 Apr 2010, 10:35 AM
  3. Add separator on product listing page
    By CobraPlant in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 17 Nov 2007, 06:23 PM
  4. how to put a add to cart button on every product in product listing page??
    By lastpirate007 in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 11 Sep 2007, 05:47 AM
  5. add button in product listing page
    By dannyd in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 6 Feb 2007, 05:41 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