Login Link Methods
- SmartCart.getLoginLabel ⇒
string
Get the login button text from the current SmartCart instance
- SmartCart.getLoginUrl ⇒
string
Get the login button URL from the current SmartCart instance
- SmartCart.shouldRenderLoginComponent ⇒
boolean
Check if the login component should be rendered
SmartCart.getLoginLabel ⇒ string
Get the login button text from the current SmartCart instance
Returns: string - The login button text
SmartCart.getLoginUrl ⇒ string
Get the login button URL from the current SmartCart instance
Returns: string - The login button URL
SmartCart.shouldRenderLoginComponent ⇒ boolean
Check if the login component should be rendered
Returns: boolean - True if the login component should be rendered
---
title: Login Link Methods
excerpt: ''
deprecated: false
hidden: false
metadata:
title: ''
description: ''
robots: index
next:
description: Return to the New Methods Overview Page to see other available methods.
pages:
- type: endpoint
slug: smart-cart-methods
title: Methods Overview - New
---
<dl>
<dt><a href="#SmartCart.getLoginLabel">SmartCart.getLoginLabel</a> ⇒ <code>string</code></dt>
<dd><p>Get the login button text from the current SmartCart instance</p></dd>
<dt><a href="#SmartCart.getLoginUrl">SmartCart.getLoginUrl</a> ⇒ <code>string</code></dt>
<dd><p>Get the login button URL from the current SmartCart instance</p></dd>
<dt><a href="#SmartCart.shouldRenderLoginComponent">SmartCart.shouldRenderLoginComponent</a> ⇒ <code>boolean</code></dt>
<dd><p>Check if the login component should be rendered</p></dd>
</dl>
<a name="SmartCart.getLoginLabel"></a>
## `SmartCart.getLoginLabel` ⇒ <code>string</code>
Get the login button text from the current SmartCart instance
**Returns**: <code>string</code> - The login button text
<a name="SmartCart.getLoginUrl"></a>
## `SmartCart.getLoginUrl` ⇒ <code>string</code>
Get the login button URL from the current SmartCart instance
**Returns**: <code>string</code> - The login button URL
<a name="SmartCart.shouldRenderLoginComponent"></a>
## `SmartCart.shouldRenderLoginComponent` ⇒ <code>boolean</code>
Check if the login component should be rendered
**Returns**: <code>boolean</code> - True if the login component should be rendered