All Questions

Filter by
Sorted by
Tagged with
3 votes
1 answer
8k views

Add Javascript File To Head For Create Block

I need to create a block programatically (for various reasons): $myblock = Mage::app()->getLayout()->createBlock('namespace_module/path', 'my_block', $params); This works fine, but the ...
user avatar
  • 1,491
1 vote
2 answers
2k views

Is there a way to have Mobile Number and Home Telephone Number in Billing address step?

I wanted to add an additional field or remove the "Fax" field in Magento Onepage checkout. Has anyone had to do something similar? If anyone could share with me how I can change or add these fields ...
user avatar
  • 2,463
3 votes
4 answers
16k views

best magento htaccess for performance

we have installed several extensions and bits and pieces of code to optimize Magento htaccess. Now I see the code has gotte quite long and I am not sure this is all conflicting or supporting ... So ...
user avatar
  • 5,332
0 votes
1 answer
1k views

Overwrite getProductUrl function

The goal is that we want to be able to change the url under some conditions for all product URLs. It seems that the solution would be to add a function to our module Observer.php. I can't quite get ...
user avatar
  • 553
0 votes
1 answer
1k views

Toggle menu/accordion menu doesn't work?

I have been trying to add accordion menu on the left side bar on our new magento ecommerce site. I tried most of the methods mentioned on Magento website forums but nothing seems to work. I even tried ...
user avatar
3 votes
1 answer
1k views

How to get a Product ID after a product post via REST api to update product category

I want to insert products from a csv-file into the Magento DB via the REST API. First I try to update one single product. The product is inserted into the db but this product needs to be assigned to ...
user avatar
3 votes
2 answers
20k views

How can I get a product's status for a store?

This really does not seem like it should be difficult. I seem to be able to change a product's status for a given store, but not read it. Below is a test script I've been using, <?php // Make ...
user avatar
  • 558
-2 votes
1 answer
1k views

How do i Create Static Page and Block in Magento? [closed]

How do i create static page in magento? and also don't know about static block?
user avatar
  • 627
5 votes
2 answers
4k views

Is It Possible To Create My Own Shortcode

I'm building a module. I want to be able to use a shortcode (template directive) in my CMS static blocks, such as the following: {{store url=""}} I want to call my own module's frontpage blocks ...
user avatar
  • 1,491
0 votes
2 answers
3k views

Is there a way to check whether a GUEST customer has subscribed to newsletter, in that particular session?

I have to hide the newsletter subscription form from customers who already subscribed. For registered and loggedin customer i'm able to check the subscription status using the following method: $...
user avatar
  • 2,689
0 votes
1 answer
217 views

Magento table defenition

Magento has this db table: catalog_product_link_attribute. What is the purpose of this table. I researched some and it relates to associated products. Who has some examples to advanced use of this ...
user avatar
  • 6,214
1 vote
1 answer
235 views

Use frontend attribute values when creating orders from admin

When creating an order from admin that includes a configurable product, the option is displayed using the admin value of the attribute. In my case, I use a different admin value and frontend value. ...
user avatar
  • 1,543
6 votes
3 answers
9k views

How to Add A Widget Instance to Specific CMS Pages

In the backend under Widget instances it is possible to add a widget to certain pages, for example to specific categories. How can I add one instance to some specific CMS pages? In the Layout ...
user avatar
  • 14.7k
1 vote
1 answer
5k views

How to load block class within other block in magento

I want to load my grid class within constructor method of other block.I try this peace of code but don't succeed. `class Mymodule_Block_Adminhtml_Sales_Order_View_Tabs extends ...
user avatar
  • 75
1 vote
1 answer
231 views

Optimal structure of grouped products with more than 30K unique products [closed]

I have a question to community how to organize my catalog with grouped products. Following my situation: 1. I have more than 30K unique simple products (not visible in catalog). 2. I have more than ...
user avatar
  • 6,214
0 votes
1 answer
939 views

How to get product SKUs in onepageController without quote object?

I know product sku's can be fetched using the quote object and a foreach loop foreach($this->getOnepage()->getQuote()->getAllItems() as $item){ $sku = $item->getSku(); $_SKU = $...
user avatar
  • 2,689
7 votes
3 answers
2k views

OSL3.0 - Magento - Code distribution

I got confused while reading Magento License page: http://www.magentocommerce.com/license/ The sentence that made me confused is: "all contributions made to the software by you and others must be ...
user avatar
0 votes
2 answers
566 views

Table cell with scroll in product page

I have an "additional information" table on my product pages that contains several rows of product attributes and their values. I have an "ingredients" attribute that can sometimes be very long, so I ...
user avatar
-2 votes
1 answer
1k views

Slider Images not Showing [closed]

I have a new site - http://crystelleclothing.co.uk/ and the slider images are not showing... I thought it might be an issue with a .htaccesss file in the Media folder, but there isn't one there... ...
user avatar
1 vote
2 answers
5k views

Collections _init() function

I have the following collection that helps me implement a custom report: class VMR_Customreports_Model_Resource_Productsordered_Collection extends Mage_Reports_Model_Resource_Order_Collection { ...
user avatar
  • 831
1 vote
3 answers
3k views

How to prevent magento duplicate meta title and meta description on google webmaster tools

Anyone please help. I'm trying to stop duplicate title and description on Google webmaster tools. 1. I already turn on Use Canonical Link Meta Tag For Categories and Use Canonical Link Meta Tag For ...
user avatar
1 vote
2 answers
3k views

How to add markup percentage to cost price in Magento?

Our customer is looking to supply only costs prices and markup percentage for products on Magento. For example if the product cost price is £100 and markup is 20%. He would like to import £100 and 20% ...
user avatar
5 votes
6 answers
14k views

Product pages displaying 404 page

We've recently upgraded a site from CE 1.5.0.1 to CE 1.7.0.2, and now all product pages just resolve to a 404 page. This applies for direct links, with the product-url.html after the domain, and also ...
user avatar
1 vote
1 answer
554 views

How to show warranty expiration date in Sales Order View Page

I am looking for a way to hook into one of the Magento events that define Order creation Date. I would like to add a counter next to it that shows how many days/weeks/months ago the order was placed. ...
user avatar
  • 2,463
3 votes
1 answer
10k views

Check if coupon is valid for a quote

I need to programitcally re order an Item. I have achieved this by Cancel the current order Get the cancelled order quote Ammend the Qtys Recalulate the shipping This is all fine... now I need to ...
user avatar
3 votes
1 answer
7k views

Securing add to cart http request

I have a Magento site which integrates with a Javascript based product configurator using reverse proxy on a specific CMS page. The user configures their product and then hits 'Add to Cart' at which ...
user avatar
  • 1,078
2 votes
1 answer
7k views

Rewrite OR add custom tab to the sales order view in magento

I want to add custom tab to sales order view form. I tried the following code, but nothing happend. (Link 1, Link 2). My layout module.xml code is <adminhtml_sales_order_view> <...
user avatar
  • 75
0 votes
1 answer
2k views

magento admin prepare custom filter string for product grid

I am trying to add category filter in my admin product grid. which i have added successfully but i am facing problem while pagination, for that i need to implement custom filter string for product ...
user avatar
0 votes
1 answer
715 views

Obtain value from attribute frontend property

We would like to use the values from the Magento attribute frontend properties 'Use in Quick Search' and 'Use in Advanced Search'. We have changed the properties translations to 'Show for wholesale ...
user avatar
  • 591
1 vote
3 answers
343 views

Why Mage_Catalog_Block_Layer_Filter_Price is not getting overridden in live site?

I'm working with Magento EE 1.12.0.0 In one of my modules I have overridden Mage_Catalog_Block_Layer_Filter_Price and it works perfectly fine in my localhost, but when I install the same module in my ...
user avatar
  • 2,689
0 votes
1 answer
275 views

How does a Module call a custom layout in Magento? What are pre-requirements for creating a module?

In Magento, how does a Module call a custom layout file? What are the pre-requirements for creating a module?
user avatar
  • 627
7 votes
3 answers
10k views

Programmatically create new attribute set while inheriting from another

I am programmatically creating attributes and attribute sets. The attributes work like they should, but with the attribute sets I have a problem. When I create an attribute set, I can not let it ...
user avatar
  • 1,033
2 votes
1 answer
978 views

Dataflow - Profiles : How to check failed products in import all product

I have created CSV file and run profile. Some products failed due to image not found issue. I want to find out which products have failed in the process. Are there anyway to echo sku for failed ...
user avatar
  • 341
0 votes
1 answer
4k views

Shipping cost only if order subtotal less than specific amount else free shipping for everyone including guest.

How to set shipping cost if cart subtotal is less than specific amount else free shipping? This is applicable for all members even for not logged in users.
user avatar
  • 1,649
0 votes
1 answer
1k views

How does shared checkout behave with multiple store domains?

We're setting up Magento to run 1 website and 3 stores each with 1 store view. Each store view is associated with a different domain. Since the 3 stores are part of 1 website, the catalog will be ...
user avatar
2 votes
2 answers
1k views

Send a Magento order to third-party API when placed

I'm looking on an example of where I should place for Magento orders to be sent to a third-party API. I have all documentation and all proper code that I've tested. I just don't know where these API ...
user avatar
  • 81
14 votes
6 answers
7k views

How can I get email notifications for exceptions?

How do I setup email notifications for exceptions that are either logged or thrown on the site? UPDATE: A few people have commented on the fact that you may expect to get way too many emails if you ...
user avatar
  • 3,535
5 votes
2 answers
7k views

Text attribute in the layered navigation

How can i make a text attribute available to the layered navigation? In the admin it is not possible to set an attribute to filterable if it is not a dropdown or price type. I can worry about the ...
user avatar
0 votes
3 answers
375 views

Collection fails when using a more restricted admin user

I have the following collection which helps implement a custom report. <?php class VMR_Customreports_Model_Resource_Productsordered_Collection extends ...
user avatar
  • 831
0 votes
1 answer
2k views

magento admin product grid add category filter to admin grid without adding column

i am trying to filter grid by category without adding category column, is there a way by which we can do this custom filter to grid. below is what i did function prepareCollection() { $catIdArray = ...
user avatar
2 votes
2 answers
2k views

Magmi image import sets majority of product images, but not all [closed]

I've been using Magmi to do a mass import of both product data and then going over the product data to reference product images via SKU. I've been able to get Magmi to import product data without ...
user avatar
  • 21
10 votes
2 answers
2k views

Can't Login to Admin after Installing Extension

Apologies in advance for the thin details on this one. I sell a Magento extension. With the latest release, I've started getting an odd bug report from a few users. Specifically, after installing ...
user avatar
  • 43.8k
0 votes
1 answer
931 views

Internal messaging system for logged in Admin users?

I have been searching for a solution for extending default Magento email functionality in order to send internal messages from Admin user to Admin user. I haven't found any good resources on how to ...
user avatar
  • 2,463
0 votes
1 answer
1k views

Magento Gmail and ZEND

I'm using this code to send an email in Magento. public function send() { $config = array('ssl' => 'tls', 'port' => 587, 'auth' => 'login', 'username' =&...
user avatar
-1 votes
1 answer
1k views

If i secure magmi will my scripts on the server still be able to access it?

I recently discovered that my magmi ui in magento is not secured. I found instructions on securing it but I need to ensure that my scripts can still access it when I secure it. Can anyone help me with ...
user avatar
0 votes
1 answer
85 views

Move products and attributes from 1.4 db dump

I have a db dump from an old magento installation. From this I would like to move all products and attributes. The db dump was taked from a 1.4 instllation and it will be going to a 1.7 This is not ...
user avatar
0 votes
1 answer
1k views

Displaying multilevel subcategory

I'm using the following code to display the subcategory of specific categories in a hardcoded mega menu: <?php $children = Mage::getModel('catalog/category')->getCategories(3); foreach ($...
user avatar
  • 332
2 votes
2 answers
7k views

Select Product Where Price Is Greater Than Zero

Given the following code: $mageProductCollection = Mage::getModel('catalog/product') ->getCollection() ->addAttributeToSelect('*') ...
user avatar
  • 1,491
2 votes
1 answer
382 views

How to add timer for cart?

I want to add timer to cart. If item is added to cart it will remain in cart only for specific time say 15 min also product quantity will reduce as per quantity added in cart. Customer should begin ...
user avatar
  • 1,649
0 votes
2 answers
2k views

Adding a custom field to Order admin screen

I'm trying to add a custom field to the order admin screen, specifically a dropdown box with the information appended to the order. I have created a custom module, which has the structure: etc -> ...
user avatar
  • 101

15 30 50 per page