Search...
setAddToCartLabel( )
Sets the Add To Cart button's label.
Description
This function is currently only available for Wix Studio sites.
The setAddToCartLabel()
function returns a Promise that is resolved when the Add To Cart button's label is set.
Syntax
function setAddToCartLabel(label: string): Promise<void>
setAddToCartLabel Parameters
NAME
TYPE
DESCRIPTION
label
string
A string representing the Add To Cart button's new label.
Returns
Fulfilled - When the Add To Cart button's label is set.
Return Type:
Promise<void>
Was this helpful?
Set the Add To Cart button's label
Copy Code
1$w('#myProductPage').setAddToCartLabel('Add To My Beautiful Cart');