The tag has no wiki summary.

learn more… | top users | synonyms

3
votes
1answer
48 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
37 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
25 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 ...
1
vote
1answer
35 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
27 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
72 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 ...
1
vote
1answer
25 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
118 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
37 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
52 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
103 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
59 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
124 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
74 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
81 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 && ...

1 2
15 30 50 per page