2017-02-24 1 views
0

warungssl..com과 같이 woocommerce 제품 목록을 만들고 싶습니다. 제품 세부 사항 페이지로 연결되는 제품 이름, 정상 가격, 할인 가격, 일부 속성, 링크 또는 단추, 링크 또는 버튼 카트.사용자 정의 레이아웃 제품리스트 작성 woocommerce

가있는 파일을 내가 스크립트 코드를 변경해야하며, 여러 개의 속성을 표시하는 방법을 이해하지 않습니다.

참고 : 1. To (발급, 유효성 확인 및 사이트 인감) 나는 데이터를 호출 할 것입니다. 내가 스크립트를 이해하지 못하는 장애물들. 2. 내가 워드 프레스 테마의 사용 3. 다음 예는 아마이 알려 수 속성

을 의미 포르투하게 어디 변경해야 할 파일의 위치.

답변

0
please go to here : wp-content\plugins\woocommerce\templates\archive-product.php 
or 
please go to here : wp-content\themes\porto\woocommerce\archive-product.php 


and put following code: 
<?php 
global $product; 

$greenbar = $product->get_attribute('greenbar'); 
$issuance = $product->get_attribute('issuance'); 
$mobile_friendly = $product->get_attribute('mobile_friendly'); 
$san_support = $product->get_attribute('san_support'); 
$site_seal = $product->get_attribute('site_seal'); 
$validation = $product->get_attribute('validation'); 
$warranty = $product->get_attribute('warranty'); 
?> 
+0

감사합니다. –

관련 문제