Rupee symbol not rendering properly on invoice pdf in magento - magento

Rupee currency symbol not rendering properly in my invoice pdf.. It shows tags like this **₹**. Please someone help me out this issue.

You could try changing the font of the invoice. That can be done by making local versions of these files:
app/code/core/Mage/Sales/Model/Order/Pdf/Items/Abstract.php
app/code/core/Mage/Sales/Model/Order/Pdf/Abstract.php
Put them to:
app/code/local/Mage/Sales/Model/Order/Pdf/Items/Abstract.php
app/code/local/Mage/Sales/Model/Order/Pdf/Abstract.php
Then edit functions _setFontRegular, _setFontBold and _setFontItalic.
$font = Zend_Pdf_Font::fontWithPath(Mage::getBaseDir(). /lib/LinLibertineFont/**yourfont**.ttf);
Also you have to put yout TTF font file to the lib/LiLibertineFont folder. You could try font like DejaVuSans. That worked for Nigerian Naira currency at least.

the solution for this problem is very simple
just click on system --> Magnage currency -->symbols --> Copy your symbol like in my case "₹" and save...
My pdf problem solved with this :)
Hope this help

Related

Magento: change link from cart

I have Magento 1.7 installed, I have this theme called ves_gift, at the end of the Checkout (before clicking "checkout" actually) I have the terms of agreement:
The checkbox contains a link connected to the "privacy terms".
The point is that is a wrong/broken link, and I need to change its href, how do I fix it?
Also the word "Aaccetto" should be with one A only, not double. "Accetto" is the right word. Where is the translation file for that?
You need to find the template where the HTML contents of the checkbox. Then you can modify as per your wish.
Try installing Magento-Debug from magentocommerce, and find the template being used.
If you want to translate, then use the CSV file for translation in your theme, as per your language rather than hard-coding in Phtml files.
Remmeber : only Html strings echoed with $this->__('MYSAMPLETEXT'); can only be translated. So, in the CSV file you could do
MYSAMPLETEXT,MYTRANSLATEDTEXT
and then magento will translate the string for you, as simple as that.
file path:-
app\design\frontend\default\your-theme\template\checkout\onepage\agreements.phtml
if its work vote for me, and not let me know...
Thanks
Ravi

I want to add Text below Currency Select Box Magento, how do I do it?

I have a currency select box on my magento install. It is located exactly where I want it and all is good.
However I want to add a piece of text below the drop down select box just telling people that they will be charged in NZD.
Problem is I have edited app\design\frontend\base\default\template\directory\currency.phtml but no changes happen on the front end.
I have even changed __('Select Your Currency') ?> to __('HEY') ?> Just to see would it work and nothing, it didn't change the header of the box at all.
Please help, what am I doing wrong, am I am idiot?
Thanks in advance.
Hii Instead of using base theme try changing in your current working theme it will reflect
For ex:-
\app\design\frontend\yourtheme\yourtheme\template\directory\currency.phtml
Thanks...
Are you modifying base theme for all your template requirement.This is not Magento standard practice.
Switch on Hints and check the block and html involved. Modify that .phtml ot write some code in associated block file and call that block function from your .phtml

Magento edit shopping cart title in header

I have a Magento webshop and in my header is standing: Shopping cart - Subtotaal winkelwagen
I was looking for a way to edit this text. I have looked into the .php files etc. but i didn't found anything there so far. I hope someone can tell me where i can edit this text.
The best way is as erwin_smit described it.
As an addition the fastest solution is by using the inline translation Tool under
System->Configuration->Developer->Inline Translation
After activation reload your Front-end and edit the dotted text.
That's probably somewhere in app/design/frontend/packagename/templatename/checkout/cart.
If not, try to switch on the template hints on.
You can also replace text using a translate file. Place a file called "translate.csv" in app/design/frontend/{packagename}/{templatename/locale/{languagecode}/
Hope this helps.

resize default magento 1.7 product image

I have tried everything I could to change the default product size of magento please any help?
I need this to be bigger http://officeresourcegroup.com/new/desks/dmi/dmi-andover-series.html
You need to edit media.phtml in your theme. There is a resize call that makes the images 265x265.
here is a path for the file in base package, please exchange with your theme directories:
/app/design/frontend/base/default/template/catalog/product/view/media.phtml
look for the line:
$this->helper('catalog/image')->init($_product, 'image')->resize(265)
You need change this: $this->helper('catalog/image')->init($_product, 'image')->resize(265);
I think you are using an external module for the Zoom image, correct? Soon you should change the media.phtml this module. Look in the app/design/frontend/default/default/template/(extension-folder-zoom)/media.phtml or app/design/frontend/base/default/template/(extension-folder)/media.phtml. Note that (extension-folder) is the module name that you used.
Should you not find anyway, maybe the html is generated in the controller module, but usually not this way.
Another way to figure out which file you should use is the option to debug screens. Watch this video and will not doubt how:
http://www.youtube.com/watch?v=E4GLjYHaJig

How to change rupee symbol

Hiii
I am using magento 1.4,I want to change indian currency symbol Rs with new rupee symbol on frontend as well as backend.
Anyone Can tell me about this???
If I'm not wrong the symbol definitions can be found into
lib/Zend/Locale/Data/characters.xml
lib/Zend/Locale/Data/root.xml
If you change those values then copy those files to your local code-pool
app/code/local/Zend/Locale/Data/characters.xml
app/code/local/Zend/Locale/Data/root.xml
when done don't forget to clear cache
rm -rf var/cache/*
Navigate to your magento root directory and open lib/Zend/Locale/Data/root.xml
after that add the symbol = amp#8377;(& for amp) or amp#x20B9;(& for amp) in the following block
<currency type="INR">
<symbol> ₹ </symbol>
</currency>
For magento 2.2.5 version, to display rupees symbol, add Roboto font family
and update font-family in css file
https://fonts.google.com/specimen/Roboto?selection.family=Roboto
<style>
#font-face{font-family:'Roboto';src:url(path_of_font/roboto-regular-webfont.woff) format('woff'),url(path_of_font/roboto-regular-webfont.ttf) format('truetype');}
body{color:#333;font-family:'Open Sans','Helvetica Neue','Helvetica','Roboto';font-style:normal;font-weight:400;line-height:1.42857143;font-size:1.4rem}
</style>
<symbol>₹</symbol>
Login to your magento admin panel and follow the below steps
1.System->Configuration->Currency setup
in Currency options tap change all the fields to indian rupee, but the 'Base Currency' is important to change
2.Save the changes
3.Again go to System->Manage Currency->Symbols
in that window shows the default rupee symbols, you just type &#8377 (and put semicolon ; at end) in the Symbol column and uncheck the 'use default' at last and save the changes.
Now go to your user page it will show the rupee symbol. It will work for me in magento 1.9

Resources