Using the code below in the index.php file of a WP template:
require_once '/Users/xxx/Documents/Projects/honora/trunk/app/Mage.php';
umask(0);
Mage::app('default');
Mage::getSingleton('core/session', array('name' => 'frontend'));
Mage::log(Mage::helper('checkout/cart')->getCart()->getItemsCount());
should in theory give me the number ...
I have been wondering about this for a while. What if Magento has written a core Observer class and performs a functionality that you do not want it to execute, or you want to rewrite it? Is there a way to say, don't use this method in an Observer, just use mine. If I setup a method for my own Observer won't it just do the core functiona...
Hi,
I want to add this feature in magento.Automatic mail alert to customers on new products arrival in magento upon on their subscription, its not like RSS but its just mail with the product alert alone. is there any extension or something else.
...
How do I create custom fields like mobile number in customer registration form without modifying magento core files? I tried but the mobile number is not saved in the DB
I override the Mage_Customer_Model_Entity_Setup class with Myown_Mage_Customer_Model_Entity_Setup by creating Model/Entity/Setup.php in my modules folder and added...
Hi All,
I've been stuck on this for the last few hours. I got it working by hacking a few lines in /lib/Varien/Data/Collection/Db.php, but I'd rather use the proper solution and leave my core untouched.
All I need to do is get a collection and filter it by two or more fields. Say, customer_firstname and remote_ip. Here's my (disfunctio...
HI,
I am trying to create a router for my custom module.
I would like to access index controller's hotsale action by url/hotsale. So I create the following router xml in my module's config.xml.
<hotsale>
<use>standard</use>
<args>
<module>Moon_Products</module>
<frontName>hotsale</frontName>
</args>
</hotsale>
when I access u...
Hi,
I have a weird problem with magento cms module.
All the CMS pages on the frontend are displaying images correctly, but images are not displaying on the admin cms editor page. It just displays 'X' image broken icon.
I actually don't know where to start to fix this issue.
Any one had similar issue?
...
I have a Men and Women store setup under the same website in Magento. The Men website runs off of the Men category and the Women site off of the Women category. I have a filterable custom attribute setup entitled 'designer'. Currently, the layered navigation on a category page shows the Designer attribute for the products in that store a...
Hello All!
I am using one of extension for magento,its link provided below.
http://www.magentocommerce.com/magento-connect/j2t-design/extension/1709/j2t-remember-me-checkbox
is anyone have tried this extension? actually its not working, although I have made all necessary changes and updation for it, and from magento site also I have no...
hey,
I am getting the following error on the backend of Magento:
Fatal error: Call to a member function setActive() on a non-object in /var/www/vhosts/pro-pin.ca/httpdocs/app/code/core/Mage/Adminhtml/Controller/Action.php on line 82
I've gone through the community forum, but found out that this was due to the magic slider or lightbox...
Its sexy, its frustrating, its expensive?
based on assumption that the primary cart features could be emulated (cart and catalog rules, etc...) --- what else is there about Magento that makes it excusive?
If it could in fact be emulated using another CMS and a skilled programmer, wouldn't it stand to reason that the long term cost of...
Hi there Magento Stars!
I’ve been struggling with this question for a long time and it seems very easy to solve, I just can’t do it by myself.
Take a look at this page: http://adegean.dominiotemporario.com/porcelanas-brancas/artigos-de-mesa/linha-americana/saladeira-pequena-americana.html
This product is associated with 2 different ca...
Magento is started by running Mage::run() in index.php. Mage::run has three parameters: $code, $type, and $options. The first two are well-documented but I can't find anything about the third: $options.
I did read somewhere that you can move your etc directory to another place, but what other options can I set? I hope I can set the the...
Hello,
I have a portion of page in footer.phtml whose content I want to change on each new page, according to different categories. How can I get this done, or can I access product attribute outside of the product page? Is this possible?
regards
...
Hi all,
I have a site build which would seem to suit Magento up to a point, but the client doesn't actually want to sell anything - at the end of the process of choosing a product the user would simply be redirected to another site to complete the transaction (or not).
I would like to avoid just hacking these features out of Magento en...
I already have a website with magento but I never created a test server which I want to do now. I downloaded WAMP to use as a test server, i put all my files to the /www folder but when I go to the localhost I am getting a log error.
Basically I don't know how to transfer the website files to WAMP. The website is set up with Magento...
Hi, i'm tring to put a list of recommended items in checkout cart page, i was trying to use the related products block that is in layaout/catalog.xml, but it works for a single product in product view page, and in the checkout cart page can be more than one product, so, how can i make something like this, if it can be done??
...
Hi All
Currently, if I want to get a certain collection of products, for example best-selling, I use the following, direct in my template file:
$_productCollection = Mage::getResourceModel('reports/product_collection')
->addAttributeToSelect('name')
->addAttributeToFilter('visibility', $visibility)
->addOrderedQty()
->setOrder('ordered...
Please note, this question is regarding the shipping cost, not price. There is an important difference, i.e. what $$ charge the shipping method incurs for the store owner, as opposed to what is $$ charge is paid by the customer.
The shipping_tablerate database table includes a cost field, which is populated in the Mage_Shipping_Model_...
i want to display subcategories under artist category in one layout and design and other categories in another layout and design in magento 1.4.1.1.
can anyone help me asap.
...