本文介绍了您不能多次定义关联名称“链接"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,谢谢.

Magento 2.3的产品页面中有一个错误:您不能多次定义关联名称链接"

I have an error in product page of Magento 2.3:You cannot define a correlation name 'links' more than once

跟踪:

这是一个非常基本的网站,没有特殊的模块或主题.

This is a very basic site, no special modules or themes.

谢谢你,伊兰

推荐答案

https://community.magento.com/t5/Magento-2-x-技术问题/Magento-2-3-库存-库存-1-doesn-t-Exist-On-Magento-2-3/td-p/120679

通过PankajS_Magento

By PankajS_Magento

这是要在DB SQL中运行的命令,请确保更新dbname.

Here is the command to run in DB SQL make sure to update dbname.

CREATE ALGORITHM = UNDEFINED SQL SECURITY
INVOKER VIEW `inventory_stock_1` AS
select distinct `legacy_stock_status`.`product_id`   AS `product_id`,
                `legacy_stock_status`.`website_id`   AS `website_id`,
                `legacy_stock_status`.`stock_id`     AS `stock_id`,
                `legacy_stock_status`.`qty`          AS `quantity`,
                `legacy_stock_status`.`stock_status` AS `is_salable`,
                `product`.`sku`                      AS `sku`
from (`dbname`.`cataloginventory_stock_status` `legacy_stock_status`
       join `dbname`.`catalog_product_entity` `product`
            on ((`legacy_stock_status`.`product_id` = `product`.`entity_id`)));

这篇关于您不能多次定义关联名称“链接"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-24 12:02