The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
2answers
92 views

How to get pricing_value for Super Attribute Option

Somehow I can't figure out how to get the pricing values for a configurable product's super attribute options. Currently I have an array of attribute id and attribute option id which looks like ...
0
votes
2answers
140 views

Payment not saving in quote when creating order programmatically

I have a current script that uses a mishmash of pure Magento methods and the API. I'm trying to convert it all to straight Magento methods, but I'm having an issue to get the payment method to stay. ...
0
votes
1answer
87 views

Convert attribute type from Text to Dropdown

How can I convert a product attribute type from Text to Select in the Magento Backend. Is there any in-built functionality or we need to write custom code for that? I already have attribute values ...
1
vote
1answer
20 views

How do you set Allow Countries directly in the database, programmatically or using n98-magerun?

I have a list of over 200 countries I need to allow for an EE 1.13 site. I'd prefer not to do this through the admin interface because it is tedious and I am error prone. Is it possible to set Allow ...
0
votes
1answer
317 views

How to filter product collection by attribute's admin option values?

I am currently developing a product configurator. I am submitting a form which sends the admin option values of my custom attributes via POST to a controller action. If I use the current store's ...
0
votes
1answer
65 views

addFieldToFilter doesn't return the right product for selected attribute values

I am currently programming a product configurator module for Magento. Everything is working fine so far besides the core functionality: choosing the right product from the database for the selected ...
0
votes
1answer
87 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 ...
4
votes
1answer
385 views

About Collection Model and Resource Model

I am bit confused about using Resource model and collection Model, Sometimes when I see examples for loading products using specific attributes. in some examples, they use collection model and ...
1
vote
1answer
615 views

Magento + JQuery + Ajax - How do I reload just parts of my custom Module instead of the whole Block?

I was just recently given the task to create a simple Product configurator for our Magento Template in 5 days, where you can choose some attributes and it calculates the price for you, fades over a ...
1
vote
1answer
117 views

Class calling another class

I am new in PHP as well as in Magento. I have some questions regarding factory methods and fundamental of PHP of OOPS. As if we want to call a method in php we instating the class and we call a ...
3
votes
1answer
301 views

“Gang of Four” Design Patterns in Magento Core

There are a few very obvious patterns in use in Magento's core, such as: Singleton Registry Event/Observer Factory Model/View/Controller But there are others that may be in use in Magento that I'm ...
1
vote
1answer
490 views

Programmatically Converting Currency

I am trying to convert currency in Magento 1.5 using the following code in a separate file to check currency conversion. I have two stores with respective currency settings in the admin. ...
1
vote
2answers
158 views

getFinalPrice() on associated simple product returns base price not parent product special price

I have 2 products one is configurable and has a special price of 100 and the associated product has no special price assigned and Final Price is not being returned on the associated product. I am ...
2
votes
1answer
890 views

How to Programmatically set a Product's Multi-Select Attribute by Labels

If have a multiselect attribute and want to set the selection on a product. $selectedOptions = "red,green,blue"; $product->..... // # what to do? How can I do that?
0
votes
1answer
226 views

How to get Discount Percent

I am looking for a way to get the discount percent of an order, possibly from the order class or the invoice class, it would be amazing if $order->getDiscountPercent(); worked, but it doesn't, ...
0
votes
1answer
413 views

admin sales order total shipment empty

I recently have the problem that the yellow block with the total order on the bottom right of the sale order info page stays empty. I looked into the files and found out that in ...
3
votes
1answer
36 views

Can't find callbackFunction

I've been looking all over the place and I can't find what this is: updateCallback : function(elm, status) { if (typeof elm.callbackFunction != 'undefined') { ...
1
vote
1answer
245 views

create bundle order programmatically

I have this code: http://pastebin.com/iFwyKM7G Inside an event-observer class which executes after the customer registered. It creates an order automatically and it works for simple products. ...
1
vote
1answer
71 views

Get new empty item on model method

Collections provide a handy means of getting a blank model - e.g.: $quote->getItemsCollection()->getNewEmptyItem(); Is there any means of doing this from an existing model without having to ...
1
vote
1answer
123 views

Design Strategy - Helper methods that throw Exceptions

I am implementing a plugin for a client that will use the 'Max Sale Quantity' value of a Magento Stock Item on a product as a means of setting an upper-bound on total customer purchases. Because I ...
3
votes
3answers
162 views

Returning $this after observer

I see some conflicting information on the internet and in 3rd party modules alike - is it a requirement or best practice to return $this at the end of an observer method? E.g.: ...
1
vote
3answers
77 views

Provide properties to views in Magento

In Zend Framework we provide properties to layouts which are then consumed in the view. An example of this would be: $this->layout = new Zend_Layout(); $this->layout->username = 'John'; ...
3
votes
4answers
172 views

Is it good to instantiate a getModel class on phtml templates?

This is a question regarding a good programming practices in Magento. I need to show (in the category product list) the product with its related products in thumbnails. So I edited ...
-1
votes
1answer
99 views

Is it possible to render a page programmatically via url? [closed]

I am interested in rendering a page programmatically via url so that it is stored in the cache... Any ideas are greatly appreciated!
1
vote
2answers
284 views

How to remove the Breadcrumbs from the homepage

When Full Page Cache is on the breadcrumbs show up on the home page, i've tried changing the line <?php if($crumbs && is_array($crumbs)): ?> to <?php if($crumbs && ...
2
votes
4answers
622 views

Get Config Value for Website Scope

How can I get a configuration value for a specific website? There is Mage::getStoreConfig() but no Mage::getWebsiteConfig(). edit: I am exporting configuration data on website level - so somehow I ...