How do I create a link to a specific page

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


Link to direct others towards your Wazala domain:

Also you can link to pages via direct links from other domains or websites to your profile store page (storename.wazala.com):

Open shopping cart:
yourstorename.wazala.com/?page=cart

Open favorites page:
yourstorename.wazala.com/?page=favorites

Open contact page:
yourstorename.wazala.com/?page=contact

Open to specific product:
yourstorename.wazala.com/?page=product_det&id=280 where 280 is the id of the product

Open to a specific custom page:
yourstorename.wazala.com/?page=custom&pagename=pagename

* Product ID can be found by signing into your Wazala account. Go to products, then select that specific product and click on the product to edit. In the URL bar of your browser you will notice a number at the end of the URL. This is that items specific 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";

Back to Wazala Online Store API