Magento set "please enquire for price" for product - magento

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^^

Related

Magento - edit custom priced configurable product in cart

i got a problem with a magento extension(currently for 1.8.1):
I have products in my cart.
Therefore I can choose a gift and add it for free into the cart (via observer the priced is set to 0)
BUT here the problem: if the gift is a configurable product i want to set the options. After editing the product the price is set to the original-price again.
How can i keep the gift-price?
greetz,
Florian
Several ways to accomplish this, but the probably easiest (and cleanest) is via a custom total model.
Here is a description, somewhat dated but should be enough to get you started.
Just make sure your total model is calculated after the subtotal model so your quote item price adjustment sticks.
You will also want to pay attention to whether or not you want your total model to be calculated before or after the tax total model.
How do I get quote totals before saving payment method?

Limit cart to 1 product per attribute/type - Magento

Our company sells pharmaceuticals online and by law we are limited to how much of a particular drug a customer can purchase.
For singular products with one brand this is easily controllable through default Magento functionality, my problem arises when we have different brands of a particular drug.
In a nutshell I can currently limit a customer to 1 pack of paracetamol from brand A but there is nothing to stop them getting another pack from brand B at the same time.
I would like to be able to check the cart for products with a particular attribute and limit them to 1 per cart. Ideally this would be when the customer clicks add to cart and the message would be displayed via the default Magento alerts that we currently have.
EDIT: I think the easiest way to solve this would be to check the SKU codes currently in the basket when adding a product to the cart. If there is a match, Throw up an error else add the item to the cart.
I think this link will help you but you need to modify as per your requirement. http://ceckoslab.com/magento/magento-check-if-product-is-in-cart/..
This link is to check the cart whether the same product is added or not? So modify this as per you requirement
You can set maximum allowed quantity in cart from admin panel. System->configuration. From left tab see catalog->inventory. Set Maximum qty allowed in shopping cart to 1.
If you want to add check on whole cart. see this paid extension

Magento products use a custom price when added to cart

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.

Magento sale watermark

Due to being a new to Magento world, I have limited understating of its coding pattern.
I have created a cart price rule which works fine. However now I want to show the sale watermark image on product listing page making product on sale more prominent for customers. This sale watermark must not be displayed when sale period is over.
My approach is as below
Modify the cart price rule form to let admin to upload corresponding sale water mark. Then update list.php to determine the rule and then add sale water mark image to product list.As cart price rule specify the sale dates, I am assuming after due date rule would become inactive and image would not get displayed.
However before i start coding for it, I am wondering if someone has easier approach.
This extention will probably save you alot of time.
I have bought from them many times and they are great.
AheadWorks On sale Extention (affiliate link)
if products are on sale it means you are using special price??
if yes than you can use special price and follow these simple method to achieve what you want
http://www.pauldonnelly.net/magento-display-sale-icon-if-special-price/

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".

Resources