October 17, 2011 § 1 Comment
In the frontend store, we normally use
But in the admin panel, if you ever want to access the quote that is created by admin you can use
October 16, 2011 § 6 Comments
In Magento, you may see this
Fatal error: Allowedmemory size of 33554432 bytes exhausted (tried to allocate 363 bytes) in....
So it means that you are in a loop, or not enough memory to run the magento.
In my case, I was customizing Magento in a great extend , such as product price calculation and shopping process. Everything is going fine when the currency stays the same, but if you switch currency you will get into a dead loop.
When touching price calculation , you always come across Quote Item Abstract class. However, I oversaw the fact that the class already get the method to get the quote, which I instead use
So it ends up looping over and over again, taking me using log function to track where it is.
Question is therefore raised, why would the Mage::getModel(‘core/session’)->getQuote() will only looping when switching currency? Need to investigate.
October 15, 2011 § Leave a comment
We got no problem here
I think Magento is one of the top e-commerece open source software in the neighborhood. And I always like to move WordPress to be his/her neighbor.
Although they are from different background and code base. Some always manage to getting them to work together, such as integrating Magento’s Code into WordPress one.
Perfect Integration so far, only if you use wordpress for limted usage , such as blogging in e-commerce site.
It’s hard for a client
EI normally provide e-commerce site with full CMS suport, but when it comes to complicated html structured page, it becomes a headache for letting client to edit.
Think about all the CSS, DIVS, Class , ID, do you really want your client to touch that? I dont think it is a good idea.
Let Magento handle Shop stuff, WordPress got your static pages
How do we do that since you cannot put two system into one folder? I manage to make it work in htaccess method.
Step 1. Create a page in WordPress
Step 2. Create a rewrite rule for that particular page in Magento’s htaccess.
Step 3. View it now!
1. As we know wordpress can be a powerful CMS with it’s clean workflow, Custom Post Type, Custom fields you name it.
1. Potentially affect the SEO searching?
2. Need to create rewrite rule whenever there is changes in pages (Will find a way to accomplish that, maybe making use of magento URL rewrite, a new plugin to WordPress I guess)
3. Two access point both in magento & wordpress, e.g. /about-us and /wordpress/about-us