doskmc7870 2014-10-22 09:38
浏览 43

Magento,检索可配置产品价格,简单产品的折扣价格

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.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 Python报错怎么解决
    • ¥15 simulink如何调用DLL文件
    • ¥15 关于用pyqt6的项目开发该怎么把前段后端和业务层分离
    • ¥30 线性代数的问题,我真的忘了线代的知识了
    • ¥15 有谁能够把华为matebook e 高通骁龙850刷成安卓系统,或者安装安卓系统
    • ¥188 需要修改一个工具,懂得汇编的人来。
    • ¥15 livecharts wpf piechart 属性
    • ¥20 数学建模,尽量用matlab回答,论文格式
    • ¥15 昨天挂载了一下u盘,然后拔了
    • ¥30 win from 窗口最大最小化,控件放大缩小,闪烁问题