views:

45

answers:

3

Is there a way(by codehack if neccesary) to change the price of a product per store website, so from display in search results and individual product view all the way to checkout and order information

I need this for a multishop website where some shops can offer a product at lower price depending on how much they paid and there's an extra percentage added depending on various options.

I've been looking around in app/code/core/catalog but can't seem to find it?

Also, I want to add some custom code to selection of wich products are displayed in a store(again according to some own data), these 2 are majorly important.

Is it possible?

A: 

If you just want to change the price of a product for each store, that much is simple. The price attribute can be declared to have any scope in the site's configuration, so you can set it to store level and give the product multiple prices.

If, however, you want to change the price of the product programmatically, you are going to have some troubles. On every page load, Magento reloads the shopping cart and makes sure that the prices that were offered are still current. As such, if you have overridden the product price in code, it will overwrite your changes and restore the original product price. You can jump through some hoops and mostly hack this behavior, but it's not really a perfect proposition. Additionally, when the customer goes to reorder (w/ the reorder button), the price will not match either.

For your second question, can you clarify exactly what you are trying to do? It's not really clear what you want.

Hope that helps!

Thanks, Joe

Joseph Mastey
Basically, I have a bunch of stores who sell their own products, but each store also inherits products from a wholesale store wich is not open to the public.But each store can choose by some product attribute criteria wich products to display on their website from the wholesale store.Not exactly a built in function I know ...
Rakward
A: 

To complete Joe's answer, you can set your price scope (Global or per Website) in

System > Configuration > Catalog > Price

If you want to set different prices but on a store view scope, one way is to create customer groups and use tier prices.

vrnet
The price actually depends on the subscription paid by the merchant(3 types, so each wholesale product has 3 prices) and then by some margins set in the back end per store ... Like I said to Joe, they basically buy from the wholesale store and the sell price is wholesaleprice * marginofprofitIt's 1 product with a custom price calculatoin per store ...
Rakward
Joseph Mastey
A: 

Solved this problem by codehack;

Rakward