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
5
votes
2 answers

Best way to output ajax data from a Magento Admin Extension

I'm writing a Magento Admin extension that has some ajax callbacks in it. Up until now I've been echoing the json I'm feeding back through the ajax call with a simple echo statement in the controller. It "works" but I get a bunch of errors like…
Chris
  • 1,731
  • 3
  • 24
  • 38
5
votes
3 answers

Magento Upgrade 1.9.2.3 from 1.4.0.1: Upgrade installer thrown error: Cannot add foreign key constraint

Try to upgrade a magento system from 1.4.0.1 to lastest 1.9.2.3. Getting error to Mage_Customer module's at upgrade installer file mysql4-upgrade-1.4.0.0.7-1.4.0.0.8.php Throwing error: a:5:{i:0;s:199:"Error in file:…
Amit Bera
  • 7,581
  • 7
  • 31
  • 57
5
votes
2 answers

Magento redirects to base url using 302, how do I get it to use 301

I've notice in firebug that the non-www version of my magento store redirects to the www version using 302. For SEO purposes I want it to redirect using 301. How I tried to fix it I went to the System > Configuration > General > Web > Url Options…
Bogdan
  • 1,053
  • 5
  • 20
  • 41
5
votes
3 answers

Magento changes layout dynamically via system variable

Is there a way we could changes the layout of a Magento page (let's say a product category page) dynamically by using system variable which have been set on our own module? I want to be able to set my category page's default layout via my own module…
Kamal
  • 1,922
  • 2
  • 23
  • 37
5
votes
4 answers

how to get all products between two dates?

how to get all products between two dates like last month products, this month products , last week products and this week products etc. i tried with this: // current day to start with $start = mktime(0,0,0,date('m'), date('d'), date('Y'));; //…
atif
  • 1,693
  • 13
  • 38
  • 70
4
votes
3 answers

Magento: Information about product pictures (small, thumb and so on), where in the DB?

I am trying to find the place in the Magento DB where it saves the information about what picture is thumb and small version etc. I checked catalog_product_entity_media_gallery, catalog_product_entity, catalog_product_entity_varchar and…
EOB
  • 2,975
  • 17
  • 43
  • 70
4
votes
1 answer

how to filter all products by custom dropdown attribute value in magento?

i have created a custom dropdown attribute with a name "by_item", and added some options to it like "Suite, Bridal, Jeans" etc. getCollection(); …
atif
  • 1,693
  • 13
  • 38
  • 70
4
votes
1 answer

Magento form post action to custom controller not working - wrong routing, but why?

I have a form in my Magento store, the contact form. When I navigate to the form, it has this URL: http://www.domain123.com/contact/. There is a form and it looks like this:
EOB
  • 2,975
  • 17
  • 43
  • 70
4
votes
1 answer

Magento CE 1.4 Indexer - Index Management

I'm trying to create a custom Indexer under Index Management in Magento community edition 1.4, the main purpose of this custom indexer is to update a custom product attribute based on a set of calculations. I looked into magento core code and I…
Aboodred1
  • 1,353
  • 1
  • 10
  • 22
4
votes
2 answers

Loading a Magento mail template and fill its vars from code?

I am loading my mail template like this: $mailTemplate = Mage::getModel('core/email_template'); $myTemplate = $mailTemplate->load($templateId); Now I can get the template content using: $text = $myTemplate ->getData('template_text'); This works,…
EOB
  • 2,975
  • 17
  • 43
  • 70
4
votes
3 answers

How can I get product min sale quantity on product list view?

When I tried following code, it will just print empty string. How can I get product min sale quantity on this page? catalog/product/list.phtml getStockItem()->getMinSaleQty(); ?>
newbie
  • 24,286
  • 80
  • 201
  • 301
4
votes
1 answer

How to list 4 random products from a categoy in Magento

The question is pretty simple, the code below shows the items in one category. Those categories have 4 products. However my plan is to put in those categories 20 products, and make the following code to choose randomly 4 products of those…
Luis Valencia
  • 32,619
  • 93
  • 286
  • 506
4
votes
1 answer

I am unable to Find Configurable options on Product page Magento?

I have customized pages in magento, it was working fine until I installed Extension MagiczoomPlus. Now When I create a Configurable Product as shown in this link. I am unable to find my Configuration options on product detail page. even the add to…
ScoRpion
  • 11,364
  • 24
  • 66
  • 89
4
votes
1 answer

Magento: How to call dynamic widget block ID in a .phtml file

Ok here is what I am trying to do, I have read a ton of links and posts but it seems what I am aiming to do is a bit different. I have a few static blocks on my home page, 1 ad rotator, 1 slider that displays products defined in a featured products…
sfla99
  • 99
  • 4
  • 13
4
votes
3 answers

Magento server side form validation

is there any server side form validation in magento? i have created a from and using magentos form validation but its not gonna work if someone disable the javascipt and enters something that can be harmful. if there is no built in class for that.…
Zero Cool
  • 459
  • 1
  • 9
  • 23