在我的商业网站上，我为用户提供免费送货，超过Â100。 现在我想创建一个愿意说的，"花[x]欧元更加获得免费送货，" 其中 [x] 只是
100 - $total_order 。
On my commerce site I give free shipping for users with total order over xe2x82xac100. Now I would like to create a view that would say, "spend [x] euros more to get free shipping," where [x] is simply
100 - $total_order.
Is there a way to accomplish this in Views, or do I need to use PHP?
It really all depends on where $total_order is defined/declared etc. You might be able to use the http://drupal.org/project/computed_field module to do the math and just rewrite the field with the text "spend [field] euros more...." to do it, or, if that doesn't work, or adds too much complexity, just create a views template for the field that does the math in php there and displays the field.