douleng3463 2014-10-20 09:03
浏览 36
已采纳

Magento分层定价变更格式

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?

  • 写回答

1条回答 默认 最新

  • doujiao9866 2014-10-20 10:28
    关注

    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.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 关于#Java#的问题,如何解决?
  • ¥15 加热介质是液体,换热器壳侧导热系数和总的导热系数怎么算
  • ¥15 想问一下树莓派接上显示屏后出现如图所示画面,是什么问题导致的
  • ¥100 嵌入式系统基于PIC16F882和热敏电阻的数字温度计
  • ¥15 cmd cl 0x000007b
  • ¥20 BAPI_PR_CHANGE how to add account assignment information for service line
  • ¥500 火焰左右视图、视差(基于双目相机)
  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化