Skip to content

magento man

How to remove only simple product not configurable and virtual product from collection when price is zero

di.xml <type name=”MagentoCatalogModelResourceModelProductCollection”> <plugin name=”beforeproductCollectionPlugin” type=”VendorModulePluginCollectionPlugin” /> </type> CollectionPlugin.php class CollectionPlugin { /** * Remove product which price is less than one. * * @param Collection $subject * @param bool $printQuery * @param bool $logQuery */ public function beforeLoad( MagentoCatalogModelResourceModelProductCollection… Read More »How to remove only simple product not configurable and virtual product from collection when price is zero

xaxaxaxaxaxaxaxaxaxa

jQuery(document).ready(function() { jQuery(function() { var videos = jQuery(“.Lamy-loves-NY”); videos.on(“click”, function() { var elm = jQuery(this), conts = elm.contents(), le = conts.length, ifr = null; for (var i = 0; i < le; i++) { if (conts[i].nodeType == 8) ifr =… Read More »xaxaxaxaxaxaxaxaxaxa