Magento

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

2
마 젠토 2 탐색 메뉴가 표시되지 않음
나는 Magento를 처음 사용하므로 나와 함께 참아주세요 : D 빈 테마의 하위 테마를 성공적으로 만들었습니다. 메뉴를 작동 시키려고하는데 내 삶에 왜 표시되지 않는지 알 수 없습니다. 나는 다른 두 개의 실을 읽었고 운이 없다. 하위 카테고리가 포함 된 루트 카테고리를 추가했습니다. 그런 다음 상점 설정에 지정했습니다. 사이트를 다시 색인화하고 캐시를 …

2
관리자 제품 편집 페이지의 상점 스위처에 기본값 표시 옵션
내가 사용하고 젠토 Enterprise Edition을 하고 나는 그것의 슈퍼 관리자입니다. 일부 관리자의 경우 특정 상점 만 액세스하도록 허용했습니다. 나를 위해, 제품 편집 페이지의 상점 스위처에 기본값 옵션이 표시됩니다. 액세스가 제한된 관리자에게는 기본값 옵션이 표시되지 않습니다. 누군가가 기본값 옵션을 표시하도록 도와줍니다.

2
왜 일부 클래스는 생성자와 di.xml에서 주입을 정의합니까?
일부 클래스에서 종속성 주입이 di.xml구체적인 클래스의 생성자에서 한 번 두 번 선언되는 이유를 이해하지 못합니다 . 에서 예를 들어 Magento\Backend\Model\Url, 자사는 di.xmlDI를위한 유형의 집합이 정의 : <type name="Magento\Backend\Model\Url"> <arguments> <argument name="scopeResolver" xsi:type="object"> Magento\Backend\Model\Url\ScopeResolver</argument> <argument name="authSession" xsi:type="object"> Magento\Backend\Model\Auth\Session\Proxy</argument> <argument name="formKey" xsi:type="object"> Magento\Framework\Data\Form\FormKey\Proxy</argument> <argument name="scopeType" xsi:type="const"> Magento\Store\Model\ScopeInterface::SCOPE_STORE </argument> <argument name="backendHelper" xsi:type="object"> Magento\Backend\Helper\Data\Proxy</argument> …

3
Magento 1에서 블록 클래스를 재정의 / 재 작성하는 방법은 무엇입니까?
참고 : 이것은 블록 재 작성이 어떻게 작동 하는지를 완전히 설명하고보다 구체적인 "블록 X를 재정의하는 방법"또는 "재 작성이 작동하지 않는 이유"질문에 대한 중복 대상으로 사용될 수있는 표준 질문입니다. 참조 : Magento 1 재정의에 대한 정식 질문 찾기 사용자 정의 모듈에서 코어 블록 클래스를 변경해야합니다 (메소드 변경 또는 메소드 추가). 단계별로 …

5
마 젠토 2 : 커스텀 모듈의 이미지 크기를 조정하는 방법?
Magento 2 CE 버전 2.1.0을 사용하고 있습니다. 이미지 필드가있는 사용자 지정 모듈이 있습니다. 업로드 할 때 썸네일 이미지, 목록 이미지 및 제품 세부 정보 페이지 이미지가있는 제품과 다른 크기의 이미지를 원합니다. 크기를 조정하지 않고 1 개의 이미지를 업로드 할 수 있습니다. 이미지 크기를 조정하기 위해 아래 코드를 사용하고 있지만 제품 …

2
magento 2에서 고객 세션 데이터를 설정하고 얻는 방법
magento 2 세션으로 어려움을 겪고 있습니다. 아래 컨트롤러 파일을 샘플 코드로 만들었습니다. <?php namespace vendor_name\module_name\Controller\SetGetSession; use Magento\Framework\App\Action\Action; class SetGetSession extends Action { protected $customerSession; public function _construct( \Magento\Customer\Model\Session $customerSession ) { $this->customerSession = $customerSession; } public function execute() { } } 누구든지 데이터를 할당하고 세션 변수에서 데이터를 검색하는 방법을 도와 …

2
관리자 컨트롤러의 공개 작업
클래스 \Magento\Backend\App\AbstractAction(모든 관리자 컨트롤러 작업의 조상)에는 _publicActions다음과 같이 비밀 키의 유효성 검사에 사용되는 멤버 가 있음을 발견했습니다 . if (is_array($this->_publicActions) && in_array($this->getRequest()->getActionName(), $this->_publicActions)) { return true; } 이는 특정 조치 이름이 나열된 _publicActions경우 URL의 비밀 키없이 조치에 액세스 할 수 있음을 의미합니다. 비밀 관리 키를 알 필요없이 수동으로 수행 할 …

7
Magento 2 블록 클래스의 세션에서 고객 ID 가져 오기
세션에서 고객 ID를 얻는 방법은 무엇입니까? 나는 이것을 시도했지만 작동하지 않았다. protected $_customerBonusPointFactory; protected $_customerSession; public function __construct(Session $customerSession, \Magento\Framework\View\Element\Template\Context $context) { $this->_customerSession = $customerSession; parent::__construct($context); } public function _prepareLayout() { var_dump($this->_customerSession->getCustomer()->getId()); exit(); return parent::_prepareLayout(); }

6
품절 된 제품이 여전히 프론트 엔드, 검색 및 기타 항목에 나타납니다-Magento 2.1.0
magento 2.1.0 설치에 문제가 있음을 알았습니다! 검색 및 카테고리 페이지에서 품절 된 제품 숨기기를 거부 합니다! 캐시를 지우고 다시 색인을 생성했지만 운이 없습니다! 조언 좀 해줄 래? 내 제품은 재고가 0이지만 앞에는 재고가 있으며 주문하면 다음과 같은 오류가 발생합니다. We don't have as many "Item's name" as you requested. 감사 …


1
이름이 이미 사용 중이므로 interface를 선언 할 수 없습니다
새 모듈에서 간단한 인터페이스를 만든 후 bin / magento setup : di : compile을 입력했는데 이름이 이미 사용 중이라는 오류가 발생합니다. 내 코드는 다음과 같습니다. namespace Company\Test\Api; /* * @api */ interface XyzInterface { public function getSomething(); } 그런 다음이 오류가 발생합니다. Repositories code generation... 1/7 [====>-----------------------] 14% 2 secs …

1
마 젠토 2-장소 주문 버튼으로 검토 및 결제 섹션 후 추가 결제 단계를 추가하는 방법
'검토 및 결제'섹션 다음에 추가 결제 단계를 추가하려고합니다. 요구 사항은 지불을 분할하고 별도의 단계로 검토하는 것입니다. 결제 방법을 선택한 후에는 모든 주문 정보를 "주문 주문"버튼과 함께 표시해야하는 최종 단계 "검토"로 이동해야합니다. 지금까지 아래 링크를 따라 지불 단계 후에 사용자 정의 단계를 추가했습니다. http://devdocs.magento.com/guides/v2.0/howdoi/checkout/checkout_new_step.html 그러나 여기서 문제는 "주문하기"버튼이 지불 단계와 바인딩되어 …



3
Magento2 REST API 오류 '클래스가 없습니다'
Alan의 블로그 ( http://alankent.me/2015/07/24/creating-a-new-rest-web-service-in-magento-2/)를 기반으로 테스트 Magento 2.0.2 REST 웹 서비스를 만들었습니다. Postman을 사용하여 사용자 정의 웹 서비스를 호출하고 다음 오류가 발생합니다. "message": "Class does not exist", "code": -1, "trace": "#0 P:\\wwwroot\\Magento202_com_loc\\Web\\vendor\\magento\\framework\\Webapi\\ServiceInputProcessor.php(128): ReflectionClass->__construct('')\n#1 P:\\wwwroot\\Magento202_com_loc\\Web\\vendor\\magento\\framework\\Webapi\\ServiceInputProcessor.php(262): Magento\\Framework\\Webapi\\ServiceInputProcessor->_createFromArray(NULL, '30')\n#2 P:\\wwwroot\\Magento202_com_loc\\Web\\vendor\\magento\\framework\\Webapi\\ServiceInputProcessor.php(99): Magento\\Framework\\Webapi\\ServiceInputProcessor->convertValue('30', NULL)\n#3 P:\\wwwroot\\Magento202_com_loc\\Web\\vendor\\magento\\module-webapi\\Controller\\Rest.php(262): Magento\\Framework\\Webapi\\ServiceInputProcessor->process('Test\\\\Calculator...', 'add', Array)\n#4 P:\\wwwroot\\Magento202_com_loc\\Web\\vendor\\magento\\module-webapi\\Controller\\Rest.php(160): Magento\\Webapi\\Controller\\Rest->processApiRequest()\n#5 P:\\wwwroot\\Magento202_com_loc\\Web\\var\\generation\\Magento\\Webapi\\Controller\\Rest\\Interceptor.php(24): Magento\\Webapi\\Controller\\Rest->dispatch(Object(Magento\\Framework\\App\\Request\\Http))\n#6 P:\\wwwroot\\Magento202_com_loc\\Web\\vendor\\magento\\framework\\App\\Http.php(115): Magento\\Webapi\\Controller\\Rest\\Interceptor->dispatch(Object(Magento\\Framework\\App\\Request\\Http))\n#7 P:\\wwwroot\\Magento202_com_loc\\Web\\vendor\\magento\\framework\\App\\Bootstrap.php(258): …

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