Hot answers tagged

2

copy "catalog_product_view.xml" file to your theme. vendor/magento/module-catalog/view/frontend/layout/ to app/design/frontend/{{vendortheme}}/{{theme}}/Magento_Catalog/layout add below tag in body <move element="product.info.addtocart" destination="product.info.price" after="-" /> catalog_product_view file like <?xml version="1.0"?> <!...


1

I don't know is it a right way, but you can write a simple module which will add similar handles: app/code/MageWorx/CustomerLayoutHandle/etc/frontend/di.xml <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd"> <!-- Plugins --> <type name="...


1

You need to add below code in catalog_product_view.xml file under app/design/frontend/Vendor/Theme/Magento_Catalog/layout/catalog_product_view.xml <move element="product.info.addtocart" destination="product.info.main" after="product.info.price"/>


1

You can set value in $filter object and access in your labels.phtml. Add this code in your layer/view.phtml file : <?= $filter->setData('custom_variable','custom_value'); <div class="filter-options-content"><?php /* @escapeNotVerified */ echo $block->getChildBlock('renderer')->setCustomVariable($customData)->render($filter); ?>&...


1

you can override deafult.xml file by creating you own custom theme. if you are not aware of custom theme in magento then you can refer magento theme docs. hope this helps.


1

Further explanation of Mohit Kumar Arora's answer, where he said; Now the only problem remaining is redirecting to correct URL if reCaptcha validation fails. Currently, I have redirected to cms/index/index action. Note: Keep in mind the answer from Lokesh Rathore also Create your custom class to redirect to the product page, it is pretty easy but ...


1

I'm putting this here since it essentially provides the intended result, even though it doesn't do it the perfect way. Changing the layout attribute or using a update handle (mentioned in previous examples) of Magento_CatalogSearch/layout/catalogsearch_result_index.xml did not actually change the layout of the page as you can confirm by checking the body ...


Only top voted, non community-wiki answers of a minimum length are eligible