magento-1.9

Make Magento 1.9 product filter collapsible

﹥>﹥吖頭↗ 提交于 2021-02-10 08:28:38
问题 I'm trying to make the product filter for a magento shop collapsible. I tried editing the view.phtml in template/category/layer/view.phtml But it's not working. I Edited these lines: <dt><?php echo $this->__($_filter->getName()) ?></dt> to <dt><a href="/"><?php echo $this->__($_filter->getName()) ?></a></dt> and i added some jquery like this: <script type="text/javascript"> /* <![CDATA[ */ jQuery(document).ready(function(){ jQuery("dl#narrow-by-list> dd:not(:first)").hide(); jQuery("dl#narrow

How to Override /sales/order/items/renderer/default.phtml under Customer Sales Order View Section in magento 1.9?

你说的曾经没有我的故事 提交于 2020-02-07 02:01:09
问题 I want to Override /sales/order/items/renderer/default.phtml under Customer Sales Order View Section (My Account Page) from my custom module. I have created following 3 files. /app/code/local/Revered/Expdlvrydate/etc/config.xml <config> <modules> <Revered_Expdlvrydate> <version>0.1.0</version> </Revered_Expdlvrydate> </modules> <frontend> <layout> <updates> <revered> <file>revered.xml</file> </revered> </updates> </layout> </frontend> </config> /app/design/frontend/base/default/layout/revered

Magnento module file upload not working

萝らか妹 提交于 2020-01-17 06:09:10
问题 have a Magento module that takes an input and creates a new item off that input. Everything works fine, and I wanted to add a field that would input an image with the item. I made sure to add the corresponding database column, and made sure to make the change every where it would be needed, but when i upload an image through the new input the image field does not send in my post data. I still get an object with all the fields and values from my form but the File field is always omitted. Using

How to upgrade Magento from 1.7 to 1.9

余生长醉 提交于 2020-01-15 12:13:25
问题 I need to upgrade my magento store form 1.7 to 1.9. I am very new to magento, I was just wondering what is the easiest way to upgrade without breaking my website. Thank you 回答1: Upgrade Roadmap for CE 1.9.0.1 from 1.7 take a backup of current database and current 1.7 code. download latest magento from the http://www.magentocommerce.com/download remove all folders and files from your 1.7 code (but you should have backup somewhere) and place all folders and files from the 1.9. now from your 1.7

How to upgrade Magento from 1.7 to 1.9

风流意气都作罢 提交于 2020-01-15 12:13:23
问题 I need to upgrade my magento store form 1.7 to 1.9. I am very new to magento, I was just wondering what is the easiest way to upgrade without breaking my website. Thank you 回答1: Upgrade Roadmap for CE 1.9.0.1 from 1.7 take a backup of current database and current 1.7 code. download latest magento from the http://www.magentocommerce.com/download remove all folders and files from your 1.7 code (but you should have backup somewhere) and place all folders and files from the 1.9. now from your 1.7

Session Variable outside magento

假如想象 提交于 2020-01-06 09:38:23
问题 I have to read a $_SESSION['name'] in a file outside magento or better is in /magento/folder. I tried any solution without good result. Example Mage::getSingleton('core/session')->setUName($_SESSION['username']); In external file use this code: require_once("../app/Mage.php"); umask(0); Mage::app(); error_reporting(E_ALL | E_STRICT); ini_set('display_errors', 1); Mage::init(); $_SESSION['username'] = Mage::getSingleton('core/session')->getUName(); Result??? Variable empty.... I'm crazying

Session Variable outside magento

吃可爱长大的小学妹 提交于 2020-01-06 09:38:12
问题 I have to read a $_SESSION['name'] in a file outside magento or better is in /magento/folder. I tried any solution without good result. Example Mage::getSingleton('core/session')->setUName($_SESSION['username']); In external file use this code: require_once("../app/Mage.php"); umask(0); Mage::app(); error_reporting(E_ALL | E_STRICT); ini_set('display_errors', 1); Mage::init(); $_SESSION['username'] = Mage::getSingleton('core/session')->getUName(); Result??? Variable empty.... I'm crazying

Get users of a particular role in magento

北城余情 提交于 2020-01-06 02:03:30
问题 Is there any way to get users of a particular role (say staff) in Magento? I tried with this $roles_users = Mage::getResourceModel('admin/roles_user_collection'); But dont know how to add filter for a particular role. thanks in advance 回答1: If you look carefully at how magento stores admin roles and users, you would understand this better. Say you create a role staff , magento stores this role in the admin_role table. When you create a new user, the user data is stored in the admin_user table