FAQ
워드프레스 5.6 이상 버전에서 관리자로 로그인 시 Admin Bar 가 있는 경우 상품 옵션이 올바르게 선택되지 않을 수 있습니다. ( 예로, 상품 옵션을 드래그 해서 선택하는 부분 )
위와 같이 옵션이 정상적으로 선택되지 않을 때
관리자 메뉴[엠샵 DIY 상품 > 고급 설정 > Admin Bar Style 변경] 옵션을 활성화 하신 후 확인해보시기 바랍니다.
관련 매뉴얼 : https://www.codemshop.com/manual/docs/mshop-diy/settings/hook-settings/
Category:
DIY 상품
아래의 코드를 참고하여 차일드 테마에 추가해 주시기 바랍니다.
function mshop_diy_adjust_stock_quantity( $option, $product ) { $option['stock_quantity'] = 2; return $option; } add_filter( 'msdp_make_dropdown_option', 'mshop_diy_adjust_stock_quantity', 99, 2 ); function mshop_diy_adjust_woocommerce_cart_item_quantity( $product_quantity, $cart_item_key, $cart_item ) { if ( msdp_is_set_product( $cart_item ) && ! msdp_is_set_parent( $cart_item ) ) { if ( msdp_cart_contains_set_parent( $cart_item['msdp_set_id'] ) ) { ob_start(); ?> <input type="hidden" id="" class="qty" name="" value=""/> <?php $product_quantity = ob_get_clean(); } } return $product_quantity; } add_filter( 'woocommerce_cart_item_quantity', 'mshop_diy_adjust_woocommerce_cart_item_quantity', 99, 3 );
Category:
DIY 상품
빌더로 상품 상세 영역을 커스텀마이징 할 경우 템플릿 구조가 변경되어 상품 옵션이 나타나지 않을 수 있습니다.
이 부분에 대해 훅(hook) 설정 매뉴얼을 참고하여 관리자 메뉴[엠샵 DIY > 고급 설정(탭)]에서 훅(hook) 설정을 변경하신 후 이용해주시기 바랍니다.
Category:
DIY 상품