Magento

Magento 전자 상거래 플랫폼 사용자를위한 Q & A

2
magento에서 캐시는 어떻게 작동합니까?
Magento 캐시 알고리즘에 대해 더 명확하게하고 싶습니다. 나는 참조했다 https://www.nicksays.co.uk/developers-guide-magento-cache/ http://www.demacmedia.com/magento-commerce/magento-tutorials/understanding-full-page-cache/ 내가 VAR / 캐시를 볼 때 아직도, 내가 볼 수있는 폴더 mage--0에 mage--9과 mage--a에서 mage--f. 그들은 모두 무엇입니까? 그들은 무엇을합니까? 그들은 어떻게합니까? 누군가이 개념을 설명 할 수 있습니까?

4
Magento 2는 심볼릭 링크를 사용한 모듈 연결을 허용하지 않습니다
심볼릭 링크를 사용하여 Magento 2에 로컬 개발 모듈 (별도의 git repo)을 추가했으며 PHTML 템플릿을 사용할 때까지 정상적으로 작동했습니다. 무거운 디버깅 후 Magento 2 파일 시스템 클래스 ( Magento\Framework\Filesystem\Directory\Read)는 호출 isExists()과 결합 된 메소드를 사용 getAbsolutePath()하여 PHTML 템플릿이 존재하는지 확인했습니다. 그러나이 getAbsolutePath()방법은 상대 경로가 Magento 2 파일 시스템 내에 존재하는지 확인하고 …
10 module  magento2 

2
마 젠토 2 안정 버전에서 테마를 만드는 방법?
마 젠토 2 안정 버전에서 테마를 만드는 방법? 베타 용 자습서는 있지만 안정적이지 않습니다. 내가 취한 단계는 다음과 같습니다. theme.xml & composer.json 에서 app / design / frontend / Themevendorname / Themename / 내에 폴더 를 작성 했습니다. 하지만 stores->configuration->General->Design그 디자인 테마 드롭 다운에서 관리자 로 갔을 때 새 테마가 …
10 magento2  theme 

2
이벤트 저장 관찰자로부터 제품 가져 오기-Magento 2
제품 저장 이벤트 후에 magento 2 내에서 제품에 액세스하려고합니다. 리스너를 구성했습니다. controller_action_catalog_product_save_entity_after xml은 다음과 같습니다. <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd"> <event name="controller_action_catalog_product_save_entity_after"> <observer name="wire_products_update" instance="TBS\WireProductsHook\Observer\WireProductsUpdate" /> </event> </config> 그런 다음 제품을 저장할 때 옵저버 클래스가 호출되지만 저장된 제품에 액세스하는 방법에 대한 정보를 찾을 수 없습니다. 관찰자 클래스는 다음과 같습니다. <?php /** * …
10 magento2 

1
이메일 템플릿 'custom_mail_template'이 (가) 정의되지 않았습니다
맞춤 모듈에서 메일을 보내려고합니다. 이를 위해 system.xml파일을 만들었지 만 오류를 반환합니다. 오류: 이메일 템플리트 'custom_mail_template'이 (가) 정의되지 않았습니다. 내 코드는 다음과 같습니다 <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd"> <system> <tab id="custom" translate="label" sortOrder="1"> <label>custom mail</label> </tab> <section id="custom" translate="label" type="text" sortOrder="100" showInDefault="1" showInWebsite="1" showInStore="1"> <label>custom mail</label> <tab>custom</tab> <resource>Learning_Custom::config_custom</resource> <group id="mail" translate="label" …

1
Magento 2 : 새로운 구성 가능 제품-기존 단순 제품을 수동으로 선택 하시겠습니까?
관리자 패널 (색상 기준)을 통해 새 구성 가능 제품을 만들고 있습니다. 간단한 제품 (자식)이 이미 제품 가져 오기를 통해 존재합니다. "Edit Configurations (구성 편집)"를 클릭하면 새로운 간단한 변형을 만드는 과정이 진행됩니다. 나는 이것을하고 싶지 않습니다. 기존 제품을 선택하고 싶습니다. 흥미롭게도 저장 후 "구성 편집"을 통해 간단한 변형을 생성하면 "구성 편집"옆에 …

3
새 프로젝트를위한 Magento 2 .gitignore 템플릿
magento2작곡가를 통해 설치했습니다 . magento2의 일반적인 gitignore 파일에 대한 정보를 찾을 수 없으며 파일 구조가 여전히 이상합니다. 누군가 일반적인 gitignore 템플릿을 공유 할 수 있습니까? 감사!
10 magento2  git 



3
프로그래밍 방식으로 구성 가능한 제품을 생성하고 간단한 제품을 Magento2 제품의 구성 가능한 제품에 할당
이것이 내가 지금까지 한 일입니다. 간단하고 구성 가능한 제품이 생성됩니다. 문제는 간단한 제품을 구성 가능한 제품에 할당 할 수 없다는 것입니다. 코드는 다음과 같습니다 (ID 및 속성은 기본 샘플 데이터에서 작동 함). //simple product $simple_product = $this->_objectManager->create('\Magento\Catalog\Model\Product'); $simple_product->setSku('test-simple'); $simple_product->setName('test name simple'); $simple_product->setAttributeSetId(4); $simple_product->setSize_general(193); // value id of S size $simple_product->setStatus(1); …
10 php  magento2 

2
(모델) 재 작성을 올바르게 비활성화하는 방법
특정 Magento 코어 클래스를 다시 작성하는 타사 확장이 있습니다. 블록, 도우미 또는 모델인지 여부는 중요하지 않지만이 경우 모델입니다. 이제이 다시 쓰기가 잘못되어 타사 확장을 변경하지 않고 비활성화하고 싶습니다. 따라서 타사 확장에 따라 사용자 지정 확장을 작성합니다. 타사 재 작성을 비활성화하는 가장 좋은 방법은 무엇입니까? 내가 생각할 수있는 안전한 방법은 타사 …

3
시스템 구성에서 사용자 정의 동적 필드에 이미지 필드를 어떻게 추가합니까?
관리자가 원하는만큼 많은 필드를 생성 할 수 있도록하려고합니다. 다른 확장 프로그램에서 솔루션을 찾았으며 시작 지점으로 사용했습니다. 따라서 다음과 같은 코드가 있습니다. 에서 system.xml: <showcases translate="label"> <label>Showcases</label> <frontend_type>text</frontend_type> <sort_order>10</sort_order> <show_in_default>1</show_in_default> <show_in_website>1</show_in_website> <show_in_store>1</show_in_store> <fields> <showcase translate="label"> <label>Showcases</label> <frontend_type>select</frontend_type> <frontend_model>awesomehome/adminhtml_showcases</frontend_model> <backend_model>adminhtml/system_config_backend_serialized</backend_model> <sort_order>410</sort_order> <show_in_default>1</show_in_default> <show_in_website>1</show_in_website> <show_in_store>1</show_in_store> </showcase> </fields> </showcases> 그리고 Namespace/Awesomehome/Block/Adminhtml/Showcases.php: class Namespace_Awesomehome_Block_Adminhtml_Showcases extends …



1
마 젠토 2 : 가상 유형 명명 규칙
날짜 : 2015 년 6 월 1 일 (마 젠토 2의 변화하는 특성을 제공함) Magento 2에서는 모듈의 구성 파일 에서 "가상 유형" 을 구성 할 수 있습니다di.xml . 이 가상 유형을 사용하면 특정 주입 된 종속성의 인수를 변경할 수 있습니다. 핵심 Magento 2 코드에는 가상 유형에 대한 두 가지 명명 …

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