magento-1.9

Can't compile rwd skin SCSS in Magento CE 1.9

元气小坏坏 提交于 2019-12-03 12:25:42
问题 I am attempting to create a Magento skin based off of the rwd skin provided in CE 1.9 / EE 1.14. However when I attempt to compile the SCSS (on a clean install, after deleting the files in /skin/frontend/rwd/default/css ), I get the following error: $ compass compile scss write css/madisonisland-ie8.css write css/madisonisland.css write css/scaffold-forms.css error scss/styles-ie8.scss (Line 541 of scss/core/_common.scss: Invalid CSS after "a:not(": expected ")", was "".button")") Sass:

Magento: Display sub-category list

人盡茶涼 提交于 2019-12-03 10:17:04
问题 I'm building a Magento store and want to be able to display a list of categories and have each category link to its own page. I have a 'Brands' category with an ID of 42 and I want to display a list of the sub-categories and ensure that each one links to the designated URL key in the CMS. Has anyone had experience of doing this with Magento? 回答1: If you're comfortable editing your theme, this code snippet will bring you a list of all sub-categories of the current category (from the session,

Can't compile rwd skin SCSS in Magento CE 1.9

你离开我真会死。 提交于 2019-12-03 03:43:13
I am attempting to create a Magento skin based off of the rwd skin provided in CE 1.9 / EE 1.14. However when I attempt to compile the SCSS (on a clean install, after deleting the files in /skin/frontend/rwd/default/css ), I get the following error: $ compass compile scss write css/madisonisland-ie8.css write css/madisonisland.css write css/scaffold-forms.css error scss/styles-ie8.scss (Line 541 of scss/core/_common.scss: Invalid CSS after "a:not(": expected ")", was "".button")") Sass::SyntaxError on line ["541"] of /var/www/development/magento-mirror/skin/frontend/rwd/default/scss/core/

Uninstall Magento custom extension with its database

时光毁灭记忆、已成空白 提交于 2019-12-02 20:06:51
问题 I have created an extension and created zip file of extension so that I can install it through Magento Connect. When I uninstall my custom extension using Magento Connect it will only delete my extension files and folders but database tables of my extension are not deleted. I also want to remove my database table of extension. I want all process to be done automatically not by using phpmyadmin and do it manually or writing any upgrade script because What I want when my extension is being used

Uninstall Magento custom extension with its database

梦想的初衷 提交于 2019-12-02 12:31:39
I have created an extension and created zip file of extension so that I can install it through Magento Connect. When I uninstall my custom extension using Magento Connect it will only delete my extension files and folders but database tables of my extension are not deleted. I also want to remove my database table of extension. I want all process to be done automatically not by using phpmyadmin and do it manually or writing any upgrade script because What I want when my extension is being used by user so they will not face any issue. Sadly, there is no rollback or uninstall script as you may

Get cart content outside of Magento but on same domain

拟墨画扇 提交于 2019-12-02 00:07:02
问题 I need to somehow make the current cart and customer info in my Magento store be accessible to the rest of my website, outside of Magento. For example mysite.com/blog is outside of mysite.com/store. In the base of my domain I have run this code but it just returns NULL. require_once 'store/app/Mage.php'; umask(0); Mage::app(); Mage::getSingleton('core/session', array('name'=>'frontend')); $totalItems = Mage::getModel('checkout/cart')->getQuote(); $cart = Mage::getModel('checkout/cart')-

Get cart content outside of Magento but on same domain

和自甴很熟 提交于 2019-12-01 21:49:58
I need to somehow make the current cart and customer info in my Magento store be accessible to the rest of my website, outside of Magento. For example mysite.com/blog is outside of mysite.com/store. In the base of my domain I have run this code but it just returns NULL. require_once 'store/app/Mage.php'; umask(0); Mage::app(); Mage::getSingleton('core/session', array('name'=>'frontend')); $totalItems = Mage::getModel('checkout/cart')->getQuote(); $cart = Mage::getModel('checkout/cart')->getQuote()->getAllItems(); foreach ($cart->getAllItems() as $item) { $productName = $item->getProduct()-

Magento 1.9 redirect customer after registration

↘锁芯ラ 提交于 2019-12-01 13:38:42
I would like to redirect all customers to a custom page after successful registration in Magento 1.9. I have tried many things. Firstly, I am successfully overriding the core customer account controller. I have attempted to customize the following actions: createPostAction _successProcessRegistration _welcomeCustomer By trying to set redirect url or by setting BeforeAuthUrl //$successUrl = $this->_getUrl('*/*/index', array('_secure' => true)); $successUrl = $this->_getUrl('*/*/success'); $this->_getSession()->setBeforeAuthUrl('http://test.local/customer/account/success/'); if ($this->

Magento 1.9.2.1 custom module 404

冷暖自知 提交于 2019-12-01 08:38:53
问题 I recently installed a clean version of Magento. I had a custom module what was working perfectly on the old one, but not on the new one(Both 1.9.2.1). It shows up under System->Configuration->Advanced->Advanced. When ever i try to call mydomain/index.php/cron. It will redirect to the 404 page. I tried to add the rest of the folders what are in tutorials : Block, Helper,model and sql. But no luck. As i said it is working on the older installation with the same version number. I just copied

How to connect multiple external databases in Magento? [closed]

非 Y 不嫁゛ 提交于 2019-11-30 20:09:11
I need to connect to some external databases from Magento. I found one tutorial to Create an external database connection in Magento . This tutorial was helpful and it worked for connecting to one external database. But, I have to connect more than one external databases. How can I connect to more than one external databases (suppose 5 external databases) in Magento? I found this one Magento Module that will help to connect to external database system. http://subesh.com.np/2012/02/magento-external-database-connector-v1-0-0-released/ I tried the module and seems to be working well.Hope this