<ul> {if userlogedin?} <li><a href="{"orders.search"|fn_url}">Orders</a></li> {/if} <li><a href="{"wishlist.view"|fn_url}">Wishlist</a></li> <li><a href="{"product_features.compare"|fn_url}">Comparelist</a></li> </ul>
|
Posted 06 May 2014 - 05:10 AM #1
<ul> {if userlogedin?} <li><a href="{"orders.search"|fn_url}">Orders</a></li> {/if} <li><a href="{"wishlist.view"|fn_url}">Wishlist</a></li> <li><a href="{"product_features.compare"|fn_url}">Comparelist</a></li> </ul>
Posted 06 May 2014 - 05:25 AM #2
{if $auth.user_id}
One Step Checkout Addon - The ultimate checkout experience
Best CS-Cart SEO addon - CS-Cart SEO Ultimate Addon
PM for 365-day support and custom development service
Posted 12 June 2014 - 02:28 AM #4
{if $auth.user_id} <i class="f-icon-heart"></i><a href="{"wishlist.view"|fn_url}" rel="nofollow">{__("wishlist")}{if $wishlist_count > 0} ({$wishlist_count}){/if}</a> {/if}
Posted 12 June 2014 - 02:53 AM #5
EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.
Posted 12 June 2014 - 06:18 AM #6
Posted 12 June 2014 - 06:35 PM #7
EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.
Posted 13 June 2014 - 07:36 AM #8
I want to make like this...
螢幕快照 2014-06-12 下午2.14.57.png 28.9KB 38 downloads
{$smarty.session.wishlist.products|count}
GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart USD 1210 Multi-Vendor USD 1250 Multi-Vendor PLUS USD 3100 (2775)
CS-Cart Ultimate USD 4025 CS-Cart + YOUPI USD 1459 Multi-Vendor Ultimate USD 7500 (6000)
Posted 13 June 2014 - 12:00 PM #9
Try
{$smarty.session.wishlist.products|count}
{if $auth.user_id} <i class="f-icon-heart"></i><a href="{"wishlist.view"|fn_url}" rel="nofollow">{__("wishlist")}{if $smarty.session.wishlist.products|count > 0} ({$smarty.session.wishlist.products|count}){/if}</a> {/if}It's working!! I really appreciate your help.
Posted 13 June 2014 - 12:45 PM #10
GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart USD 1210 Multi-Vendor USD 1250 Multi-Vendor PLUS USD 3100 (2775)
CS-Cart Ultimate USD 4025 CS-Cart + YOUPI USD 1459 Multi-Vendor Ultimate USD 7500 (6000)
Posted 16 January 2015 - 11:37 AM #11
{$auth.user_id}in a PHP script (obviously on same server!) rather than within Smarty Template?
{$auth.user_id} {$user_info.firstname} {$user_info.lastname} {$user_info.email} {$auth.usergroup_ids[2]}
Posted 16 January 2015 - 02:17 PM #12
$_SESSION['auth']['user_id']
GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart USD 1210 Multi-Vendor USD 1250 Multi-Vendor PLUS USD 3100 (2775)
CS-Cart Ultimate USD 4025 CS-Cart + YOUPI USD 1459 Multi-Vendor Ultimate USD 7500 (6000)
Posted 16 January 2015 - 04:38 PM #14
Posted 16 January 2015 - 08:36 PM #15
if( !empty($_SESSION['auth']['user_id']) )Use of
{$auth.user_id}should also work. But if not, using
{$smarty.session.auth.user_id}would do the same and prevent the overhead of any ajax requests.
EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.
Posted 19 January 2015 - 09:07 AM #16