The HTML Tag.

HTML Audio – How It Works The controls attribute adds audio controls, like play, pause, and volume. The <source> element allows you to specify alternative audio files which the browser may choose from. The browser will use the first recognized format. The text between the <audio> and </audio> tags will only be displayed in browsers that do not support the <audio> element. HTML <audio> Autoplay… Continue reading The HTML Tag.

How to check the maximum height of a group of wrapper divs and apply this height to all wrapper divs using JavaScript ?

Identify the wrapper divs you want to target. In your provided HTML code, it seems like the divs with the class “product-item-info” are the wrapper divs. Use JavaScript to iterate over these wrapper divs and find the one with the maximum height. Once you have the maximum height, apply it to all the wrapper divs.… Continue reading How to check the maximum height of a group of wrapper divs and apply this height to all wrapper divs using JavaScript ?

Fatal error: Call to a member function getSource() on boolean

fatal error: Call to a member function getSource() on boolean in C:\xampp\htdocs\my_store\app\code\core\Mage\Catalog\Model\Product.php on line 1390 Fatal error: Call to a member function getSource () on non-object products In Line 1390 file product.php To fix this error open the file: Code: /home/public_html/app/code/core/Mage/Catalog/Model/Product.php Find the lines: Code: public function getAttributeText($attributeCode) { return $this->getResource() ->getAttribute($attributeCode) ->getSource() ->getOptionText($this->getData($attributeCode)); }… Continue reading Fatal error: Call to a member function getSource() on boolean

Published
Categorized as Magento

How to set the category layout for a product in Magento using the backend?

Log in to your Magento admin panel. Navigate to the “Catalog” menu and select “Categories” from the dropdown. Find and select the category for which you want to set the layout. In the “General Information” tab, scroll down to the “Custom Design” section. Expand the “Page Layout” dropdown and choose the desired layout option for… Continue reading How to set the category layout for a product in Magento using the backend?

Published
Categorized as Magento

Uses of checkout_before event in Magento

The “checkout_before” event is triggered just before the checkout process starts in Magento. It allows you to perform custom actions or modifications before the customer proceeds to the checkout. Some common use cases for the “checkout_before” event include: Validating or modifying cart items based on specific conditions or requirements. Applying custom pricing rules or discounts… Continue reading Uses of checkout_before event in Magento

Published
Categorized as Magento

Magento default pop-up

<div id=”add-to-cart-popup” style=”display: none;”> <div class=”add-to-cart arrow-up”></div> <div class=”content”>Item added to cart</div> </div> <script> require([‘jquery’], function($) { $(document).on(‘ajax:addToCart’, function(event, eventData) { $(‘#add-to-cart-popup’).fadeIn(); setTimeout(function() { $(‘#add-to-cart-popup’).fadeOut(); }, 1400); }); }); </script> The script code uses jQuery to listen for the “ajax:addToCart” event, which is triggered when an item is successfully added to the cart using AJAX.… Continue reading Magento default pop-up

Published
Categorized as Magento