Overview of open page options
This method allows you to open a specific page on the storefront. The function accepts page slugs and additional parameters in its arguments.
For example, you can use these redirects in different promo activities:
Create a popup with a sale product and redirect customers to this product on click.
Offer customers to log in to receive some bonus.
Redirect customers to the search page with pre-configured terms showing promo products.
Code examples:
Create a custom cart icon and assign redirect to the cart page with a single line of code executed on the click:
Ecwid.openPage('cart')Promote a specific product type and brand with a pre-configured search:
Ecwid.openPage(
'search',
{
'keyword': 'shoes',
'attribute_Brand': 'Nike',
'inventory': 'instock'
}
);Full list of available pages
'product'- Product page. Additional params allow you to pre-select options or even variations.'category'- Page of a specific category.'search'- Search products page. Additional params allow you to make preconfigured search links.'cart'- Checkout step 1. Customers enter their email and apply discount coupons.'checkout/address'- Checkout step 2. Customers enter their address.'checkout/shipping'- Checkout step 3. Customers choose shipping/pickup method.'checkout/payment'- Checkout step 4. Customers choose a payment method and go to the payment page.'checkout/order-confirmation'- "Thank you for purchase" page customers see after placing an order.'account'- Customer's account page.'account/address-book'- Customer's account page (saved shipping addresses).'account/favorites'- Customer's account page (products added to favorites).'account/subscription'- Customer subscriptions' page (active and ended subscription products purchased by the customer).'pages/about'- Legal page (about the store).'pages/shipping-payment'- Legal page (shipping/payment policies).'pages/returns'- Legal page (return policy).'pages/terms'- Legal page (Terms of use).'pages/privacy-policy'- Legal page (Cookie/Privacy policies).
Learn more about pages that can be opened with additional params:
Open product pages with paramsOpen category pages with paramsOpen search page with paramsOpen account pages with paramsLast updated
Was this helpful?
