Questions tagged [magento-1.4]

Magento is an Ecommerce platform written in PHP. It uses a configuration-based MVC system and heavily leverages Java style OOP patterns in the business logic, UI, and layout rendering application layers. This is a tag for Magento's 1.4.x.x version

General Magento questions may be asked on Magento.SE. Questions not related to programming are off-topic

Related tags


694 questions
107
votes
13 answers

Service Temporarily Unavailable Magento?

My application was working fine yesterday. I started my PC today. When I tried to start Magento I got this error message. Service Temporarily Unavailable The server is temporarily unable to service your request due to maintenance downtime or…
ScoRpion
  • 11,364
  • 24
  • 66
  • 89
23
votes
5 answers

How to get parent product id in magento?

I know that in Magento 1.4.2.0 one gets parent id's like so list( $parentId ) = Mage::getModel('catalog/product_type_configurable') ->getParentIdsByChild( $product->getId() ); My question is: if I don't know what the…
veilig
  • 5,085
  • 10
  • 48
  • 86
21
votes
4 answers

Magento Email Template If Statements

The Magento Email Template If Statements aren't evaluating to true when I expect them to. Can someone tell me what's wrong? Take a look at the following code: {{var customer.group_id}} {{if customer.group_id}}Print true{{else}}Print…
John
  • 32,403
  • 80
  • 251
  • 422
17
votes
1 answer

Magento get configurable product from simple product even if config product is disabled

I need to get the parent configurable product from a simple product, even if the parent product is marked as disabled. I also need to get the status of the configurable product (enabled or disabled). Right now I'm getting the parent product like…
gregdev
  • 1,863
  • 3
  • 23
  • 28
17
votes
13 answers

How to put magento in maintenance

Is it possible to put a magento site under an maintenance flag so that visitors will get a message that the site is under construction? I can't find this setting in the admin area. Another solution will also be welcome. Any help would be…
Justmac
  • 550
  • 2
  • 8
  • 22
16
votes
3 answers

In Magento, how do Blocks Grab Data from Models?

Can someone please explain this? Let me tell you what i know. If the first three points are good, please explain the 4 point. Request come to controller. In Controller Action we initiate Models. Models collects or generates all the information…
Ricky Sharma
  • 1,839
  • 3
  • 24
  • 44
16
votes
7 answers

How do I rename an attribute code in Magento?

I want to rename an existing attribute's code to something else. The reason is because the attribute field is filled out for 300+ products and I don't want to have to re-import all of those just because I changed the code of an attribute.
user9903
14
votes
3 answers

filtering product collection on "is_salable"

I would like to filter a product collection to show only items that are in stock. I thought this would be easy given that there's an attribute called 'is_salable' that is 1 (true) if it's in stock, 0 (false) if not. But no matter what I do, it…
Mageician
  • 2,918
  • 9
  • 43
  • 69
13
votes
3 answers

Add Username to Order Comment History

Is there a simple way to add the username of the person who is making the comment in the admin history to the comment thread on the order? -- edit -- Another way of asking this would be how do I add an additional field to the comment history model…
Chris
  • 1,731
  • 3
  • 24
  • 38
13
votes
3 answers

get an array of all a products attributes in magento

I cannot figure this out! I am trying to get a list of a products attributes into an array on the list.phtml page. I have tried everything. I have seen a lot of solutions that use $attributes = $product->getAttributes(); but I cannot get this to…
Chad
  • 271
  • 2
  • 7
  • 16
13
votes
6 answers

Make all store images the base, small and thumbnail images in Magento?

I have a Magento store that has around 3,000 products. Almost all of these products have a single image attached to it. For some reason, even though I set the small image and thumbnail image as the same as the base image in the import CSV file, only…
dannymcc
  • 3,744
  • 12
  • 52
  • 85
12
votes
4 answers

How MVC works in magento

Thanks for the previous replies. I am new to Magento and don't know how MVC operates in this framework. I want to display "Hello world" using MVC format--i.e., the controller imports the string from the model and transmits it to the view for…
RAAAAM
  • 3,378
  • 19
  • 59
  • 108
12
votes
4 answers

magento getting product type from product sku

How can i get the product type(simplee,configurable/grouped ...) using product sku or id, i have loaded product collection and from that trying to prict type by $_product->getTypeId() But its not printing the product type. Please help me Thanks
Elamurugan
  • 3,204
  • 13
  • 59
  • 104
11
votes
2 answers

How do I find out if product has a product image?

To get the image src in a template file the following code is used: $this->helper('catalog/image')->init($_product, 'small_image')->resize(200,100); But how can I find out if there is an image associated with the product or if the placeholder image…
Robban
  • 1,191
  • 2
  • 13
  • 25
11
votes
5 answers

Magento - How to display ALL PRODUCTS in the homepage?

Display all products in the homepage? Anyone who have had done this? Note: This can be done in the CMS pages by adding manually each and every category id.. I don't want to do that.. Too much hassle if I have hundreds of categories.. I think this…
Christian Young
  • 543
  • 3
  • 8
  • 19
1
2 3
46 47