magento-1.4

Magento - block caching

蓝咒 提交于 2019-12-12 02:45:56
问题 In my header.phtml I have some code that lists out products in a navigation menu. The items in the menu are actually calls to Mage:: Looking the speed of my pages, this seems to slow down page load times. I have looked around the Magento forums etc and it seems that I could possibly cache these calls to Mage that are called in my header. How could I do this? Thanks 回答1: http://www.magentocommerce.com/wiki/5_-_modules_and_development/block_cache_and_html_ouput EDIT : Some more insight as well:

Display specific category products on no results search page

此生再无相见时 提交于 2019-12-12 00:45:26
问题 When we search for a wrong keyword like "sdfsdf" in magento site, it displays that "your search returns no results". Here I want to display any category products like "similar products" category as we display "best sellers" on home page. I have tried by calling the block in the catalogsearch.xml. BUt catalogsearch.xml doent contain any block for no results. So how can I display any category products on no results page. I have an idea like can we display a specific category products on .phtml

Error when reindexing flat product data

爷,独闯天下 提交于 2019-12-11 23:48:49
问题 I receive this error "There was a problem with reindexing process." in Magento when I try to Reindex Data at Product Flat Data. I use Magento 1.4.1.1, and I have over 50 000 itemes in database. Is a way to fix this? Here are the errors what I find in exception.log: 2011-04-14T19:24:05+00:00 DEBUG (7): Exception message: SQLSTATE[HY000]: General error: 1005 Can't create table 'magentonou.catalog_product_flat_3' (errno: 150) Trace: #0 E:\Wamp\www\includes\src\__default.php(48621): Zend_Db

Magento- How to passing data between model and controller

南楼画角 提交于 2019-12-11 17:26:42
问题 Thanks for previous replies, I am new to magento framework. can anyone guide me how to get the return values from model to controller. in simple i want to return the values from model folder to controller action. 回答1: I think this will do what you want $collection = Mage::getModel('<module>/<module>')->getCollection(); <module> represents model name 回答2: In Magento, controller sets values on Models, then Blocks and templates reads them from the those Models. For example, we can set a string

Magento upgrade PEAR error

耗尽温柔 提交于 2019-12-11 16:27:58
问题 I was following the instructions at http://turnkeye.com/blog/magento-upgrade-guide/ when i was up to the command ./pear upgrade -f magento-core/Mage_All_Latest-stable and am getting the error WARNING: channel "connect.magentocommerce.com/core" has updated its protocols, use "channel-update connect.magentocommerce.com/core" to update I have searched the web and can't find anything that refers to this. I have tried ./pear upgrade -f channel-update connect.magentocommerce.com/core but that does

Magento PayPal Payment missing Shipping Fee…but only sometimes

亡梦爱人 提交于 2019-12-11 12:49:02
问题 A client has Magento 1.4.0.1 with Authorize.net and PayPal Standard. It's been working fine for 6 months. Mid-June Magento starts sending some PayPal orders without the shipping fee. Some orders are fine, while others have it missing. There doesn't seem to be anything linking the orders with the missing shipping fees. It seems Magento isn't sending the shipping fee or PayPal isn't receiving it correctly. Anyone experience this or have a fix? 回答1: I know that this question is slightly old, but

Trying to install a Magento Module that seems to not be Compiler Compatible - Magento 1.7.0.2

▼魔方 西西 提交于 2019-12-11 11:04:43
问题 trying for some time how to install magento extension on magento 1.7.0.2 Cash On Delivery by mage specialist - http://www.magentocommerce.com/magento-connect/cash-on-delivery-6259.html tried three steps 1) disable cache and compliation , install the extension and reenable the cache and compilation 2) disable compliation and cache , install the extension and enable the compilation and cache getting errors : Fatal error: Class ‘MSP_CashOnDelivery_Helper_Data’ not found in /home/bwcom/public

magento 1.4.1.1 admin login problem

坚强是说给别人听的谎言 提交于 2019-12-11 08:31:46
问题 I'm using Magento ver. 1.4.1.1. I'm always able to login with the administrative account that was created during the installation. I created new user and new role.After i assigned new role to new user.Also i made sure new user is active. Now i try to login with new username and password the systems prompts that is an Invalid Username or Password. How to solve this issue? Thanks and regards, Logan 回答1: First of all, try the original administrator role. If it logs in then there is a problem

Magento - send forgot password email in the customer's language

送分小仙女□ 提交于 2019-12-11 05:27:06
问题 I have a Magento website with 2 languages, when I send a new password to customer from backend, he received an email in the wrong language, but when he request for a new password from the frontend, he received an email in the correct language. How can I send the "forgot password email" in the appropriate language (in which the client is created) from the backend ? Thanks for help :) 回答1: Step by Step System -> Transactional Emails Click "Add New Template", fill necessary infos Choose the

Custom variables on product details page in Magento

谁都会走 提交于 2019-12-11 04:37:13
问题 UPDATE: Hopefully this is a better explanation of the problem: I'm trying to pass on the product SKU on my product details page to Google Analytics using _setCustomVar . I'm running on Magento 1.4.0.1 and my Analytics async code is inserted by the default GA module in the <head> section and it looks like this: <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-xxxxxxxx-1']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'