Hot answers tagged

1

Magento uses the file called view.xml which is maintained at the theme level of the application. So for example, if you are using the default theme luma you should find the view.xml under vendor/magento/theme-frontend-luma/etc/view.xml In this file, you would see <images/> node inside the node. <view xmlns:xsi="http://www.w3.org/2001/XMLSchema-...


1

The correct way is to set the attribute to be used in search as well as to make it visible in advanced search by editing the attribute properties in admin -> attribute edit page -> Storefront properties -> Use in Search = yes & Visible in Advanced Search = yes Visible in Advanced Search — Gives shoppers the ability to enter search criteria ...


1

ResourceModel In you afterSave(): protected function _afterSave(\Magento\Framework\Model\AbstractModel $object) { if ($object->getData('related_products')) { $newProducts = json_decode($object->getData('related_products'), true); $newProducts= array_keys($newProducts); try { $oldProducts = ...


1

Actually there's another easier way which is Inline Translate. Translating is simply just changing 1 text to another. You can use Inline Translate or Translate using the i18n folder that Magento provided. More information can be found here: https://devdocs.magento.com/guides/v2.4/frontend-dev-guide/translations/xlate.html


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