Magento: Decrease stock after a product is added to cart - magento

I would like to ask for your help to solve a problem. I need to know how to decrease stock not after an order is placed but after the product is added to cart. How can I do this programming? Does anybody have an idea? Yes, I know this is not recommended and it's crazy however I’m working on a development of an online store and the customer (store owner) requested this to my boss and I have to do, simply. Please, anybody could help me with this damn idea?
Thousands of thank you!

Even if I strongly not recommend to do so. Here are some advice.
1°) Create your own module, with an event handler on add_to_cart_after.
This event is fired when you successfully add an item to your cart.
2°) Then look at Mage_CatalogInventory_Model_Observer : subtractQuoteInventory function to see how to decrease stock.
3°) Now you have to alternate this Observer by rewriting to avoid item removed from stock a second time when order is placed.

Related

Magento price showing twice

I installed a new template on my Magento store and when I got to a product page it shows the price twice? Most of my products are a "simple" Product and I have one "Configuarable" product
Any ideas how I can get rid of one of the prices?
Here is Simple product:
Here is configurable product: (with an option selected)
Any ideas?
I'm running latest 1.9.3.7 and can't find a fix anywhere
You need to check your
app/design/frontend/default/your _theme/temlate/product/view.phtml
1st: inspect find the class or id
2nd: then remove wrong price code
before doing this take a backup of your file
I don't think anyone can help you here unless it's a popular theme people would know. The problem is not in Magento, it's in the theme files. You will need to find the theme file and check the php logic to truly know what is happening there. Best case, contact the theme developer if you purchased it or switch to a new theme.
To find the theme file responsible for printing the price, you can enable template hints. This will show the hints to you and all the customers, so be diligent about doing this live. Secondly, you will need to take a look at the block which encompasses the pricing. When you find the template name, just go to the .phtml file and see what's going on there with the price output.
Edit app/design/frontend/default/your_theme/template/catalog/product/view.phtml
Look for price divs and comment one.

Magento Event Observer to Change Prices

I looking for a Event to be triggered when a user, via adminhtml or API/SOAP, change prices of a product.
I have been check this, unsuccessfully: https://www.nicksays.co.uk/magento-events-cheat-sheet-1-7/
If the event you are looking for does not exist, think about doing overridden the core, at the time the product is safe. What do you think of this idea?
Any idea is welcome, thank you.
Hope you are doing well.
Beside that i would to like to say that it is safe to over ride the product. And the Link which you have give in your question is also very much useful to you from that you will get the file which you are required to over ride.
Take the help from that and you are half way there.
Thanks and Waiting for your Comments too :) :) ;)

How do I override the base price against Custom option Pricing?

Hi this was a question from magento forum on their site.. However I am looking for the same thing for a while, could any answer this ?
*I need the exact area in which Magento adds Base price and Custom option price *
I have been looking across these forums so many apologies if this is a
duplicate, but I am having a lot of trouble with the custom option
pricing on front-end not being absolute, but adding itself onto the
base price of the product.
I have been looking at a few modules, which I am happy to purchase, if
easy to implement, but there are quite a few that are going around.
Attached are some images if anyone has a solution.
The base price on the product (is a product with many different custom
options, could be size options also) is £7.32, which is fine as the
page states ‘From £7.32’
However, there are a few options selectable, which rather than show
(+) and ultimately add to the base price, should show the actual price
and not onto of the base price.
So Rhynogrip 70 x 198 price is actually £48.96, however when selected
it adds this to the £7.32, rather than replace it. The attached all
show this.
If anyone could help that would be great!
Thanks in advance.
I recommend you set the price of Rhinogrip 70x198 to 48.96 - 7.32 because that is what MAgento expects.

Magento does not show configurable product options

I have created some configurable products and simple products associated by using the attribute created 'size'. However, on the product view page, the dropdown menu of the size attribute only has the option of 'Choose an Option...' and my required options are not showing up. All my configurable products and simple products are enabled, visible, have stock >0 and are in stock. Also, I have ticked the simple products at the associated product tab of configurable product. I have searched for the problem but found nothing. I used every single method to fix the problem like re-saving the products but couldn't solve the problem. Can you please help me?
I had the same problem. After two days of trying different things, I was able to figure it out. The solution was quite simple. All I had to do was to re-upload the "configurable.phtml" to "app\design\frontend\base\default\template\catalog\product\view\type\options".
I hope this helps
Okay. This is a jQuery conflict. I got this same problem and someone provided me a tip on where to find the problem and I solved my own problem.
My posted question:
magento-does-not-show-configurable-product-options
Hope this helps others who are seeking answers.

Multi-part clothing store in Magento

EDIT: This has been resolved thanks to: http://www.brimllc.com/2010/12/magento-grouped-products-containing-associated-configurable-products/
The guy who runs this blog was very, very helpful. We can now add configurable products to a grouped product. Problem solved.
I'm trying to do something very simple, but can't figure out how to execute.
We've got a Magento store that sells lingerie. Tops and bottoms that each have their own size.
So a customer could order a top in small and a bottom in medium.
On the front end, I need to customer to see:
Product name
Top: S, M, L (dropdown)
Bottom: S, M, L (dropdown)
Just can't figure out how to do this in the Magento admin. Each product is entered as a simple product with the attribute "size" defined: "Small" for example.
But, when I create a configurable product and select the attributes "sizes_tops" & "sizes_bottoms" it only allows me to select products that have both defined, so obviously that won't work.
How on earth do I do this simply in Magento?
We could also have a situation where there are two types of bottoms to choose from, like full and g-string.
If there wasn't the restriction on adding simple products to a configurable product with only one of the attributes defined I'd be all set (I think anyway).
Any help is greatly appreciated.
Thanks in advance.
EDIT: I have seen this post: How to Have a Bundled Configurable Product in Magento?
classyllama.com/configurable-bundle-module - "Note: At this point, we are selling this bundle as-is. ie, we are not providing implementation support for this module. If you purchase the module and it doesn't work for your needs, we can deactivate your license and refund your money." - So it seems there is no support for the product, not very promising.
mag-manager - Site does not load
tinybrick- Does not fit the requirements
As you intimated in your post, this is not something that is possible with a vanilla installation of Magento. Having (attempted) to implement this feature repeatedly in the past, I can also say that it is highly complex and difficult to accomplish.
Hopefully, one of those modules will work well for you. Ask to see a live customer site with the module installed to get an idea of whether it will work. If not, you will be in for a significant implementation effort.
Hope that helps!
Thanks,
Joe
I guess you just have to define your tops and bottoms make them configurable separately and then make grouped items over tops and bottoms
We have turned our blog post into an easy to install module called Grouped Options. Simple products with required custom options and configurable products can now be associated with grouped products in Magento.
I know this post is old, but for anyone that is coming across this post now, Classy Llama Studios has released a new version of the Configurable Bundle extension and it is supported. You can find it here: Configurable Bundle Module on Classy Llama's Store

Resources