Создайте напоминание о неполных заказах в админке
Мне нужно получать список клиентов, которые еще не платили каждые 2 дня по моей почте или что-нибудь еще, чтобы отслеживать их.
Как я могу создать уведомление для заказов, которые не выполнены?
1
Author: Fabian Schmengler, 2016-09-03
1 answers
Здесь доступно множество бесплатных расширений 1 & здесь2
Также убедитесь, что вы отправляете письма через mail server
& задания cron работают нормально....
class Web4pro_Abandonedcart_Block_Email_Order_Items extends Mage_Sales_Block_Items_Abstract
{
public function _construct()
{
$this->setTemplate('web4pro_abandonedcart/email_order_items.phtml');
}
public function getTax($_item)
{
if (Mage::helper('tax')->displayCartPriceInclTax()){
$subtotal = Mage::helper('tax')->__('Incl. Tax') . ' : ' .Mage::helper('checkout')->formatPrice($_item['row_total_incl_tax']);
} elseif(Mage::helper('tax')->displayCartBothPrices()) {
$subtotal = Mage::helper('tax')->__('Excl. Tax') . ' : ' . Mage::helper('checkout')->formatPrice($_item['row_total']) . '<br>'. Mage::helper('tax')->__('Incl. Tax') . ' : ' . Mage::helper('checkout')->formatPrice($_item['row_total_incl_tax']);
} else {
$subtotal = Mage::helper('tax')->__('Excl. Tax') . ' : ' . Mage::helper('checkout')->formatPrice($_item['row_total']);
}
return $subtotal;
}
public function getImage($_item)
{
$product = Mage::getModel('catalog/product')
->load($_item->getProductId());
if($product->getImage()=="no_selection"&&$product->getTypeId() == "configurable") {
$conf = Mage::getModel('catalog/product_type_configurable')->setProduct($product);
$simple_collection = $conf->getUsedProductCollection()->addAttributeToSelect('*')->addFilterByRequiredOptions();
foreach ($simple_collection as $simple_product) {
if ($simple_product->getImage() != "no_selection") {
$imageUrl = $simple_product->getThumbnailUrl();
}
}
} else {
$imageUrl = $product->getThumbnailUrl();
}
return $imageUrl;
}
}
1
Author: Baby in Magento, 2016-09-07 06:17:08