我正在努力改善愿望清单的功能,以便在储存商品恢复库存时可以通知客户。

我想在愿望清单页面上更改缺货文本,以显示“备份时通知”和该按钮工作。

我试图解开愿望和产品开销的工作,我也希望我能刚刚发布到$product->getSignupUrl()How的template/wishlist/item/column/cart.phtml,我现在被困了。任何想法?

有帮助吗?

解决方案

将此链接添加到您提到的模板:

 <a href="<?php echo $this->getUrl('productalert/add/stock', array(
        'product_id'    => $this->getItem()->getProduct()->getId(),
        Mage_Core_Controller_Front_Action::PARAM_NAME_URL_ENCODED => Mage::helper('core/url')->getEncodedUrl()
    ))?>"><?php echo $this->__('Sign up to get notified when this product is back in stock')?></a>
.

许可以下: CC-BY-SA归因
scroll top