magento-1.x

Magento: Merge Product Description and Addition Information Tab

点点圈 提交于 2019-12-18 03:49:25
问题 I am using Modern theme which separates all information into tabs. I want to merge some of the tabs as visitors hate clicking. Spent hours searching but can't fine one that actually works. Here is example of what I want to achieve. http://www.teasta.com/chocolate-mint-rooibos-herbal-tea-4oz-tin.html You can see description appears just above the Additional information (attributes) How do I do this in Magento 1.7.0? Thanks. 回答1: For Remove Additional Information Tab comment following code from

Magento: Merge Product Description and Addition Information Tab

偶尔善良 提交于 2019-12-18 03:49:07
问题 I am using Modern theme which separates all information into tabs. I want to merge some of the tabs as visitors hate clicking. Spent hours searching but can't fine one that actually works. Here is example of what I want to achieve. http://www.teasta.com/chocolate-mint-rooibos-herbal-tea-4oz-tin.html You can see description appears just above the Additional information (attributes) How do I do this in Magento 1.7.0? Thanks. 回答1: For Remove Additional Information Tab comment following code from

Magento :: Translate text from javascript files

送分小仙女□ 提交于 2019-12-04 10:48:51
问题 Magento uses a system for translating text in the template files using: $this->__('text to be translated.'); or Mage::helper('modulename')->__('text to be translated.'); . This works quite well. But when I add text to a javascript file I can't use these two methods. Is there a way I could do a similar thing with the translations for javascript files? 回答1: You can do it in a template file yourfile.phtml. The javascript script js/mage/translate.js must be included in your html header (Magento

Magento Request - Frontend or Backend?

江枫思渺然 提交于 2019-11-30 04:42:53
How can I tell if the current request is for a backend or frontend page? This check will be done inside an observer, so I do have access to the request object if that helps. I considered checking Mage::getSingleton('admin/session')->getUser() but I don't think that's a very reliable method. I'm hoping for a better solution. This is one of those areas where there's no good answer. Magento itself doesn't provide an explicit method/API for this information, so with any solution you'll need to examine the environment and infer things. I was using Mage::app()->getStore()->isAdmin() for a while, but

Magento Request - Frontend or Backend?

谁都会走 提交于 2019-11-29 02:04:31
问题 How can I tell if the current request is for a backend or frontend page? This check will be done inside an observer, so I do have access to the request object if that helps. I considered checking Mage::getSingleton('admin/session')->getUser() but I don't think that's a very reliable method. I'm hoping for a better solution. 回答1: This is one of those areas where there's no good answer. Magento itself doesn't provide an explicit method/API for this information, so with any solution you'll need

How to add/include js file into Magento theme

给你一囗甜甜゛ 提交于 2019-11-27 14:01:12
问题 I am modifying a Magento theme. And want to add a js file into the theme /js folder. I have added the following code: <action method="addItem"><type>skin_js</type><name>js/custom-script.js</name></action> into the /app/design/frontend/theme-name/default/layout/page.xml and published the js file into /skin/frontend/theme-name/default/js/ . But no luck. It is not showing on the page. Someone please help me to rectify this. Thanks. 回答1: Try adding the following to your layout .xml file within