🚀 Design Faster, Sell More with Crazy Elements – Get 50% OFF Today!

Get the Deal

Warning: Attempt to read property "ID" on null in /var/www/classydevs.com/wp-content/plugins/mayosis-core/public/elementor/inc/elementor-custom-bg.php on line 131

Warning: Attempt to read property "ID" on null in /var/www/classydevs.com/wp-content/plugins/mayosis-core/public/elementor/inc/elementor-custom-bg.php on line 131

Warning: Attempt to read property "ID" on null in /var/www/classydevs.com/wp-content/plugins/mayosis-core/public/elementor/inc/elementor-custom-bg.php on line 131

Warning: Attempt to read property "ID" on null in /var/www/classydevs.com/wp-content/plugins/mayosis-core/public/elementor/inc/elementor-custom-bg.php on line 131
Days
Hrs
Min
Sec

Warning: Attempt to read property "ID" on null in /var/www/classydevs.com/wp-content/plugins/mayosis-core/public/elementor/inc/elementor-custom-bg.php on line 131

Warning: Attempt to read property "ID" on null in /var/www/classydevs.com/wp-content/plugins/mayosis-core/public/elementor/inc/elementor-custom-bg.php on line 131

How to add text to the miniature list block

We need to show many types of icon or badge in product grid or list area. 

							
					  public function install()
    {
        return (parent::install() &&
        $this->registerHook('displayProductPriceBlock'));
    }

    public function renderWidget($hookName, array $params)
    {
     
  
        if ( $hookName == 'displayProductPriceBlock' && $params['type'] != 'after_price') {
            return false;
            }
            return'<div class="product-features-block"> Test B</div>';
            

        
    }				
			
							
					<style type="text/css">.product-features-block {
                background-color: yellow;
                padding: 5px;
                width: 60px;
                position: absolute;
                top: -100px;
            }</style>				
			

Share :

Join The Ride

Subscribe to our newsletter with stories from our latest prestashop tutorial and the best tips & Tricks

Articles You may also like