开发者

Change wording "Special Price" & "Regular Price" in Magento

I am trying to change the wording "Special Price" and "Regular Price" in Magento. I've already tried editing the Mage_Catalogue.csv, reuploading and clearing the cache to no avail. I've also done a giant Dreamweaver search within the entire site for the text "Regular" and "Special" and haven't found anything.

I can only conclude that this may be h开发者_运维百科idden somewhere deep in one of 200 DB tables...

If anybody knows where I might be able to change these values I'd be forever grateful.

Thank you

Jack


Please go to Admin >> Catalog >> Attributes , then find a attribute code special_price. Edit this attribute, click to tab : Manage Label and Option , at here You can change text of special_price for each store view.


app/design/frontend/default/default/template/catalog/product/price.phtml

This is the file that controls the prices. You'll find the Special and Regular there. There are a few more files in the Product/View folder - price.phtml, price_clone.phtml, tierprices.phtml

Read through them. Magento uses a different price type for each type of product (Simple, Config, Group, etc)

Hope this helps.


You can also use the locale/internationalisation stuff.

A handy tool is the inline translater - this can be turned on via System -> Configuration -> Developer -> Translate Inline. You can then update text by clicking on it.


Other choice, you can modify our price.phml with :

search: $_specialPriceStoreLabel = $this->getProductAttribute('special_price')->getStoreLabel();

replace with:

$_specialPriceStoreLabel = $this->__($this->getProductAttribute('special_price')->getStoreLabel());


Depending on your tax settings, you might also need to change:

<?php echo $_specialPriceStoreLabel ?>

into

<?php echo $this->__('Special Price:') ?>

in order for the CSV translation file approach to work.


In your theme directory (ex: app/design/frontend/[theme]/default you can add a directory called locale and then make a translate.csv file. In column A of the CSV put Special Price: and column B the update that you want made ex:

Special Price:,Sale Price:

This is probably the better way to do it over the above comment from Sid Vel as this is specific to your theme and will not ruin anything when upgrading as you are not editing a core file.


There is an extension Called PHProTranslate from PHPPro.be found in Magento Connect

http://www.magentocommerce.com/magento-connect/phpro-translate.html

This extension allows you to search for, and modify EVERYTHING front and back end.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜