Update magento price using custom attributes - magento

I am a newbie to Magento Framework.
Can any one tell me how to add custom pricing to products based on custom attributes.
For example: I would not enter price or I will enter a dummy number for price in admin panel and other attributes like weight and type of item and category.
Based on the category, weight and type of item I want to calculate the actual price something
like price=weight*category+typeOfItem And also if there is any special price to the product it should also apply along with tier prices
I have created a custom module using Alan Storm's Blog but I am unable to override the pricing. Sometimes it works in the product listing page but never works with 'tier' price.

You might find it easier to use a configurable product for this, assuming you don't have a huge range of weights and products
Otherwise maybe look at overwriting the
getFinalPrice() method in the Mage_Catalog_Model_Product_Type_Price model.

Related

Configurable products for different product sizes and price

I am trying to make a store for car care chemicals in Magento for online buyers and company distributors.
Each chemical has a size option - 0.5 liters, 5 liters, 207 liters
And the above options have price difference depending upon the customer is a normal buyer or a distributor.
I have made a configurable product, but the price in the
"Super product attributes configuration" overrides the Group pricing in the simple products.
Can somebody please suggest the right way?
You have to create a attribute "size" as dropdown with all possible sizes.
When you add the product you have to choose one of them.
Magento will not take into the account the simple products' price of a configurable one. Simple products' prices are ignored. if you want to sell a simple product X having price $120 and a simple product B ($130) then set configurable product's price to $120 and add products you want to associate with this configurable product. After adding them click on 'Associated Products' tab which opens a block named Super product attributes configuration, which contains options and price differences and set the prices accordingly as described in attached image.
Moreover There's an extension that allows you to use simple product prices instead of price differences Since it's free extension. The extension is "Simple Configurable Products(SCP)".

How to remove information in Magento catalog, but only for specific product type

I am wondering how can I delete this two divs -
in Magento catalog, but only for specific product type. In short, I would like to have product type which would appear in catalog only with product-image and product-name, without - price, Out of stock, Add to Wishlist, Add to Compare.
It's possible to load different layout updates depending on loaded product type. You can see an example of how it's done in Magento for configurable products here: https://github.com/LokeyCoding/magento-mirror/blob/magento-1.7/app/design/frontend/base/default/layout/catalog.xml#L275-L287
It's possible because view action of product controller makes this to be executed: https://github.com/LokeyCoding/magento-mirror/blob/magento-1.7/app/code/core/Mage/Catalog/Helper/Product/View.php#L59-L60
You can change the design for any product from the admin.
You need to create a separate theme with a different product page which will have only the attributes you would like.
Then you can select the design for that specific product. Please see the screenshot, how you can change design for any product

Magento product price before catalogue price rules are applied

I'd like to be able to show the price of a product in my Magento store before the catalogue price rules are applied to it. Ideally I'd just like the number typed in the "price" box in the backend with no tax, no rules, no modification of any type.
$_product->getFinalPrice() is great for showing the final price after all these rules, and is normally just what I need. Is there something that shows the "non-final" price?
Assuming it's a standard product object, you can just use $_product->getPrice() which should retrieve the value entered in the price field on the backend for that product.

Associated Product not showing the different price

I have just added a product and everything works fine. The product is a top with different attributes: size and color.
However I want to have reduced price on one of the different colors like in a sale, so I went into the associated products section and changed the price. However, whenever I go to the website and click on the color of the reduced price top, it still shows the original price and not the one I just changed.
How can I get it to show the price I changed it to?
Out of the box the only way to do this is via the price offsets for each configurable option under "Super product attributes configuration" as shown in the attached image:
Otherwise, you can use an extension such as Simple Configurable Products http://www.magentocommerce.com/magento-connect/simple-configurable-products.html
Go to system > Index Management and reindex Product Prices data
It sounds like you are using a configurable product with associated simple products. As far as I'm aware Magento only refreshes the product price for bundle product types.
I have seen a lot of people recommending this module.

Magento - show price range of simple products

Is it possible in Magento to show the price range of simple products as opposed to the price set for the main configurable product.
For example, say we have a t shirt, configurable by size and each with a different price. It doesnt make sense to show a fixed price on the catalog page does it?
I would expect to see something similar to Prices from £3.99.
Does anyone know if this is possible without any custom modification.
I know, it is NOT good solution but worth to try.
Create simple products of each t-shirt based size then group this products like "Polo T-Shirt". Users will see only "Polo T-Shirt" but they can choose what they want from drop-down list.

Resources