Magento - 免费送货信息

时间:2012-12-23 21:05:49

标签: magento message shipping

如何在产品列表和产品页面和购物车中显示免费送货消息。只有当产品价格大于50美元时,才会在产品列表和产品页面中显示该消息,如果总价格大于50美元,则必须在购物车中显示。

我该怎么做?

由于

3 个答案:

答案 0 :(得分:4)

您可以下载此扩展程序free-shipping-incentive并修改/升级/编辑等,然后按照您希望的方式进行更改。

从以下方面获取想法:

  1. here
  2. here
  3. here

答案 1 :(得分:3)

嗨马塞洛
要在产品详情页面上显示免费送货消息:template/catalog/product/view.phtml

$productprice = echo $_product->getPrice();
if($productprice >= 50)
{
echo 'free shipping is available for this product if cart total is greater than $50';
}

要在产品详情页面上显示,请在产品图片“免运费”上方添加照片标记。路径:template/catalog/category/view.phtml添加与上述类似的条件

要获得超过$ 50的购物车免费送货:
请转至管理员:

System > Configuration > Sales > Shipping Methods

已启用:是
最低购物车总数:50希望这对您有所帮助。 。

答案 2 :(得分:0)

已成功使用上述内容并添加了第二条消息,鼓励人们购买高达50.00英镑的免费送货

        <?php if ($_product->getSpecialPrice() > 50.00):
        echo $this->__('With Free UK Shipping');
        endif; ?>

        <?php if ($_product->getSpecialPrice() < 50.00) :
        echo $this->__('Spend £50.00 To Get Free UK Shipping');
        endif; ?>

问题是这些消息仅基于SpecialPrice,但如果SpecialPrice为null或0,我需要它根据Price(RRP)显示消息 不是一个伟大的编码器,但可以做一些帮助 还希望有声明显示在免费送货之前还需要购买多少