magento

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

Magento module correct place to put additional files

淺唱寂寞╮ 提交于 2020-01-15 11:58:10
问题 I'm writing a module that needs to send an xml string to a 3rd party once an order is placed. The xml is in a particular format that I need to keep it in. I was going to have the xml template stored somewhere so I could read it in and replace the required tags with my data in my observer. My question is, where is the best place to store that xml file? Can I simply create a new folder in my module for "extras" and have it in there? Or is that bad practice? Thanks 回答1: Most XML files for

delete magento order directly which order status is pending_payment

旧时模样 提交于 2020-01-15 11:36:28
问题 here i need to delete pending payment status orders delete using cron job. but i am unable to get pending_payment orders using below code. i think this is not working in my code $orderCollection = Mage::getResourceModel('sales/order_collection'); $orderCollection ->addFieldToFilter('state', 'pending') ->getSelect() ->order('e.entity_id'); here is my full code <?php $mageFilename = 'app/Mage.php'; require_once $mageFilename; Varien_Profiler::enable(); Mage::setIsDeveloperMode(true); ini_set(

Magento - Newsletter subscribe new field not saving

空扰寡人 提交于 2020-01-15 10:46:08
问题 I am trying to add a new field (subscriber_type) to the newsletter subscribe form. I have setup my observer and it is working and firing correctly (newsletter_subscriber_save_before): <?php class Mynamespace_Enhancednewsletter_Model_Observer { public function saveBefore($observer){ $subscriber = $observer->getEvent()->getSubscriber(); $type = Mage::app()->getRequest()->getParam('type'); // this contains my new data correctly $subscriber->setSubscriberType($type); return $this; } } I have also

Magento REST API - How to determine the API base URL?

雨燕双飞 提交于 2020-01-15 10:22:51
问题 I'm running Magento 2.2.5 and was having trouble working out what the URL was for making API requests. For example to GET a list of countries I had seen the following syntax used: /rest/default/V1/directory/countries which has worked on some stores, but I was getting this error: { "message" : "Specified request cannot be processed.", "trace" : null } I started playing around with the URL format and removed the "default" and used this instead: /rest/V1/directory/countries and the requests were

Getting errors while trying to reindex using ssh in Magento

戏子无情 提交于 2020-01-15 09:17:26
问题 I am using Magento 1.8.1.0 on a dev server with php version 5.3.3.When I try to reindex from shell I am getting following errors PHP Warning: Directive 'register_globals' is deprecated in PHP 5.3 and greater in Unknown on line 0 PHP Warning: Directive 'register_long_arrays' is deprecated in PHP 5.3 and greater in Unknown on line 0 PHP Warning: Directive 'magic_quotes_gpc' is deprecated in PHP 5.3 and greater in Unknown on line 0 I am having same version of php on my production server but I do

Magento's extension installation

微笑、不失礼 提交于 2020-01-15 09:13:42
问题 i want to install magento extension but not from the magento connect how can i do this i have the module(extension) code and i allready install the sample data in magento installtion 回答1: From magento wiki: Alternatively, if you do not like to make all files and folders writable to the web service, it is possible to install and upgrade Magento from shell, using command line PEAR instructions, such as: # all commands are to be ran from the root Magento folder. # help on all available PEAR

Magento's extension installation

一曲冷凌霜 提交于 2020-01-15 09:13:28
问题 i want to install magento extension but not from the magento connect how can i do this i have the module(extension) code and i allready install the sample data in magento installtion 回答1: From magento wiki: Alternatively, if you do not like to make all files and folders writable to the web service, it is possible to install and upgrade Magento from shell, using command line PEAR instructions, such as: # all commands are to be ran from the root Magento folder. # help on all available PEAR

Force Magento To Always Use Single Controller For Module

耗尽温柔 提交于 2020-01-15 06:42:05
问题 The end result would be that I could go to http://www.mysite.com/frontname/something/something I will capture everything after the frontname and use that to add hooks and set data. This would act in a similar manner to how categories work but my frontname would be prepended to the url so that i can call different blocks in the layout related to that category. If it would help someone else after this is all figured out you would use the _call method to handle all requests: Dynamic router name