关于magento:The-store-that-was-requested-wasnt-found

SET FOREIGN_KEY_CHECKS=0;UPDATE `store` SET store_id = 0 WHERE code='admin';UPDATE `store_group` SET group_id = 0 WHERE name='Default';UPDATE `store_website` SET website_id = 0 WHERE code='admin';UPDATE `customer_group` SET customer_group_id = 0 WHERE customer_group_code='NOT LOGGED IN';SET FOREIGN_KEY_CHECKS=1;

October 19, 2022 · 1 min · jiezi

关于magento:Add-Grand-total-in-the-shopping-cart-rule-condition

When you are setting up a Shopping Cart Price Rule in Magento, you can choose a base condition on which the rule will apply on the subtotal. There are instances when the merchants may want to base the conditions on the final price, or the price that includes the subtraction of any other discounts applied. The code below shows how to add a grand total condition in Magento, which in this case will be a combination of the subtotal plus any discount applied. ...

December 2, 2020 · 3 min · jiezi

关于magento:Magento-中的-Areas

Magento 中的 Areasarea 是一个逻辑组件,用来组织申请解决相干的代码。针对 area, 咱们绝大部分时候不须要做非凡解决,然而了解 area 对于了解 Magento 相当重要。在 MagentoFrameworkAppArea 类中的 AREA_* 相干常量暗示了 area 的品种。大抵有以下几种: const AREA_GLOBAL = 'global';const AREA_FRONTEND = 'frontend';const AREA_ADMINHTML = 'adminhtml';const AREA_DOC = 'doc';const AREA_CRONTAB = 'crontab';const AREA_WEBAPI_REST = 'webapi_rest';const AREA_WEBAPI_SOAP = 'webapi_soap';通过在 <MAGENTO_DIR> di.xml 文件中搜寻 <argument name="areas" 字符串,咱们能发现至多有 5 种 area 被增加到了 MagentoFrameworkAppAreaList 类的 areas 参数中 位于 <MAGENTOI_DIR>/module-backend/etc/di.xml 的 adminhtml位于 <MAGENTOI_DIR>/module-webapi/etc/di.xml 的 webapi_rest位于 <MAGENTOI_DIR>/magento/module-webapi/etc/di.xml 的 webapi_soap位于 <MAGENTOI_DIR>/magento/module-store/etc/di.xml 的 frontend位于 <MAGENTOI_DIR>/magento/module-cron/etc/di.xml 的 crontab默认的 area 是 frontend, 是由 module-store/etc/di.xml 文件中的 default 参数定义的。 global area 是在缺失 adminhtml 和 frontend area 状况下的默认的 area。 ...

July 30, 2020 · 1 min · jiezi

关于magento:Magento-中的-Areas

Magento 中的 Areasarea 是一个逻辑组件,用来组织申请解决相干的代码。针对 area, 咱们绝大部分时候不须要做非凡解决,然而了解 area 对于了解 Magento 相当重要。在 MagentoFrameworkAppArea 类中的 AREA_* 相干常量暗示了 area 的品种。大抵有以下几种: const AREA_GLOBAL = 'global';const AREA_FRONTEND = 'frontend';const AREA_ADMINHTML = 'adminhtml';const AREA_DOC = 'doc';const AREA_CRONTAB = 'crontab';const AREA_WEBAPI_REST = 'webapi_rest';const AREA_WEBAPI_SOAP = 'webapi_soap';通过在 <MAGENTO_DIR> di.xml 文件中搜寻 <argument name="areas" 字符串,咱们能发现至多有 5 种 area 被增加到了 MagentoFrameworkAppAreaList 类的 areas 参数中 位于 <MAGENTOI_DIR>/module-backend/etc/di.xml 的 adminhtml位于 <MAGENTOI_DIR>/module-webapi/etc/di.xml 的 webapi_rest位于 <MAGENTOI_DIR>/magento/module-webapi/etc/di.xml 的 webapi_soap位于 <MAGENTOI_DIR>/magento/module-store/etc/di.xml 的 frontend位于 <MAGENTOI_DIR>/magento/module-cron/etc/di.xml 的 crontab默认的 area 是 frontend, 是由 module-store/etc/di.xml 文件中的 default 参数定义的。 global area 是在缺失 adminhtml 和 frontend area 状况下的默认的 area。 ...

July 30, 2020 · 1 min · jiezi