Questions tagged [programming]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
17
votes
3answers
17k views

Importing orders from a CSV into Magento programmatically

We're switching from an old, outdated point-of-sale system to using Magento 1.7 as our POS exclusively. Not unexpectedly, one of the challenges we're facing is how to get almost 20 years of records ...
1
vote
1answer
4k views

Programmatically reordering

I'm trying to create a new order, based on an old order. $orig_order = Mage::getModel('sales/order')->load((int)$order_id); $order_model = Mage::getSingleton('adminhtml/sales_order_create')...
16
votes
3answers
15k 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?
10
votes
1answer
2k 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
2answers
8k 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. ...
0
votes
1answer
645 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 ...
21
votes
4answers
15k 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 ...
2
votes
1answer
2k 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
2answers
2k views

Advanced level learning for Magento [closed]

The main question would be, how do you people get advanced understating of core Magento? In particular there are a few subjects that preoccupy me the most: Cart/payment/checkout process. Quote/order ...
3
votes
3answers
1k 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'; $...
2
votes
1answer
1k 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. ...