새로운 컨테이너를 만들고 다른 제품 내부를 이동하십시오
-
29-09-2020 - |
문제
상위 컨테이너를 참조하고 다른 컨테이너 내부에서 이동하는 새 컨테이너를 어떻게 만듭니다.내가 시도하는 것은
<referenceContainer name="content">
<container name="product.container" as="productContainer" htmlTag="div" htmlClass="product-container">
</container>
</referenceContainer>
<move name="product.info.main" destination="product.container" />
<move name="product.info.media" destination="product.container" />
. 해결책
이동 내부에 잘못 표시,
plz 시도,
<move element="product.info.main" destination="product.container"/>
.
이동 태그에서 element
대신 name
를 사용하십시오.
다른 팁
구문이 불일치가 있습니다. name 속성을 아래와 같이 요소 로 대체하여 해당하십시오.
<move element="product.info.main" destination="product.container" />
<move element="product.info.media" destination="product.container" />
. 제휴하지 않습니다 magento.stackexchange