It is evident that Magento always displays the lowest price of the original price, special price, etc.
I have a condition where I have to display the customer specific price that comes from an ERP system. Let's call it special price. If that special price is higher than the product's price, Magento obviously chooses the least one.
The question, is there any way to override this in a smooth way? Because regardless of the products' price, the requirement is to display the customer specific price from the ERP system on Magento.If there is no customer specific price available, it is OK to fallback to the products' price.
Override
Mage_Catalog_Model_Product_Type_Price
Check Customer specific price against Products price and Do the logic
Related
I need to create a module in prestashop 1.7.3 to make available wholesale prices. The main idea: There are 3 types of prices in cart: retail price, small_wholesale price and BIG_wholesale price. I need to add small_wholesale price and big_wholesale price fields to my product and allow admin to add product and set them in prices tab(below retail price). Actually it's easy to create extra database fields in product table what i did, but still don't know what to override to create fields in product creation page, it should look like this.
I am building an online shop where I want to display on the category page and also on the product page the special price also when the qty is 0 and stock is manageable. The idea is to say that the product can be on demand in 24-48 hours and it has a discount but the product is not in actual stock of the client but it can arrive to the customer in 24-48 hours.
How can I make this in Magento because when I look now is taking only the original price and not the promotional price when qty is 0.
in magento version 1.9.1.0 it displays product with special price if it is out of stock so no need to change in code in magento. if not display there then use
echo $_product->getFinalPrice();
for display promotional price.
From what it appears you simply want to discount active in stock products and stop doing so when they're out of stock and then notify the customers that they have a lead time of 24-48 hours if so.
There's a Magento inventory option to do just that:
admin/system_config/edit/section/cataloginventory
Then you need to add a promo that discounts products that are quantity > 0
The promo would reduce necessary products to the 'regular price' but not if their inventory is 0.
admin/promo_quote/new
By default Magento does not give you those promotions so you'd have to use a third party module for such detection/discount such as Amasty which has some of the most robust, stable, compatibly modules in the business:
https://amasty.com/
im creating a magento store for a B2B store.
The issue im facing is that i need to have a different price for a different customer group.
i have checked the built in group price feature in Magento but this is not what i need since it just shows a price for the specific groupo only when it is LOWER than the actual price and it shows it as a SPECIAL PRICE in the front end
What i need is to have a different price for each customer group without showing it as a SPECIAL PRICE is that possible ?
if yes how could i do that ? do i change some PHP code ?
Magento will always display the minimal price between actual price, special price, group price and the catalog price rule.
I'm creating a product feed for several client using my extension. For this specific client, they have different price setup compared to others. They have configurable products and under that simple products connected to configurable one. Their prices usually match but when they put a product under discount, they only set discounted price to configurable product. In their site, discount price getting read from configurable one. But in my extension, I'm reading products one by one and when I get the price of the simple product, it returns me non-discounted one. I'm using the following code:
$price = $product->getPrice();
$discount_price = $product->getFinalPrice();
Is there an easy way or anyway to retrieve configurable product's discounted price while processing simple product?
Edit: I'm also posting orders after I get the product by its SKU. I'm having the same price issue in there as well.
At the moment, my webstore uses several different customer groups to provide discounts, such as trade discounts. The functionality works fine, but i want to change the way the prices are displayed on the front end. Right now, the prices show like this:
£700.00
Buy 1 for £450.00 each and save 36%
For instance. So the customer is logged in, they can see the Retail price and then their price is the £450. I wish for it to say
List Price: £700.00
Your Price: £450.00 (save 36%).
Is this possible?
The other issue is that when a customer is not logged in, i just want them to see the list price, and not the discounts etc.
How would i do this?
Yes its possible. You have to play with the file price.phtml and/or view.phtml.
To get original price, use getPrice() method on your product object. To get discounted (final) price, use getFInalPrice()
Product object is usually $_product, so
$_product->getPrice();
$_product->getFinalPrice();
Now you may display however you wish.