Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2012
    Location
    North Carolina
    Posts
    28
    Plugin Contributions
    0

    Default Click-Show-Hide Category Menu Sidebox

    Hi, I'm using Click-Show-Hide Category Menu Sidebox and found it was really great module.

    But I got a problem.

    When I just click categories and then click an items, then category sidebox menu is remaining as in a moment when I clicked.

    But, when I get into through "Cross-sell" module, and Bestseller or "recently Viewed" module... it just show the category when I had clicked before.

    Please give me some help with this.. Thanks.

    Click image for larger version. 

Name:	clickshowhidemenu.jpg 
Views:	172 
Size:	27.4 KB 
ID:	11221


    Click image for larger version. 

Name:	clickshowhidemenu2.jpg 
Views:	161 
Size:	33.5 KB 
ID:	11222

  2. #2
    Join Date
    Aug 2012
    Location
    North Carolina
    Posts
    28
    Plugin Contributions
    0

    Default Re: Click-Show-Hide Category Menu Sidebox

    Solved.

    For Also Purchased Product Module
    /includes/modules/YOUR_TEMPLATE/also_purchased_products.php

    in about line 55

    change this line

    ' . (($also_purchased_products->fields['products_image'] == '' and PRODUCTS_IMAGE_NO_IMAGE_STATUS == 0) ? '' : '<a href="' . zen_href_link(zen_get_info_page($also_purchased_products->fields['products_id']), 'products_id=' . $also_purchased_products->fields['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $also_purchased_products->fields['products_image'], $also_purchased_products->fields['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>') . '<br />

    to

    ' . (($also_purchased_products->fields['products_image'] == '' and PRODUCTS_IMAGE_NO_IMAGE_STATUS == 0) ? '' : '<a href="' . zen_href_link(zen_get_info_page($also_purchased_products->fields['products_id']) . '&cPath=' . zen_get_product_path($also_purchased_products->fields['products_id']), 'products_id=' . $also_purchased_products->fields['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $also_purchased_products->fields['products_image'], $also_purchased_products->fields['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>') . '<br />


    just added this code

    . '&cPath=' . zen_get_product_path($also_purchased_products->fields['products_id'])



    and the method for Cross sell and Recently Viewed Module is almost same



    and For Cross Sell Module

    change about line 50


    'text' => '<a href="' . zen_href_link(zen_get_info_page($xsell_query->fields['products_id']), 'products_id=' . (int)$xsell_query->fields['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $xsell_query->fields['products_image'], $xsell_query->fields['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br /><a href="' . zen_href_link(zen_get_info_page($xsell_query->fields['products_id']), 'products_id=' . $xsell_query->fields['products_id']) . '">' . $xsell_query->fields['products_name'] . '</a>' . (XSELL_DISPLAY_PRICE=='true'? '<br />'.zen_get_products_display_price($xsell_query->fields['products_id']):'') );


    to


    'text' => '<a href="' . zen_href_link(zen_get_info_page($xsell_query->fields['products_id']) . '&cPath=' . zen_get_product_path($xsell_query->fields['products_id']), 'products_id=' . (int)$xsell_query->fields['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $xsell_query->fields['products_image'], $xsell_query->fields['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br /><a href="' . zen_href_link(zen_get_info_page($xsell_query->fields['products_id']), 'products_id=' . $xsell_query->fields['products_id']) . '">' . $xsell_query->fields['products_name'] . '</a>' . (XSELL_DISPLAY_PRICE=='true'? '<br />'.zen_get_products_display_price($xsell_query->fields['products_id']):'') );
    Last edited by ahhs9162; 18 Dec 2012 at 10:26 PM.

  3. #3
    Join Date
    Aug 2012
    Location
    North Carolina
    Posts
    28
    Plugin Contributions
    0

    Default Re: Click-Show-Hide Category Menu Sidebox

    For Recent Viwed Sidebox Module

    this one is a little bit tricky.
    the link tag is in the tpl_recent_products.php, not in the module folder.

    /includes/templates/YOUR_TEMPLATE/sideboxes/tpl_recent_products.php

    about line 12

    change this

    $content .= '<a href="' . zen_href_link(zen_get_info_page($recent_products->fields["products_id"]), 'products_id=' . $recent_products->fields["products_id"]) . '">' . zen_image(DIR_WS_IMAGES . $recent_products->fields['products_image'], $recent_products->fields['products_name'],SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'class="recentProductsImage"') . '<br />' . $recent_products->fields['products_name'] . '<br /></a>' ;

    to


    $content .= '<a href="' . zen_href_link(zen_get_info_page($recent_products->fields["products_id"]) . '&cPath=' . zen_get_product_path($recent_products->fields["products_id"]), 'products_id=' . $recent_products->fields["products_id"]) . '">' . zen_image(DIR_WS_IMAGES . $recent_products->fields['products_image'], $recent_products->fields['products_name'],SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'class="recentProductsImage"') . '<br />' . $recent_products->fields['products_name'] . '<br /></a>' ;


    I just added

    . '&cPath=' . zen_get_product_path($SOME_MODULE_COMMAND->fields["products_id"]


    Hopefully, this can help the others.
    Last edited by ahhs9162; 18 Dec 2012 at 10:36 PM.

  4. #4
    Join Date
    Aug 2012
    Location
    North Carolina
    Posts
    28
    Plugin Contributions
    0

    Default Re: Click-Show-Hide Category Menu Sidebox

    For Best Seller Sidebox

    /includes/templates/YOUR_TEMPLATE/sideboxes/tpl_best_sellers.php

    add this

    . '&cPath=' . zen_get_product_path($bestsellers_list[$i]['id'])

    after the two of

    $content .= '<li class="category-top_un"><span class="top-span"><a href="' . zen_href_link(zen_get_info_page($bestsellers_list[$i]['id'])

    in line 18, and 22

 

 

Similar Threads

  1. Click-Show-Hide Category Menu reloads on clicking sub-menu
    By rajoo.sharma in forum Addon Sideboxes
    Replies: 3
    Last Post: 20 Nov 2013, 07:02 PM
  2. v151 Click-Show-Hide Category Menu
    By Feznizzle in forum Addon Sideboxes
    Replies: 1
    Last Post: 8 Feb 2013, 05:01 PM
  3. Click-Show-Hide Category Menu / Separate Sidebox For Docs
    By khopek in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 7 Mar 2010, 07:36 AM
  4. Click-Show-Hide Category Menu sidebox
    By cla74 in forum Addon Sideboxes
    Replies: 10
    Last Post: 20 Jan 2010, 12:40 AM
  5. Click-Show-Hide Category Menu sidebox help
    By critchey1 in forum Addon Sideboxes
    Replies: 4
    Last Post: 21 Aug 2008, 01:55 PM

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