LogoLogo
Build appsContact API support
Storefronts
  • Build apps
  • Site Templates
  • API Reference
  • Changelog
Storefronts
  • Ecwid storefronts overview
  • Get started
    • Storefront customization options
    • Quickstart: customize storefront with Ecwid JS API
  • Track Storefront events
    • "Page is loaded" events
    • "Customer logged in" event
    • "Cart details are changed" event
    • "New order is placed" event
    • "Instant Site section load" events
  • Get Storefront details
    • Get Ecwid store ID
    • Get storefront language and currency
    • Get visitor location
    • Get public app details
  • Manage customers on the storefront
    • Get logged in customer's details
    • Manage customer's cookie consent
    • Log out customer
  • Open page on the storefront
    • Overview of open page options
    • Open product pages with params
    • Open category pages with params
    • Open search page with params
    • Open account pages with params
  • Manage cart and checkout
    • Get cart details
    • Add product to the cart
    • Remove product from the cart
    • Fully clear the cart
    • Create pre-filled shopping carts
    • Calculate cart details
    • Send customer to the checkout
    • Set customer's email for the checkout
    • Set customer's comments for order
    • Set customer's shipping and billing addresses
    • Set custom order referer
  • Store configuration settings
    • Overview
    • Behavioral configs
    • Design configs

Lightspeed® 2025

On this page

Was this helpful?

  1. Open page on the storefront

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

  • '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).

  • '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).

Some pages can be opened with additional params. Check them out:

Last updated 2 months ago

Was this helpful?