Setting a default product for a page

Last updated

By default the customers who open your store for the first time see the Store Front page. There they see the categories of the first level and your featured products – the ones that are added to the Store Front Category.

You may want to change this behaviour and display some other category or product to customers who open your storefront for the first time. 

You can specify the default product in the integration code. When customers open the store page with such code, they will see the product details page. The code will look like this:

<div> <script type='text/javascript'
src='https://app.ecwid.com/script.js?STOREID'></script> 
<script type='text/javascript'> 
xProductBrowser("defaultProductId=123456");</script>
</div>

123456 in this code is the ID of the product that will open by default. Check the guide on how to get the ID of your product or category. Remember to enter your store ID instead of STOREID.

Back to top
Has the article answered your question?

Awesome! Thanks for your feedback!

Please send us that question. We will be happy to help by email.

Send a message