User Tools

Site Tools


magento_2:daily_deal

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
magento_2:daily_deal [2018/10/26 09:37]
blanka
magento_2:daily_deal [2018/10/26 09:42] (current)
blanka
Line 159: Line 159:
  
 <​code><​strong class="​product name product-item-name"></​code>​ <​code><​strong class="​product name product-item-name"></​code>​
 +
 +<​code>​
 +<?php /*----- display daily deal -----*/ ?>
 +<?php
 +$countDown =  $this->​getLayout()
 +    ->​createBlock('​MW\DailyDeal\Block\DailyDeal'​);​
 +$countDown->​setData('​product',​ $_product);
 +echo $countDown->​setTemplate('​MW_DailyDeal::​Catalog/​Product/​countdown.phtml'​)->​toHtml();​
 +?>
 +<?php /*----- end display daily deal -----*/ ?>
 +</​code>​
 +
 +If the label image is not shown, please check the configuration.
 +
 +==== 5.2. Display on the sidebar ​ ====
 +
 +You can set  General on the configuration in backend
 +
 +==== 5.3. Display featured ====
 +
 +  * Add to layout: ​
 +
 +<​code><​block class="​MW\DailyDeal\Block\Sidebar\FeatureDeal"​ name="​mw_feature_deal_left"​ before="​-"​ cacheable="​false"></​block></​code>​
 +
 +  * Add to CMS block:
 +
 +<​code>​{{block class="​MW\DailyDeal\Block\Sidebar\FeatureDeal"​ name="​mw_feature_deal_left"​ cacheable="​false"​}}
 +</​code>​
 +
 +  * Add to templates: ​
 +
 +<​code><?​php echo $this->​getLayout()->​createBlock(‘MW\DailyDeal\Block\Sidebar\FeatureDeal’)->​toHtml();​ ?></​code>​
 +
 +===== 6. Support =====
 +
 +If you have any issues, please contact us via [[https://​support.mage-world.com/​hc/​en-us|here]]
  
  
  
magento_2/daily_deal.txt · Last modified: 2018/10/26 09:42 by blanka