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.

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

报告相同问题?

悬赏问题

  • ¥20 iqoo11 如何下载安装工程模式
  • ¥15 本题的答案是不是有问题
  • ¥15 关于#r语言#的问题:(svydesign)为什么在一个大的数据集中抽取了一个小数据集
  • ¥15 C++使用Gunplot
  • ¥15 这个电路是如何实现路灯控制器的,原理是什么,怎么求解灯亮起后熄灭的时间如图?
  • ¥15 matlab数字图像处理频率域滤波
  • ¥15 在abaqus做了二维正交切削模型,给刀具添加了超声振动条件后输出切削力为什么比普通切削增大这么多
  • ¥15 ELGamal和paillier计算效率谁快?
  • ¥15 蓝桥杯单片机第十三届第一场,整点继电器吸合,5s后断开出现了问题
  • ¥15 file converter 转换格式失败 报错 Error marking filters as finished,如何解决?