Questions tagged [product]

Denotes a question related to the Magento products.

Filter by
Sorted by
Tagged with
3
votes
1answer
1k views

Programmatically created attributes showing up in backend but not frontend

I have a script that bulk creates attributes and sets in Magento. The attributes and their sets look fine, and the settings are correct. When these attributes are created, I use AMartinez's ...
1
vote
1answer
922 views

frontend_type in eav_attribute table

I am working on custom product upload form where sellers can upload their products. So i generated a form using the attribute sets which will give the related attributes, lable, type which is required ...
4
votes
1answer
10k views

Get storeId from product

How can I get the store ID from a product instance ? I have tried: $product->getStoreId(); but it don't works. Thanks for help.
3
votes
1answer
1k views

How to get a Product ID after a product post via REST api to update product category

I want to insert products from a csv-file into the Magento DB via the REST API. First I try to update one single product. The product is inserted into the db but this product needs to be assigned to ...
3
votes
2answers
19k views

How can I get a product's status for a store?

This really does not seem like it should be difficult. I seem to be able to change a product's status for a given store, but not read it. Below is a test script I've been using, <?php // Make ...
0
votes
2answers
457 views

Table cell with scroll in product page

I have an "additional information" table on my product pages that contains several rows of product attributes and their values. I have an "ingredients" attribute that can sometimes be very long, so I ...
5
votes
6answers
12k views

Product pages displaying 404 page

We've recently upgraded a site from CE 1.5.0.1 to CE 1.7.0.2, and now all product pages just resolve to a 404 page. This applies for direct links, with the product-url.html after the domain, and also ...
0
votes
1answer
2k views

magento admin product grid add category filter to admin grid without adding column

i am trying to filter grid by category without adding category column, is there a way by which we can do this custom filter to grid. below is what i did function prepareCollection() { $catIdArray = ...
1
vote
1answer
4k views

Adding onclick event and id selector for an Admin Grid column of type radio

I have an admin grid which shows up product details(like the one in Catalog/Manage Products) with the first column as radio type. How to add onclick event, which should call a js function with a ...
2
votes
1answer
3k views

How to allow increments in decimals in magento

I am building a site for a client who sells fabric. She'd like to allow her customers to order in decimals. Does anyone know if this is possible?
2
votes
2answers
1k views

How to add custom product 'option' to container2?

I have some two options added to products via the admin panel. What I want to do is insert some custom html between these options. Is it possible to do this programmatically ? Something similar to: $...
2
votes
1answer
990 views

How can I check if an image is already set against a product?

I am doing a product import routine and have images added to my product. The problem I have is that magento creates a dispretion path and then add's some numbers onto the end of my image file name to ...
14
votes
4answers
6k views

Exclude certain products from Magento sitemap.xml generation

I need to make sure a handful of products are NOT in the generated Sitemap.xml file in Magento. I found a couple of example for things like CMS Pages but nothing for doing product pages, and more then ...
2
votes
3answers
4k views

Most efficient way to product top most level category

If i have a product model instance, what is the most efficient way to get the highest level category i..e closest to root for that product? If the product is in the following categories i want the id ...
4
votes
2answers
4k views

Loaded product missing media_gallery attribute

I am loading a product like so: $product = Mage::getModel('catalog/product')->loadByAttribute('sku', 'MyStockCode'); Then I try to get the images using: $existingGallery = $product->...
0
votes
1answer
326 views

Add a product collection to customer entity type

I would like to allow a logged in user to select his or her favorite products. This list should be maintained from a new account page to be created following Alan Storm his article: http://alanstorm....
5
votes
2answers
2k views

price_index table indexes wrong max_price?

We're currently experiencing a strange behaviour with the price_index table. We're having grouped products with several simple products associated, e.g. Grouped product Associated product 1 - 25,93€ ...
1
vote
1answer
13k views

Dynamically calculated prices save before add to cart

I have a script that dynamically calculates price on the product detail page and then I need to save the price so that it is correct in the user's cart when checking out. I have the following in my ...
1
vote
1answer
7k views

Category active product count on category list

I am trying to display number of products in in each category.. and using this code to display all subcategory of category id:3 It is showing but it is counting not visible and disable product also, ...
1
vote
1answer
5k views

Magento - Programming updating/adding cross sell products

A site I'm building is migrating product information which includes cross sells (which may be more than one). In a local database I have put information on product sku and entity ids. My script takes ...
2
votes
2answers
61 views

Accessing product from template

I'm new to the whole Magento thing... I'm trying to show products on the front page. I registered a custom template and my home cms page uses it to load. In my template file, here is the code. $...
1
vote
1answer
912 views

Group-prices isn't getting added to the cart

I have some products, where there are some normal prices, but when logged in as a customer (in a specific group) the prices changes. These price-changes works fine on the product-view, but when adding ...
6
votes
2answers
2k views

Edit products from certain category

I need to change the category from a couple of products. The products I need to change are all from one category, but it's not possible to sort by category on catalog -> manage products, is it? On ...
2
votes
1answer
2k views

MAGMI Product Positioning Import

I'm using MAGMI to import products to my Magento store. There's an option for product positioning inside categories. But I'm not using it right or it's not working. On this page: http://sourceforge....
0
votes
1answer
976 views

I can't cancel orders. Integrity Constraint Violation [closed]

Whenever i try to delete an order, by entering the order and then clicking cancel, i get a "The order has not been cancelled" Message. I tried deleting the order from the list, and issuing an action ...
1
vote
1answer
1k views

Access price variable in product object

How do I access the price in one of the simple products? The following is the beginning of the array I want to access from my var_dump($_product->debug()); (stackoverflow wouldn't let me post the ...
82
votes
6answers
71k views

Difference between getSize() and count() on collection

I have heard many times that they both are the same. But I am facing a weird issue, in the product collection of CatalogSearch module, count() is returning correct product count while getSize() is ...
0
votes
2answers
316 views

Re-assign Simple Prod. Images to the Configurable

I have this scenario: we are actually using a colors-watch ext. for configurable products. This extension works using the images that as been loaded in the associated simple prod. We need to ...
3
votes
2answers
1k views

what are realistic reasons to create a custom product type

I'm trying to wrap my head around when/why I would create a custom product type. I have to imagine there have been opportunities in the past where I probably could have benefited from this, but I'm ...
1
vote
1answer
78 views

How can I know if a grouped products contains any MAP products?

Basically I need to know if a grouped product contains any MAP sub product. Is it possible to get this information without loading all product associated to it?
2
votes
1answer
271 views

Define pay-what-you-want products

How can make the customer pick the price of a product? Is it possible to define price steps for this? Like 5€, 10€, 15€, 20€
1
vote
3answers
2k views

Moving Products from 1.4 to 1.7 - dilemma

I've to move a lot of products from an old Magento site (v. 1.4) to a new one (1.7) with fresh new theme with new modules it's also a multisite, infact there' already a lot of stuff I configured in ...
6
votes
3answers
2k views

Product load event - regardless of context

Is there a single event that I can create an observer for that gets fired when a product is loaded either using getModel or through a collection? The exact use case i have is that i have a custom ...
0
votes
3answers
180 views

Buy a single product from bundle product

I have a set of Virtual products in a bundle product, Is there any way to make each of virtual products buy separately in Magento. How to edit view of product list in a bundle? I am new in Magento,I ...
25
votes
2answers
25k views

product attribute to quote item and order item

What is the correct way in Magento to have a product attribute be automatically persisted to quote an item and then finally to order item? Is it as simple as a little config XML or is it a manual ...
2
votes
1answer
89 views

Products in cancelled orders become inactive. I need them to remain active.

Pretty much my title. I'm running a pretty special store, which only has one of each product, orders take them out of stock, which therefore makes them inactive, but if the order is cancelled, they'...
2
votes
1answer
4k views

Can i call getMediaUrl method in template file with a default block instance?

In my custom phtml file (say foo/bar.phtml file), i need to call $this->getMediaUrl(some/imagefile), How do i use $this instance with a default block instance(say core/template).
4
votes
2answers
13k views

Cms page (or static block) inside product description

I need to add some static content inside the product description. I have a store where I bulk add all my products via CSV import and many of them share common HTML code in the description field, for ...
2
votes
1answer
4k views

Filter by Product's Custom Options or set diffrent options for each products from Attributes Sets

I don't know what is the best way of doing this. The idea is that I have about 500 products. I created 11 Attribute Sets (to cover 11 product categories). These attributes are filterable. But I need ...
0
votes
2answers
2k views

Adding a (bundle) product to cart programmatically on different websites/stores

How to add a product to cart is what I have already working, but it seems to be working for the default store only. So when I add a product to cart with the script on the default website/store, the ...
3
votes
1answer
2k views

Add second addtocart.phtml file

I am looking to add a second addtocart.phtml file to a custom product layout I am overriding the product template fine using the below in the products "custom layout update" field <reference name=...
1
vote
3answers
2k views

Tier Pricing of simple product not working with bundle

Bundle items don't seem to listen to the simple product tier pricings. Is it possible to set up a product to sell in this way at all with a fixed service charge and tier pricing? I have the following ...
3
votes
2answers
2k 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 ...
2
votes
1answer
3k views

Unable to change in stock text for products in Magento

This is quite a weird one... At some point previously, we had changed the default 'In Stock' text to 'Available to order' on products in Magento. Default:- Availability: In Stock New:- ...
16
votes
2answers
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?
0
votes
1answer
963 views

Modify price adjustment of configurable products through API.

I'm trying to modify my configurable attributes options that I have set in Magento, but upon save I recieve a PDO error saying that it's a duplicate. I haven't been able to find a way to set these ...
0
votes
3answers
3k views

Magento shows 404 error page on a product on one PC

This is a weird problem. We have an item on the test server showing a 404 error page when you put in the URL key after the root URL (eg. www.mystore.com/url_key), however on our local machines they ...
3
votes
3answers
34k views

Showing related products in product view page

I'm working on a website where I'm using Magento 1.7. I want to display the related product of the current product on product view page. I tried many links like these, but none of them worked for me. ...
1
vote
1answer
432 views

Load Configurable Pricing Adjustments

I'm trying to import configurable products with the price corrections. The products and the relations are already in, but I can't seem to get the price corrections working. This is what the ...
5
votes
1answer
14k views

Magento doesn't displays group price

This is a bit frustrating but, some of my products displays the group price while some others not. I have the customer group X, and for this customer group I have different prices than the regular ...