Questions tagged [code]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
312 views

Remove Tax & Shipping from this success.phtml code :(

Is it possible to make the TransactionAmount to excl tax and shipping? Please help have been trying for too long. class TradeTrackerConversion { /*public function __construct(array $orderData = ...
0
votes
1answer
808 views

related products by brand, coding

I want to display in the related products items from the same brand in order from the latest added. I was looking for an extension that can do it and didn't find it. So I figured out that the solution ...
2
votes
1answer
112 views

How can i use code from other pages into current page?

a question what can be useful to know is how to use code from other pages into the current page you are working on? e.g. I want to echo the total product count of the search query on list.phtml ...
27
votes
5answers
9k views

Why does Magento have 3 code pools?

Magento has three code pools: community core local Core: It contains all Magento default modules Community and local: We use these code pools for our custom module development. Now I have doubt ...
3
votes
1answer
592 views

Learning Magento from reviewing the core files

Prior to using Magento I had only used procedural programming techniques (and the code I wrote was very rarely reusable), although I was aware of oo, I had never had the need to use it, let alone use ...
2
votes
1answer
414 views

Change catalog product layout view by code?

My catalog product use 3 Columns Layout. The layered navigation in the right The product in the center The cart in the left. my problem when i don't have a product in the category the right column is ...
2
votes
2answers
2k views

Going from Admin Panel to Source Code and finding out what is running under the hood

I have a simple example. Say my system is messed up and I want to disable the cache manually because my admin panel is not working. How do I go from figuring out what component is run, and what php I ...
2
votes
2answers
15k views

How can I write this sql query following the Magento Way?

How can I write this unsecure, ugly, query following the Magento way without using collection? select (select sum(points) FROM ".$this->getTable('mymodule/registry')." where points < 0 and ...
1
vote
5answers
1k views

programatically created bundled product : option and product do not show on frontend unless saved from admin [closed]

i have programmatically created bundled product and also able to add selection and option data to it, but my problem is that product is not visible in front end. when i save that product even without ...
1
vote
1answer
1k views

What is getFormattedOptionValue Vs. getFormatedOptionValue?

Is this just a legacy typo? Or is there something that I'm missing. I just noticed this in the file: code/local/Mage/Checkout/Block/Cart/Item/Renderer.php public function getFormatedOptionValue($...
5
votes
2answers
14k views

Programmatically create a credit memo

Given an order that has been invoiced (by cash on delivery for testing) and is in state "processing", how can I create a credit memo for a given sku and quantity (in code that is outside of Magento ...
1
vote
1answer
213 views

get array of a product's assigned/used attributes?

what is the easiest way to start from a product instance and get a list of the attributes both standard and custom, set for that particular product ? thank you.
11
votes
2answers
13k views

Magento multiple order on one checkout or order splitting

Store products are supplied from different vendors. It is required to create multiple order for every vendor based on its products in the cart during one checkout. Is there any extension to achieve ...
2
votes
1answer
4k views

Downloading order details through Mage::getModel('sales/order')

I am trying to download order details (email + name) from my stores. We have a multi-store. The problem that I have is that when I run this code on STORE 1 or STORE 2 - both result in the full ...
1
vote
2answers
123 views

Do I Have to Copy the Full Class to the “local” code pool when Making Modifications

Can someone please answer this for me. If I create my own version of a Mage/core file in the local code pool, does it completely overwrite the Mage/core file? Or will the methods that have not been ...
2
votes
1answer
745 views

Add Country Manually in Customer A/c Details

How can we set Country in Customer A/c Details Manually. I am trying to execute code as following and So Please Suggest Answer in that criteria : if (!$customer->getId()) { $...
40
votes
5answers
7k views

Magento coding standards

I recently started working extensively with Magento and Code sniffer, and I would like to know which standards I should follow. I tried Zend coding standards, but I don't want to use the 80 line ...
2
votes
1answer
101 views

Where is translation for XML configurations is happening in the code?

In XML files (such as system.xml) I can specify a translate attribute for nodes to be translated. Where is this translation taking place in the code?

1 2
3