How to change Indian rupees currency in Magento 1.9.2? - magento-1.9

How to change Indian rupees currency in Magento 1.9.2?
I want Indian currency for my website in magento but coming not any idea for this.

First GOTO
Admin->System->Configuration->Currency Setup-> Change Indian Rupee Next Goto
Go to lib\Zend\Locale\Data\root.xml line no 3550
Find
<currency type="INR">
<symbol>₹</symbol>
<symbol alt="narrow">₹</symbol>
</currency>
to Replace below code
<currency type="INR">
<symbol>र</symbol>
<symbol alt="narrow">र</symbol>
</currency>

Related

Loading html data in Web View?

<p>kick 2 first look on republic day According to the latest update, the first look of the film Kick 2 will be released on 26th of January. Regular shooting of this film is going on at a brisk pace in Hyderabad. Rakul Preet is playing the female lead in this film and Thaman is scoring ...</p>
<p>The post <a rel="nofollow" href="http://www.teluguabroad.com/kick-2-first-look-republic-day/">kick 2 first look on republic day</a> appeared first on <a rel="nofollow" href="http://www.teluguabroad.com">Teluguabroad</a>.</p>
how to display this in web view and i was getting it from rss feed? to display that content in the next view controller having web view?
You need to set up a html string and then you can load this on web view.
NSString *rssString=[NSString stringWithFormat:#"<p>kick 2 first look on republic day According to the latest update, the first look of the film Kick 2 will be released on 26th of January. Regular shooting of this film is going on at a brisk pace in Hyderabad. Rakul Preet is playing the female lead in this film and Thaman is scoring ...</p><p>The post <a rel=\"nofollow\" href=\"http://www.teluguabroad.com/kick-2-first-look-republic-day/\">kick 2 first look on republic day</a> appeared first on <a rel=\"nofollow\" href=\"http://www.teluguabroad.com\">Teluguabroad</a>.</p>"];
NSString *myHTML = [NSString stringWithFormat:#"<html><body>%#</body></html>",rssString];
[myUIWebView loadHTMLString:myHTML baseURL:nil];
Also notice that for every double quotes " used in NSString we have appended a single slash'\'. So that Xcode compiler can understand that these double quotes are a part of string and will not confuse NSString with #" " identifier which we use in Xcode.
And in case you need to load this to next view controller, you can send the string myHTMl to next view controller using property and load on web view .

how to display data in html

In my project, I am retrieving an address from the database and displaying this address on page. The issue or problem that I am facing is the the way the retrieved address is being displayed.
Basically this is the way the address is being displayed:
Address: 1 Kings Street Kilmarnock East Berkshire Scotland KA1 UIT
I would like the address to be displayed like so:
Address: 1 Kings Street
Kilmarnock
East Berkshire
Scotland
KA1 UIT
How can I do this in HTML or css? I am currently using twitter bootstrap , and I don't if there is anyway to do using it.
Oh.. It's hard but let me try... ;)
<div>Address: 1 Kings Street<br> Kilmarnock <br>East Berkshire<br> Scotland <br>KA1 UIT</div>
Your Expected Output:
Address: 1 Kings Street
Kilmarnock
East Berkshire
Scotland
KA1 UIT
Working Demo
Note: This is just simplest and basic way.. But if Data is coming from any database dynamically then at-least you should explain in details from where it comes and by which object it can be accessible.. Then you can apply JS or regex functions... I hope you understand what I mean..
If you edited the data in your database, and used a comma between each line, you might be able to split the data. (your question doesn't state what language you are writing in (mvc/how data is being received).
However, once you have the string, you can use the String.split method (available in most languages), and hence could adapt your view accordingly.
So,
Address: 1 Kings Street, Kilmarnock, East Berkshire, Scotland, KA1 UIT
would become
{1 Kings Street}{ Kilmarnock}{ East Berkshire}{ Scotland}{ KA1 UIT}
which you could then do a foreach block, displaying them onto the screen as you requested
A possible alternative (although probably not easy), would be to extract the postcode, and call a google maps API call to receive the address - but again, this would be quite difficult.
At present, I cannot see how you would be able to expect a program to decide where to split the address into separate lines (unless you place them into different fields which was described in the comments).
You can add <p> to each line, or put <br> at the end of each lines.
But
If your retrieving the data from a database through a php variable you cannot do that with pure html / css, you'll need string manipulation with PHP.

UITextView: Replace Special Characters [duplicate]

in xml data is
<content_special>
SAT 17TH TEST test club cheap drinks £3 shots £5 bottles $beers
</content_special>
i get this string using this code
TBXMLElement *Content_Special=[TBXML childElementNamed:#"content_special" parentElement:Club];
NSString *Content_SpecialStr = [TBXML textForElement:Content_Special];
when i NSLog(#"Content_special:%#",Content_SpecialStr);
that print like this
Content_special:SAT 17TH TEST
test club
cheap drinks
£3 shots
£5 bottles
$beers
how can i get original sting which Display in Xlm ? Any suggestion...
Found Solution Using Google Toolbox for Mac GTMNSString+HTML.h ,GTMNSString+HTML.m And GTMDefines.h,
First #import "GTMNSString+HTML.h"
use like This: Content_SpecialStr = [Content_SpecialStr gtm_stringByUnescapingFromHTML];
Ensure your data xml file has utf-8 encoding http://www.w3schools.com/xml/xml_encoding.asp

How to set selected value when using g:select in grails

I'm newbie with Grails framwork.
I have issue:
I have Domain is: "Country". And I wants to show list country in select tag by using g:select in Grails
For example: The data store in database can see below
ID Name
1 England
2 Canada
3 Germany
Now, I wants set "Canada" is selected.
Who can help me. Please!
Use the value attribute to set the selected item:
<g:select name="user.company.id"
from="${Company.list()}"
value="${user?.company.id}"
optionKey="id" />
Why not use g:countrySelect tag? This will save One whole Domain.
Use the select tag structure provided by mpccolorado, then to have Canada selected by default change the value to:
value="2"
(the Id for Canada).

How to highlight search string in HTML

I'm using CGI script to create a Telephone Directory(Web based):If I give "ashok" the results will be as shown below.But I want to highlight the string "ashok" in the results(In the HTML page).How Can I do that?
NAME PHONE No. CITY STATE ADDRESS
Ashok 0956-253545 Gangtok Sikim H.no:A-22/54,lalnagar near kurji road,PIN::600033
Ashok Singh 0992-765876 punjab Punjab H.no:B-33/7,yerrakonda,ambedkar road,Pin:800234
Ashok Singh Sai 0452-764876 Gorakhpur Sikim H.no:B-23/7,konda,Bapuji road,Pin:4500234
Well it depends how you have the data laid out. If you have it as a table, set the cell's background colour, if not wrap the text to be highlighted in a <span> and set the background colour on that. It will give an impression like Google's cached pages highlight search terms.
<span style="background-color: #0dd;">Ashok</span>