Promo Banner Information
  • General Changes have been made to this section that have not been saved. This tab contains invalid data. Please resolve this before saving.
    Item Information
    Select customer group(s) to display the promo banner to
    Default is 0. The promo banner with the lower number will get the higher priority.
  • Conditions Changes have been made to this section that have not been saved. This tab contains invalid data. Please resolve this before saving.
    Apply the banner only if the following conditions are met (leave blank for all products).
    If ALL   of these conditions are TRUE  :
    •    
  • Design Changes have been made to this section that have not been saved. This tab contains invalid data. Please resolve this before saving.
    Design
    Image Direct URL Sort Order Action
  • Display Changes have been made to this section that have not been saved. This tab contains invalid data. Please resolve this before saving.
    Display
    If ALL   of these conditions are ...  :
    •    

    Use the following code to show the promo banner block in any place you want

    CMS Page/Static Block
    {{block class="Mageplaza\PromoBanner\Block\Banner\SnippetCode" banner_id="10"}}
    Template.phtml file
    <?php echo $block->getLayout()->createBlock("Mageplaza\PromoBanner\Block\Banner\SnippetCode")
            ->setBannerId("10")->toHtml();?>
    Layout file
    <block class="Mageplaza\PromoBanner\Block\Banner\SnippetCode" name="mppromobanner_snippet">
        <arguments>
            <argument name="banner_id" xsi:type="string">10</argument>
        </arguments>
    </block>
  • Trigger Changes have been made to this section that have not been saved. This tab contains invalid data. Please resolve this before saving.
    Trigger
    Set the time to auto close promo banners after showing.
    Set the time to reopen promo banners after being closed (when customers click on the close button).