magento

Magento Ajax cart - the correct way

Hi, I have created an Ajax cart in magento although it is a little hacky. It's not in a module or that. All I'm doing is using a script in the root of app that initialise mage and works with it. What would be the correct way in implementing this? Ie how can I get my Ajax calls to interact wiu magento through a my module? ...

Creating Custom Magento Module. Not detecting template

I am creating a custom module with a new URL. As of right now. If I put a echo into my Indexcontroller class and goto mydomain.com/index.php/advancedcatalog, It detects the echo But it does not detect my view. Here is my structure /Advancedcatalog/Block/Advancedcatalog.php Advancedcatalog.php <?php class Webwow_Advancedcatalog_Block_A...

PHP Fatal Error caused by Magento

So I'm checking my error logs and notice a bunch of these: [20-Aug-2010 15:06:32] PHP Fatal error: Allowed memory size of 262144000 bytes exhausted (tried to allocate 16 bytes) in /home/website/public_html/lib/Zend/Db/Statement/Pdo.php on line 294 So I know that this has to do with the memory size set in php.ini, but it has been set t...

remove particular order status from list in magento

hello all! I am using extension http://www.magentocommerce.com/magento-connect/eitai2001/extension/1468/order-status/reviews#reviews of magento which provide a lot of order status..but my need is limited ..so i want to remove some status from my order-status list... how can i do this..please help Thanks! Edited I made change in conf...

Stop newsletter subsciption email sending

hello all! In magento I want to know how can I prevent email sending to user email address of "Successful subscription to newsletter " when user subscribe for it. Thanks! Solved By http://stackoverflow.com/questions/2844023/magento-store-dont-send-newsletter-success-email ...

add custom field to onepage checkout in magento

Hi, I'm trying to add custom fields to magento checkout onepage. I followed an example that doesn't work in 1.4.1 because of the move to a flat order table(I think) http://inchoo.net/ecommerce/magento/adding-a-new-tab-under-one-page-checkout-full-working-module/ I can see my custom tab in checkout page with my custom fields but I can't...

Magento - Move Code from view.phtml to tabs.phtml

I have this code in my view.phtml file which displays a list of all the products categories: <?php $catIds = $_product->getCategoryIds(); foreach($catIds as $catId) { $category = Mage::getModel('catalog/category')->load($catId); echo $category->getName(); } ?> Instead of displaying the category list in vie...

Magento ->getSku() or getData(’sku’) returns empty string

Hey all I have Magento 1.3.2 and I have weird issue: When I am in list.phtml, and I try to fetch the SKU by using getSku() or getData(’sku’) I get empty string. getName() does work. However, when I do that from other pages, it works well. I var_dumped it and no SKU is shown. What can cause this? Thank you! ...

after importing products into magento they dont show up catalog

After i import the products into magento which appears to go smoothly no errors; the products aren't visible in the store. however if i go to any product and save(even without changing anything) it it is instantly available. Why are these products not visible right away... Running the latest stable build. Thanks ...

Magneto discount coupon code set but value is not subtracted from subtotal...

hey i am using magento 1.4.1.1 i have set the price rules in it and apply discount 10off as a coupon code its work fine but the problem is that the the discount value is not subtracted from the grand total... thanks in advance.. -Jeet ...

inserting links into Magento top nav in a robust, user-friendly manner

There are a couple of options that I've used in the past, and I'm interested to hear thoughts on which is best. manually insert links into top.phtml (urgh...) +easy, quick -users cannot edit -reduces future proofing for upgrades create a category where the Display Settings is set to Static Block Only with a selected CMS block. The C...

How to replace gif logo with flash logo in magento?

How to replace gif logo with flash logo in magento? ...

Programmatically ship and comment single item of an order in Magento

I know there is a way to programmatically invoice, ship, and set state on an order (http://www.magentocommerce.com/boards/viewthread/74072/), but I actually need to drill down even deeper to the item level of an order. We have a situation where, depending on item type, two different items can be processed in two different locations (from...

Magento Error when Accessing User Roles Section

I have a Magento site in which there are about 20-25 extensions installed, among which 7 are commercial, which means that those 7 extensions are fully encrypted. Also none of these extensions use the User Roles & Permissions section, in the Admin area. Now, a few days back, I got into a silly problem which is really taking a toll on m...

Determine if Magento module is enabled

What is the best way to determine if a particular module is enabled/active in Magento? I've tried using class_exists to check if my code has been loaded and parsed by PHP but lately I've noticed its pretty unreliable (returns true even when I delete the module's .xml configuration). Is there a core function I can call? ...

Magento loadByAttribute fails on question marks

Trying to load a product by it's name ("What are Tests?") fails even though the product exists. $product = Mage::getModel('catalog/product')->loadByAttribute('name', 'What are Tests?'); It works for any other name though. As Magento ultimately goes through PDO, would the "?" in the name be interpreted as a parameter and as I'm not pa...

Magento - decimal points in invoice/be

hi, I need for my shop up to 4 decimal points. So far I followed some tuts and theyre working fine in front & backend for products. Only in sales/invoice prices,tax and totals are still rounded to 2 decimal points. I've edited/overwrote following files: \app\code\local\Mage\Adminhtml\Block\Catalog\Product\Edit\Tab\Options\Option.php s...

help needed with magento product import products wont show up in catalog after import

I asked a similar question a couple days ago and didn't get any answers that solved my problem (http://stackoverflow.com/questions/3543992/after-importing-products-into-magento-they-dont-show-up-catalog) Ive tried everything to get this to work i feel like its something trivial im missing. I have used magento before and never had any...

Magento product name as text instead of varchar

How could I alter the product name attribute so it's text instead of varchar? Is there a way of doing this through Magento? I'm currently migrating an old database and the product names are much longer than varchar can fit. Thanks! ...

add custom options to magentos cms pages

is it possible to add custom options to cms pages and use them in a view? f.e. add a dropdown under site informations and use the variable in my view where i'm displaying a list of my pages? thanks for all help ...