Linking To A Specific Page In The Widget

From within your own site:


You can link to a specific page using JavaScript calls if you are linking from within your own site and already have the store code configured.

Simply apply the following calls  to any button, image or item within your site, making sure that the store widget code is already placed within that page prior to this.

wazala_widget.show(); accept a parameter for the default page

for example wazala_widget.viewcart(); is a alias for wazala_widget.show("cart");

And here is what the code should look like, in HTML form for opening the contact us page for example.

<a href="javascript:;" onclick="wazala_widget.show('contact');">Contact US</a>


available pages:

Open shopping cart:
wazala_widget.show('cart');

Open favorites page:
wazala_widget.show('favorites');

Open contact page:
wazala_widget.show('contact');

Open to specific product:
wazala_widget.show('product_det:280');
Where 280 is an example of the product ID. To find your product ID see below.*

Open to specific category:
wazala_widget.show('category:category name');

Open to specific search term:
wazala_widget.show('search:search term');

Open to a specific custom page:
wazala_widget.show('custom:page title');

-------------------------------------------------------------------------------------------------------

Link to direct others towards your own domain:

Also you can link to pages via direct links from other domains or sources to your own website where you have added the store.

Open store home
www.yourdomain.com/?openstorepage=home

Open shopping cart:
www.yourdomain.com/?openstorepage=cart

Open favorites page:
www.yourdomain.com/?openstorepage=favorites

Open contact page:
www.yourdomain.com/?openstorepage=contact

Open to specific product:
www.yourdomain.com/?openstorepage=product_det:280
Where 280 is an example of the product ID. To find your product ID see below.*

Open to specific category:
www.yourdomain.com/?openstorepage=category:category name

Open to specific search term:
www.yourdomain.com/?openstorepage=search:search term

Open to a specific custom page:
www.yourdomain.com/?openstorepage=custom:pagename

-------------------------------------------------------------------------------------------------------

*Product ID can be found by signing into your Wazala account. Go to MANAGER >> PRODUCTS, then select that specific product and in the preview window you will find the product ID.

-------------------------------------------------------------------------------------------------------

Open embedded store to a specific category or page

You can also set the default page for an embedded store to open by altering the Wazala widget code you placed on that page with this:

store_widget_options.defaultPage = " .... ";

for example:

store_widget_options.defaultPage = "cart";

store_widget_options.defaultPage = "favorites";

 

An example of this code to open to a category name is:

<!-- Begin Wazala Code -->

<script type="text/javascript" charset="utf-8"><!--

var is_ssl = ("https:" == document.location.protocol);

var setsHost = is_ssl ? "https://www.wazala.com/widget/"; : "http://www.wazala.com/widget/";

document.write("<"+"script src='" + setsHost + "js/widget_over.js?v=1&amp;rnd="+new Date().getTime()+"' type='text/javascript'" + "><" + "/script" + ">");

//--></script>

<script type="text/javascript" charset="utf-8">

var store_widget_options = {};

store_widget_options.ver = 1;

store_widget_options.display = "embed";

store_widget_options.nickname = "Yourownstorename";

store_widget_options.defaultPage = "category:category name";

store_widget_options.lang = "en";

store_widget_options.wazalaURL = setsHost;

var store_widget = new WazalaWidget.widget(store_widget_options);

</script>

<!-- End Wazala Code -->

 

Make sure you are using your own store name here:

store_widget_options.nickname = "Yourownstorename";

And make sure you state the category name here:

store_widget_options.defaultPage = "category:category name";

 

Was this article helpful?
9 out of 10 found this helpful
Have more questions? Submit a request