Irsah inDesigns Blog

Irsah inDesigns Blog

Premade Blogger shopping cart theme & template premium free themes ready download curated by slightly bizarre Blog designs & small business development info studio based in KL.

Indian Rupee Currency Setting for BlogrCart E-Commerce Blogger Template

Learn how to AMP'd your blog with valid AMP HTML Blogger theme framework. Visit Blogr-AMP Theme and AMPaction Theme. No 3rd party application. Compatible with published posts. Quick in search & on any devices.
Another useful tutorial for Blogger e-commerce packed template using shopping cart functionalities & custom currency settings. The download, tutorial & demo links to the Blogger template which uses this functions can be located below.

BlogrCart White & BlogrCart Plus uses simplecartjs, a lightweight javascript shopping cart library plug-in to incorporate the shopping cart functionalities for your e-commerce blog. This plug-in is versatile & easy to use with only basic HTML knowledge is required developed by Wojo Design Group and licensed under the MIT licensed.

Add Indian Rupee currency setting for blogger shopping cart template


Indian Rupee Shopping Cart Currency Settings Tutorial 

In your BlogrCart Blogger template, find these codes below.

<script>
simpleCart.currency({ 
code: "RM" , 
name: "Malaysia Ringgit" ,;
symbol: "RM " , <
delimiter: "," , 
decimal: "." , 
after: false , 
accuracy: 2
});
</script>


The initial set-up outputs Ringgit Malaysia and RM as its symbol. To customize the BlogrCart e-commerce template for Blogger currency settings to Indian Rupee, REPLACE above codes to below:-

<script>
simpleCart.currency({ 
code: "INR" , 
name: "Indian Rupee" , 
symbol: "&#8377;" , 
delimiter: "," , 
decimal: "." , 
after: false , 
accuracy: 2 
});
</script>

Here is an explanation on how it works & integrated with the built-in shopping cart plug-in:-

simpleCart.currency({ 

Calls the currency function built in the Blogger template plug-in library. It tells the plug-in library you require a custom currency for your Blogger template with shopping cart integration.

code: "INR", 

Code tells the plug-in that you want to use INR (ISO currency code) as your custom currency code. Use only international currency codes which you can grab from "Google-ing". Re-check with the currency codes used at for Paypal  availability.

name: "Indian Rupee" ,

Now you are telling the shopping cart to save the name as "India Rupee". this will be useful as most on-line payment processors requires the name of your currency to include with. The shopping cart plug-in has already included this feature to ease on customizations which most payment processors requires this.

symbol: "&#8377;" ,

This will be the symbol used & displayed at your Blogger template using the e-commerce features. The above is using the HTML decimal code. You can also use valid HTML hex codes for India Ruppee currency symbol to display like so " &#x20b9; ". Note that this will only be displayed at your store and not used to configure the settings at your payment processor end.
 
For instance to display the dollar sign (aka symbol), add this code in between the quotes -
 
&#36; - using HTML decimal
or 
&#x24; - using HTML Hex

Find more HTML hex & decimal codes for your currency preference, which is valid to use (and display properly) on most browsers http://www.fileformat.info/

delimiter: "," ,

Adding the "comma" in between the delimiter quotes tells the plug-in to insert a comma after the amount counts of thousand. For instance - ₹ 2000.00, if it is set will now look like so - ₹   2,000.00


decimal: "." ,

Add a decimal after the trailing cents amount from your cart. Here's an example ₹   2,000,000.00

after: false ,

Changing this code to true, your currency symbol will be added AFTER the amount total in cart. An example will look like so - 2,000,000.00 ₹


accuracy: 2

This will allow you to configure the maximum accuracy amount calculated in your cart. For the above settings, the cart will calculate with a trailing .00 (2 digits) accuracy.

});

Closes the custom currency functions for the shopping cart plug-in library.

We hope that this tutorial explains the use on how to customize your shopping cart currency & to ease your customizations for your e-commerce featured Blogger template. Changes here will reflect at your Blogger template automatically.

More custom Blogger shopping cart settings is shared RIGHT HERE! Use the search bar (above) or navigate to our drop down tutorial links to find out more.
New shopping cart widget for Blogger blogs -- transform your blog & sell products using your blog posts instantly! Visit Add Shopping Cart Widget Page to learn more.



Interesting Related to this Topic at Irsah inDesigns Blog

DISQUS With Us!