Skip to content

magento2.4

Auto Added by WPeMatico

How to use external js for the phtml files in magento 2

my phtml file <div class=”home-del-days-main-cont”> <div class=”hof-changeoutletcontent”> <div class=”h-find-de-day”> <h2><?php echo __(“Enter your postcode to find delivery days “);?></h2> <div> <p style=”text-align: center;”><?php // echo __(“Please enter a delivery postcode to see delivery days.”);?></p> </div> </div> </div> <div> <div class=”h-news-frm”>… Read More »How to use external js for the phtml files in magento 2

Custom attribute mandatory only in frontend

i have a marketplace with 2.4.4 version in frontend i have mandatory product attribute field. Will be possible to make a product attribute mandatory in frontend and not mandatory in backend? https://ibb.co/LdNQcVc Thanks

unable To Add Contact Form To CMS Page In Magento 2?

I added below info but contact foam not showing app/design/frontend/company/name_theme/Magento_Contact/templates/form.phtml Then, insert the contact form to the CMS page {{block type=’core/template’ name=’contact-form’ template=’contacts/form.phtml’}} Form.phtml code: getViewModel(); ?> escapeUrl($block->getFormAction()) ?>” id=”contact-form” method=”post” data-hasrequired=”escapeHtmlAttr(__(‘* Required Fields’)) ?>” data-mage-init='{“validation”:{}}’> escapeHtml(__(‘Write Us’)) ?> escapeHtml(__(‘Jot… Read More »unable To Add Contact Form To CMS Page In Magento 2?