magento

Get product link from Magento API

I am new to Magento and using their API. I need to be able to get the product url from the API call. I see that I can access the url_key and url_path, but unfortunately that's not necessarily what the URL for the product is (ie it may be category/my-product-url.html) where url_key would contain my-product-url and url_path would only co...

Magento addFieldToFilter allow NULLs

When using the Magento collection method addFieldToFilter is it possible to allow filtering by NULL values? I want to select all the products in a collection that have a custom attribute even if no value is assigned to the attribute. ...

magento - Shipments - editing custom value in dropdown box for carrier

Hi there, Ok my problem is that my client would like their shipping carrier 'Colissimo' to appear in the drop down box for Carrier when creating the Shipment document in Admin of magento. One of the values in the dropdown is Custom Value. Is there any way of editing this to 'Colissimo'? Regards, Fiona ...

Customizing Magento Sidebar

How can I edit or add blocks on the sidebar in magento ...

Magento - Removing the black background from automatic thumbnails?

Hi All On a Magento site, I’m just uploading one picture per product, and using that as the base, small and thumbnail images. However, my pictures aren’t square, so I’m getting a black background added to the thumbnail that’s created. Any ideas how to change that to a white background? I’ve searched for this but can’t find a decent a...

How to get a list of product categories and their ID's from Magento?

I'm trying to import a large number of products from a DB into Magento. The DB has many different product categories, which I've recreated within Magento. However, when importing the products via a CSV, you must list the category ID rather than the name. Is there any way to bring up a list like the following: id | category 1 | pies 2 | ...

Magento Fatal Error: Call to member function getSku() on a non-object

I have come across a bizarre error in the Magento shop I'm developing and despite my inquiries online, it appears no one else has ever seen this exact error under the same circumstances. Lemme 'splain. The full text of the error message is this: Fatal error: Call to a member function getSku() on a non-object in /path/on/server/app/code...

Magento - locate specific core files

Hiya, I am familiar with theming and using template hints in the Magento back office to locate .phtml files. What I am not really familiar with are the core files such as app/code/core/Mage/Catalog/Model What I need to do is override a core file like I would a core phtml file by copying it to 'my theme'. I basically want to amend som...

TinyMCE - adding an ON/OFF toggle switch

Hi All I'm using TinyMCE on the text-areas in my Magento admin section. I have my TinyMCE editor visible form the start, but I want the option to disable/re-enable it. I'm using the jQuery plugin version, so I added some script, which is almost working. However, it's only affecting the first instance of TinyMCE - if there are any other...

Change wording "Special Price" & "Regular Price" in Magento

Hi, I am trying to change the wording "Special Price" and "Regular Price" in Magento. I've already tried editing the Mage_Catalogue.csv, reuploading and clearing the cache to no avail. I've also done a giant Dreamweaver search within the entire site for the text "Regular" and "Special" and haven't found anything. I can only conclude t...

Modify automatically an attribute with magento

I want to modify one attribute of my product automatically (code). How could i do that plz? I have seen how to show one attribute, but not how to modify. Thx ...

Magento New Products Block

I would like some help on how to a block or the right sidebar displaying the new products added to the store. ...

Magento: Display sub-category list

Hi there, I'm building a Magento store and want to be able to display a list of categories and have each category link to its own page. I have a 'Brands' category with an ID of 42 and I want to display a list of the sub-categories and ensure that each one links to the designated URL key in the CMS. Has anyone had experience of doing th...

Magento - Custom Payment Module

This is a very general question, but here goes: I'm trying to create a custom payment module in Magento. I've created a 'regular' module that hooks into the Magento event/observer model. But how do I tell Magento to treat a module as a payment module, so it shows up in the admin backend AND on the checkout page? ...

Display Percentage or Amount of discount for catalog price rule in Magento

Hi all, I'm struggling to figure out how to display the percentage or the amount of discount that is applied to a product in Magento via the Catalog Price Rules. For example: I want the price to be displayed in the front-end as follows: [old-price] [special-price] [discount info] where [old-price] has a css strike through. The [old-pr...

Why Aren't the _construct() Methods on EAV Resources and Collections Declared as Abstract Methods?

I've been poking around the bowels of Magento systems code. For "regular" model resources, Magento's _construct initialization convention has been declared abstract File: Mage/Core/Model/Resource/Abstract.php abstract protected function _construct(); This makes sense, as it forces developers creating their own Model resources to call...

Magento product images new option

Hey guys, how do i add one more option to product image list? like Exclude & Remove checkboxes ...

Techniques to speed up Magento on a shared host

I have an established Magento site that is only just starting to get complaints about it's performance. It's on a shared server. The internal server-side cache is also enabled. Some of the problems I have noticed are Many HTTP Requests No minification of CSS or JavaScript. No CSS sprites Shared server isn't recommended for Magento, o...

PayPal Pro (Direct) Credit Cart expiration date verification in Magento

Hi all. i have an installation of Magento shop on my development server and as a payment gateway we are using PayPal Pro (PayPal Direct) which is able to accept users' credit cards. it was fine in sandbox mode, but after switching into 'live' mode and testing with $0.01 transactions, it came out that PayPal seem to accept CCs w/o check...

Magento and unsetting a custom boolean attribute

Hi, I've added an attribute to a customer address entity. Attribute setup code is as follows- 'entity_type_id'=>$customer_address_type_id, 'attribute_code'=>'signature_required', 'backend_type'=>'int', 'frontend_input'=>'boolean', 'frontend_label' => 'Signature required', 'is_global' => '1', 'is_visible' => '1', 'is_required' => '0', '...