Magento Event Observer to Change Prices - magento

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 :) :) ;)

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 attribute show in dropdown menu

I have make different attribute in my webshop.
Now well a show only in my dropdown menu show the attribute model, brands and category.
It's possible, how?
In short answer - Yes! It's possible.
In longer answer - stackoverflow is community who help programmers with specific code. Show some example or just google it from start point.
Here is amazing resources who can help you.

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.

Magento: Decrease stock after a product is added to cart

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.

How in magento add manufacturer in the URL of the product?

How can I change magento so that:
{site}/category-name/sub-category/product-name
becomes
{site}/category-name/sub-category/manufacturer/product-name
Where is the standard Magento manufacturer attribute?
Thanks :)
You would need to overwrite the system's url rewrites to do that. You could either extend the class that creates the product rewrites in the first place (it probably happens somewhere in the product controller in the admin site) or create an event observer which updates the rewrites after the product is saved.
You will need to create any necessary attributes for manufacturer, etc, in the admin panel if you want to use them, but that won't really solve this problem. I understand what you're looking to do, but messing with the parsing of product URLs doesn't seem like a great idea (you're likely to run into problems). You could probably change the product url in the database (usually saved as 'some-product-name.html') to something along the lines of 'manufacturer-name/some-product-name.html'. I don't see any immediate reason why that wouldn't work, though allowing the customer to change that themselves may not be trivial.
Hope that helps!
Thanks,
Joe
It is a workaround, but you could create a manufacturer subcategory and place the products in there?
So:
root -> subcategory -> manufacturer-subcategory -> product
?
Because as per Joseph's answer, I think what you're attempting to do would be a little messy.

Resources