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
Related Tags
product × 4724magento2 × 1667
magento-1.9 × 901
category × 325
product-attribute × 272
configurable-product × 258
attributes × 247
price × 241
magento-2.1 × 197
catalog × 196
product-images × 165
cart × 160
magento2.3 × 151
magento-1.8 × 151
magento-1.7 × 146
custom-options × 140
collection × 138
import × 135
admin × 132
image × 130
php × 123
database × 117
magento-1 × 111
addtocart × 101
layout × 96