If this is your first visit, check our documentation. To post, register or login.
Forums / Community Contributed Add-Ons / Addon Sideboxes / Click-Show-Hide Category Menu Sidebox

Click-Show-Hide Category Menu Sidebox

Started by ahhs9162 on 27 Sep 2012, 9:30 PM · Views: 1,769

Results 1 to 4 of 4
27 Sep 2012, 9:30 PM
#1
ahhs9162 avatar

ahhs9162

New Zenner

Join Date:
Aug 2012
Location:
North Carolina
Posts:
28
Plugin Contributions:
0

Post #1 by ahhs9162

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.

Attachment 11221

Attachment 11222

Wholesale Jewelry Store

http://pnytrading.net/

18 Dec 2012, 9:21 PM
#2
ahhs9162 avatar

ahhs9162

New Zenner

Join Date:
Aug 2012
Location:
North Carolina
Posts:
28
Plugin Contributions:
0

Post #2 by ahhs9162

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']):'') );

Wholesale Jewelry Store

http://pnytrading.net/

18 Dec 2012, 9:33 PM
#3
ahhs9162 avatar

ahhs9162

New Zenner

Join Date:
Aug 2012
Location:
North Carolina
Posts:
28
Plugin Contributions:
0

Post #3 by ahhs9162

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.

Wholesale Jewelry Store

http://pnytrading.net/

18 Dec 2012, 9:46 PM
#4
ahhs9162 avatar

ahhs9162

New Zenner

Join Date:
Aug 2012
Location:
North Carolina
Posts:
28
Plugin Contributions:
0

Post #4 by ahhs9162

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

Wholesale Jewelry Store

http://pnytrading.net/