Magento products use a custom price when added to cart - magento

Situation
My client has a Magento catalogue of thousands of simple products (wheels & tyres). Some of these wheels & tyres can be purchased together as a package (4 wheels & 4 tyres), and in this instance they can be purchased for a lower price, which I'd ideally like set as a separate price attribute.
They cannot be bought for these reduced prices individually though.
I have already created a custom form and controller for adding these products to the cart using the standard price, which works fine, but I need to make it so that it uses the reduced 'package price' for each unit instead.
What I've Tried
I have tried using tier pricing, but this doesn't work because as soon as someone buys 4 tyres on their own, they'll pay the package price rate.
I've tried setting a custom price on the product when adding to cart, which works but obviously creates that price for the product for general purchase so isn't an option.
What I Need
I need to know if there's a way that I can create a discounted/custom price on the products added to the cart using my custom form? I've scoured the forums but I'm not come across a solution yet.
I don't mind using an observer if need be, but I'm a bit stuck right now! I know that once in the cart the products get their prices directly from teh database so I don't know if something has to be done to the quote object instead?
Any help or advice much appreciated.

Related

Magento 1.9 Custom Math Pricing / Simple Product Issue with Price

I've installed an extension, Custom Math Pricing by Mico Solutions, and I am experiencing 2 issues with my site now.
Issue 1: When I customize the product, the price is updated correctly on the product page, however, when the product is sent to the cart, a portion of the price is missing (length x price per foot). I checked in the database to look for the price and could only find records of the wrong price so the price is only showing for the product page. The portion of the calculation that is missing from the price includes an attribute which is set as a variable rather than custom options. The custom options calculate perfectly.
Issue 2: When I customize a simple product and add it to the cart, I cannot go back to that product page and customize it a second time, the price remains fixed on the "base" price. Let's say the product has a base price of $10.00. When I customize it, the price stays at $10.00 but is different in the cart. I have to delete my browser cache and cookies in order to customize it again and by doing that, my cart is emptied.
So my question is, where in the code can I find the pricing that is being sent to the sales_flat_quote table in the database. Additionally, how can I debug or correct the issue of customizing a product a 2nd time?
It seems like you've got an issue with conflicting extensions. Your best bet is to go to the Admin modules section (Admin > System > Configuration > Advanced > Advanced) and disable anything else that appears to deal with product pricing. Reset the cache and index and try again. I am somewhat familiar with this extension and it's not compatible with configurable products... make sure your products are simple product types when adding products.

Price in Cart is not correct Magento 1.8

Today I've run into a new problem and can´t find a solution.
I've added some simple products and configurable products via MagMI. Everything is fine. Products are shown in the front-end as I want it. But following happens:
simple product 1 has a price of 49€, simple product 2 has a price of 90€.
Both are part of the same configurable product which has a price of 49€. Now, in cart, the single-price of both simples is 49€. (If I print out $_item->getSku() I get the right skus of the simple products, so I think, the products in cart are the correct ones)
How can I fix this?
It would be also helpful if someone could tell me where the subtotal is built exactly - I can't find this.
I would be thankful for all help or hints.
If the simple products are not visible individually then the price shown will be the price of the configurable product. The pricing variations on the associated single products are managed in the Associated Products tab of the configurable item.
Pricing is managed here as a plus/minus relative to the price of the main configurable.

Magento bundle products special price for child item only

Background
I am trying to create a possibility on the webshop to create packs of products. A pack is for instance a product (let's say a digital camera) and multiple accessories (extra charger, memory cards, ...). The point is to push the customer into buying the product together with accessories by giving a discount if you buy all these products together.
What I've done so far
I've created a bundled product in magento where each product is a bundle option. This way I managed to display the pack correctly and I'm able to set a special price for the pack as a whole.
Where I need help with
For this pack I should be able to set the price of the children (the option products) for each option. Currently the price can only be set for the whole package and I require it to be changed like a special price. Basically you would have a special price only if it is in a bundle product and the price should be set specifically for the bundle.
By default, a quantity can be set with bundled options, so I guess this can be extended to something where I can set a price. Can anyone point me in the right direction of give me some code examples of how this can be done?
In case this should be necessary, we are running Magento Enterprise 1.9.1.1.
Thanks for your help!
Since nobody came with a solution I will answer my own question... I actually was on the right track and just had to change the price type to "fixed" when you create a new bundled product. That way, the price can be set per item individually which was what I wanted.
The rest was just a simple matter of coding the bundle products to display nicely, f.e. as simple items separated by a "plus" sign or something like that. I also removed the unit prices so only the bundle price is visible, but the prices are still set correctly. Also the base price (bundle price) should be set to 0.
And that was it, not much coding, but more bad luck I started with "dynamic" pricetype instead of "fixed".

Magento set "please enquire for price" for product

I have a magento site, and I want to set all the products prices, baskets and checkout screens to say "Please enquire for costs" instead of trying to display actual prices.
All payment is via purchase orders, so I dont need real prices on there, and people who enter a PO number (PO is the only payment option available) already know how much their purchases cost.
Is there a way I can do this without hacking all the templates?
I'm afraid you need to change all template occurences of price accordingly.
The only way I can think of would be a type conversion in the product models from decimal to string, but that's an absolutely no go to me.
The products price attribute is involved in many calculation/sanitizing/validation processes of the Magento core modules and just would drive Magento to go nuts^^

Magento and configuable products for a printing service site

I am building a webshop in magento for an online printing service. The functionality I’m looking to implement is something in the lines of this example.
http://www.digitalroom.com/secure/brochures.html
The price is affected by the configurations you choose, and also there is a discount for ordering larger quantities.
I have made my products as configurable products and set up the pricing for each individual simple product. But magento seems to disregard the pricing of the simple products and solely base the price on the configurable product.
Is this the right way to set this up? Or is there another best practice to set this kind of product up in magento?
If it is the right way, how do I get Magento to act on the pricing structure under the simple products instead of the one under the configuable product.
Use the Simple Configurable Products extension.

Resources