magento-1.7

Magento extensions not loaded

纵饮孤独 提交于 2019-12-06 21:53:26
I have a brand new installation of Magento CE 1.7.0.2 on my local machine, and cannot get any extensions to load. They install properly in the Magento Connect Manager and appear in the list as installed, but there is no effect in the admin interface. I have successfully installed Magento and these extensions before, so I'm not a complete noob. The extensions I'm trying to get working are these (both theoretically compatible with 1.7): http://www.magentocommerce.com/magento-connect/customer-experience/internationalization-localization/magento-community-modules-french-france-language-pack.html

compare only those product who have same category magento

大兔子大兔子 提交于 2019-12-06 15:01:43
问题 i want to compare only those category who have same parent, for Example, user can compare nokia mobile with samsung mobile but if user want to compare nokia mobile with shoes than it will not allow to compare those products Help is greatly appriciated Thank You in Advance 回答1: In app\code\core\Mage\Catalog\controllers\Product\CompareController.php\ make changes like the following if ($product->getId() /* && !$product->isSuper() */ ) { $categoryIds = $product->getCategoryIds(); if (is_array(

Magento add custom field in One-Page checkout shipping and billing address

£可爱£侵袭症+ 提交于 2019-12-06 14:59:42
问题 I am new in Magento. I want to add more fields in onepage checkout billing and shipping address. I have followed this Link http://excellencemagentoblog.com/magento-adding-custom-field-to-customer-address But its not working for me. 回答1: if you are using magento versions 1.6 above than you can copy "billing.phtml" from "app\design\frontend\base\default\template\persistant\checkout\onepage" to "app\design\frontend\default\your_theme\template\persistant\checkout\onepage".Then you have to add

How to create table for custom module in magento?

China☆狼群 提交于 2019-12-06 14:35:18
问题 I am new in magento. I need to create my own module (or) extension in Magento. In my module, table cannot be created in the magento table. I am using this code. File:/app/code/local/com_name/module_name/sql/module_setup/mysql4_install-0.1.0.php $installer = $this; $installer->startSetup(); $installer->run(" DROP TABLE IF EXISTS {$this->getTable('th_tweet')}; CREATE TABLE {$this->getTable('th_tweet')} ( `tweet_id` int(11) NOT NULL AUTO_INCREMENT, `updated` timestamp NOT NULL DEFAULT CURRENT

Magento REST API OAuth

三世轮回 提交于 2019-12-06 13:40:36
问题 Magento ver. 1.7.0.2 I'm new to Magento, REST and oauth. I want to be able to use the Magento REST API to be able to modify an online store with an inhouse Customer Management System. I have been able to set up Magento easily enough, but I'm struggling with REST, specifically with the oauth. I am currently running Magento on MAMP 2.1.1 on OSX 10.7.5. I was able to install OAUTH using these directions: Installing PHP OAuth in MAMP environment Following the Magento tutorial I am using the

Unable to set Shipping Method in Magento order create script

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-06 13:36:10
I am having trouble getting my Script to create an order on my live site that uses Magento 1.7. The error I am getting is “please specify a shipping method” more detail is blockquote Fatal error: Uncaught exception 'Mage_Core_Exception' with message 'Please specify a shipping method.' in /home/mysite/public_html/app/Mage.php:594 Stack trace: #0 /home/mysite/public_html/app/code/core/Mage/Sales/Model/Service/Quote.php(303): Mage::throwException('Please specify ...') #1 /home/mysite/public_html/app/code/core/Mage/Sales/Model/Service/Quote.php(222): Mage_Sales_Model_Service_Quote->_validate() #2

bundle product import in magento

自作多情 提交于 2019-12-06 12:20:21
问题 I have installed magento 1.7.2 version, now my requirement is to import Bundle products but by default magento won't provide these feature. So can anyone know that how can I import the bundle product from CSV file or if have any alternative solution then please advise. Thank you for your time and consideration. CSV Files contains: Fields: sku , _store , _attribute_set, _type, _category , _root_category , _product_websites , description , enable_googlecheckout , has_options , image , image

Magento 1.7 cannot reindex product flat data

这一生的挚爱 提交于 2019-12-06 11:27:44
问题 Magento 1.7 cannot reindex product flat data... I get the following error when trying to reindex my database. Product Flat Data index process unknown error: exception 'PDOException' with message 'SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`d014505f`.<result 2 when explaining filename '#sql-1f6c_39a11d'>, CONSTRAINT `FK_CAT_PRD_FLAT_1_ENTT_ID_CAT_PRD_ENTT_ENTT_ID` FOREIGN KEY (`entity_id`) REFERENCES `catalog_product

How to call a cms page in a phtml file in magento?

冷暖自知 提交于 2019-12-06 10:37:52
问题 I need to display a CMS page inside my custom module's phtml file. Is there any way I can include it either through xml layout or via coding directly in phtml file? I know we can add a cms block but how can we add a cms page? 回答1: Try the below code in your phtml file $page = Mage::getModel('cms/page')->load('home_page','identifier'); echo $page->getContent(); 回答2: This code check if cms page is active then it will display page content $page = Mage::getModel('cms/page')->load('top_offer',

The requested URL was not found on this server (Magento)

ε祈祈猫儿з 提交于 2019-12-06 10:34:59
I am using Magento ver 7. I have changed the server of my website with the same URL. So, I export the database from old server and Imported the same database to new server. Apart from this I have also uploaded all the files to the new server. I have also changed the database credentials in the /public_html/app/etc/local.xml file. But now when I am open the URL, it shows an error that "Not Found, The requested URL /index.php/ was not found on this server." I don't know why this is happening. It works for me. turn off url rewriting from magento admin configuration>web> Search Engines