I Have a product export script that uses product collection to create an array and write the array to CSV, I want to know if this script can be optimized. <?php error_reporting(E_ALL); ini_set('display_errors', 1); ini_set('memory_limit', '16G'); use MagentoFrameworkAppBootstrap; include __DIR__ . '/../app/bootstrap.php'; $params = $_SERVER; $bootstrap = Bootstrap::create(BP, $params); $obj […]
Magento2
I am using elasticsuits and added new optimizer, when tried to preview with query string it is throwing error like Exception #0 (BadMethodCallException): Missing required argument $isUsingAllTokens of SmileElasticsuiteCoreSearchSpellcheckerRequest. It is throwing an error related to missing required arguments. After debugging the flow, I manually added one parameter for testing […]
<div class="free-sample" id="free-sample-component" data-bind="scope:'free_Sample_Component'"> <button id="get-free-sample" data-bind="click:getFreeSample">Get Free Sample</button> </div> Above work in fine when click on free sample button but i want to use onload event. when page loaded then ‘getFreeSample’ should trigger.
I think normal, Magento doesn’t change the file log every day like this. https://prnt.sc/Fu2U8hDurkAs Does anyone have experience with it? Thank you so much!
Onclick Category Link , We have to display all Products ( Only if the Product attribute [ Ready to Ship ] value is “YES”. ) We don’t want to display Products in that url when the Product attribute value is No. We are using PWA Magento 2.4.5 Venia Theme. attribute […]
Basically I want to make magento default store credit(Magento_CustomerBalance) to be enable/disable at website level scope(by default its global level) I have overirded & made changes in certain files which then, it works well on store front for website level, but on magneto admin it does not work as expected […]
jQuery('input[name^="ko_unique_"]').trigger("change"); jQuery('input[name^="ko_unique_"]').change(function() { var v = jQuery(this).val(); console.log(v); if(v == 'simpleshipping_simpleshipping'){ console.log('check'); jQuery('#deliv-hold').show(); } else{ jQuery('#deliv-hold').hide(); } }); The above-mentioned code is working fine on the console but when it is used in js. it does not execute after the second line.
Currently the template is defined like this: Company/PdfDesign/etc/di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd"> <type name="CompanyPdfDesignModelCompanyDesign"> <arguments> <argument name="templateFiles" xsi:type="array"> <item name="extras" xsi:type="string">Company_PdfDesign::pdf/table/extras.phtml</item> </argument> </arguments> </type> </config> However, I want to make this dynamic and load it from the settings, so I tried to use a helper like seen here: Company/PdfDesign/etc/di.xml […]
my website homepage is accessible with index.php and theme ID which is as below https://baseurl/index.php https://baseurl/porto_home_26 how do I fix this issue?