«attributes» 태그된 질문

마 젠토 엔터티 속성

4
프로그래밍 방식으로 장바구니에 다른 속성을 가진 여러 항목 추가
장바구니 시스템에 대량 추가를하고 있습니다. 참고 : 사용자 정의 옵션이있는 간단한 제품에서 작동하기를 원합니다-> 사용자 정의 옵션이 색상 (빨강, 녹색, 파랑) 또는 크기 (Xl, M, S)와 같은 경우 한 사람이 아래 항목을 주문한다고 가정합니다. productA, red칼라, qty12 ProductA, green칼라, qty18 ProductB, XL수량 3 Product C, 수량 10 그래서이 4 개의 …


1
마 젠토 2 ui_component 형식으로 고객 속성 표시
ui_component 양식을 만들었습니다 . 고객 세부 사항을 표시해야하는 경우 고객 편집 과 동일 합니다. 그러나 customer_entity테이블 에서 데이터를 표시 할 수 있습니다 . DataProvider.php public function getData() { if (isset($this->loadedData)) { return $this->loadedData; } // {Vendor}\{Module}\Model\GridFactory // Returns Customer Resource Model $items = $this->gridFactory->create()->getCollection(); $items->getSelect()->join('customer_entity_text as second', 'main_table.entity_id = second.entity_id'); …

2
마 젠토 2 : catalog_attributes.xml 파일은 무엇입니까?
Magento 2에는 catalog_attributes.xml다음 폴더에 여러 파일이 포함되어 있습니다 . app/code/Magento/Bundle/etc app/code/Magento/Catalog/etc app/code/Magento/CatalogSearch/etc app/code/Magento/CatalogUrlRewrite/etc app/code/Magento/Downloadable/etc app/code/Magento/GiftMessage/etc app/code/Magento/Msrp/etc app/code/Magento/Sales/etc app/code/Magento/Tax/etc app/code/Magento/Wishlist/etc 해당 파일은 다음과 같습니다 ( Sales파일 예 ). <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Catalog:etc/catalog_attributes.xsd"> <group name="quote_item"> <attribute name="sku"/> <attribute name="type_id"/> <attribute name="name"/> <attribute name="status"/> <attribute name="visibility"/> <attribute name="price"/> <attribute name="weight"/> <attribute name="url_path"/> <attribute name="url_key"/> …

1
단일 속성에 대한 모든 상점보기에 대한 모든 옵션을 얻는 방법은 무엇입니까?
단일 속성에 대한 모든 상점보기에 대한 모든 옵션을 검색하려고합니다 color. 속성에 color나는 두 가지 옵션을 만들었습니다 blue와 white. 모든 상점보기에 대한 모든 옵션 레이블을 반환하지만 admin옵션 레이블 만 반환한다고 가정하는 다음 코드를 시도했습니다 . $option_arr = array(); $attribute = Mage::getModel('eav/config')->getAttribute('catalog_product', 'color'); foreach ($attribute->getSource()->getAllOptions(false) as $option) { $option_arr[$option['value']] = $option['label']; } …

3
읽기 전용 제품 백엔드 속성
속성 읽기 만 만들고 싶지만 불가능합니다. addAttribute () 'disabled' =>true또는 'readonly' => true 성공하지 않고 전달하려고했습니다 . 사용에 대한 제안을 찾았 setLockedAttributes()지만 어떤 이유로 든 작동하지 않습니다. 참고: Varien_Data_Form_Element_Abstract::serialize($attributes = array(), $valueSeparator='=', $fieldSeparator=' ', $quote='"')

2
magento 2에서 이미지 사용자 정의 속성을 저장하는 방법
조건에 따라 프런트 엔드에 제품 이미지를 거의 표시하지 않아도됩니다. 가상 미러 사용을 확인해야합니다. <?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Dcw\Vm\Observer; use Magento\Framework\Event\ObserverInterface; class ChangeTemplateObserver extends \Magento\ProductVideo\Observer\ChangeTemplateObserver { /** * @param mixed $observer * @SuppressWarnings(PHPMD.UnusedFormalParameter) * @return void */ …

5
마 젠토 2 : 카탈로그에 커스텀 속성을 표시하는 방법?
다음 설정을 예로 설정하여 새 텍스트 필드 속성을 만들었습니다. Visible on Catalog Pages on Storefront Used in Product Listing 속성이 속성 세트에 지정되고 의도 한대로 제품보기에 표시됩니다. 그러나 카탈로그보기에 표시되지 않습니다. 기본 Luma 테마를 사용 하고 있으며 캐시를 지우고 다시 색인을 생성했습니다. 템플릿 파일을 보면 : magento-catalog/view/frontend/templates/product/list.phtml 맞춤 속성을 가져 …

6
제품 URL 및 이미지를 얻는 효율적인 방법
Magento 웹숍에 추가를 구축하는 동안 몇 가지 문제가 발생했습니다. 가능한 빠른 코드를 만들려고 노력하면서 두 가지를 알아낼 수 없었습니다. 내 (관련) 코드는 다음과 같습니다. $rc = Mage::getResourceSingleton('catalog/product'); $productName = $rc->getAttributeRawValue($productId, 'name', Mage::app()->getStore()); $productPrice = $rc->getAttributeRawValue($productId, 'price', Mage::app()->getStore()); $productImage = $rc->getAttributeRawValue($productId, 'image', Mage::app()->getStore()); $productUrl = $rc->getAttributeRawValue($productId, 'url_key', Mage::app()->getStore()); 내가 알아낼 수없는 …


2
계층 탐색에서 여러 항목 선택 (여러 선택 / 확인란)
드롭 다운 또는 다중 선택 유형의 속성에 대해 확인란 또는 다중 선택 입력을 사용하도록 표준 계층 탐색을 어떻게 변환 합니까? 예를 들어, 사용자 가 색상 속성으로 파란색 과 빨간색 을 선택 하면 계층 탐색에는 파란색 또는 빨간색과 일치하는 모든 항목이 표시됩니다 . 이 페이지의 툴바에서 예를 참조하십시오.


3
마 젠토 2 커스텀 모듈에 의해 추가 된 속성을 제거하는 방법?
지금까지 사용자 정의 모듈을 설치 제거 할 때 uninstall.phpwhich extends 를 사용하여 사용자 정의 모듈에 의해 추가 된 사용자 정의 테이블 또는 열을 제거 할 수 있음을 알고 \Magento\Framework\Setup\UninstallInterface있습니다. 그러나 InstallData.php모듈을 제거 할 때 추가 된 사용자 정의 속성을 제거하는 방법은 무엇입니까? 미리 감사드립니다!

2
프로그래밍 방식으로 사용자 정의 속성 세트에 사용자 정의 속성 추가
안녕하세요 누군가 도와 줄 수 있습니까? 맞춤 속성 집합과 맞춤 속성을 다음과 같이 만들었습니다. $installer = $this; /* @var $installer Mage_Eav_Model_Entity_Setup */ $installer->startSetup(); //Create Attribute set with Based on Default attribute set //$installer->removeAttributeSet(Mage_Catalog_Model_Product::ENTITY, 'New Attr Set'); /* $skeletonID=$installer->getAttributeSetId('catalog_product','Default'); $entityTypeId = Mage::getModel('catalog/product') ->getResource() ->getEntityType() ->getId(); //product entity type $attributeSet = Mage::getModel('eav/entity_attribute_set') …

5
'yes / no'드롭 다운 사용자 정의 제품 속성의 기본값
다음 스크립트를 사용하여 속성을 설치합니다. $installer = $this; $installer->startSetup(); $installer->removeAttribute('catalog_product', 'customizableonly'); $installer->addAttribute('catalog_product', 'customizableonly', array( 'group' => 'General', 'input' => 'select', 'type' => 'int', 'label' => 'Customizable Only', 'source' => 'eav/entity_attribute_source_boolean', 'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_GLOBAL, 'visible' => 1, 'required' => 0, 'visible_on_front' => 0, 'is_html_allowed_on_front' => 0, 'is_configurable' => 0, 'searchable' => …

당사 사이트를 사용함과 동시에 당사의 쿠키 정책개인정보 보호정책을 읽고 이해하였음을 인정하는 것으로 간주합니다.
Licensed under cc by-sa 3.0 with attribution required.