How to use the prepareForValidation method in Form Request classes to cast request parameters to Enums.
Blog
I have a custom attribute I need to check and if its ‘Catalog’ then I want to hide the price as its not available on the site. If its one of the others then it should display. Originally I did this with if($block->getDisplayValue() != 0.00) but now I am adding […]
I have a form, and it is validated by: var productAddToCartForm = new VarienForm('product_addtocart_form'); So is there any way for removing some field we want from VarienForm validate? Thank for helping me.
I am showing logged in username in Magento 2 toplink. But due to Magento full page cache, it showing another username. I tried using cachable=”false” for toplink block. It works on the MyDashboard page but it slows down my home page and other cms pages due to its make cachable […]