2012-12-07 1 views
1

도움이되었습니다. 나는 제품 설명을 zencart의 가격보다 낮게 책정하려고 노력했지만 설명은 보여주지 못했습니다. 문제는 dickens가 내가 잘못 가고있는 곳입니다. 제품 설명 이동 PHP - Probs


내가 이동 한 라인을 존

을 찾고 주셔서 감사입니다

<div class="listingDescription">' . zen_trunc_string(zen_clean_html(stripslashes(zen_get_products_description($listing->fields['products_id'], $_SESSION['languages_id']))), PRODUCT_LIST_DESCRIPTION) . '</div> 


원래의 코드는 다음과 같습니다

 

    if (isset($_GET['manufacturers_id'])) { 
$lc_text = 'fields['products_id']), 'cPath=' . (($_GET['manufacturers_id'] > 0 and $_GET['filter_id']) > 0 ? zen_get_generated_category_path_rev($_GET['filter_id']) : ($_GET['cPath'] > 0 ? zen_get_generated_category_path_rev($_GET['cPath']) : zen_get_generated_category_path_rev($listing->fields['master_categories_id']))) . '&products_id=' . $listing->fields['products_id']) . '">' . $listing->fields['products_name'] . '' . zen_trunc_string(zen_clean_html(stripslashes(zen_get_products_description($listing->fields['products_id'], $_SESSION['languages_id']))), PRODUCT_LIST_DESCRIPTION) . '' ; 
     } else { 
      $lc_text = 'fields['products_id']), 'cPath=' . (($_GET['manufacturers_id'] > 0 and $_GET['filter_id']) > 0 ? zen_get_generated_category_path_rev($_GET['filter_id']) : ($_GET['cPath'] > 0 ? zen_get_generated_category_path_rev($_GET['cPath']) : zen_get_generated_category_path_rev($listing->fields['master_categories_id']))) . '&products_id=' . $listing->fields['products_id']) . '">' . $listing->fields['products_name'] . '' . zen_trunc_string(zen_clean_html(stripslashes(zen_get_products_description($listing->fields['products_id'], $_SESSION['languages_id']))), PRODUCT_LIST_DESCRIPTION) . ''; 
     } 
     break; 
     case 'PRODUCT_LIST_MANUFACTURER': 
     $lc_align = ''; 
     $lc_text = 'fields['manufacturers_id']) . '">' . $listing->fields['manufacturers_name'] . ''; 
     break; 
     case 'PRODUCT_LIST_PRICE': 
     $lc_price = zen_get_products_display_price($listing->fields['products_id']) . '
'; $lc_align = 'right'; $lc_text = $lc_price;

내가 시도 코드 (페이지/가격이 표시되지만 제품 설명은 표시되지 않습니다. ription) :

 if (isset($_GET['manufacturers_id'])) { 
     $lc_text = '<h3 class="itemTitle"><a href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']), 'cPath=' . (($_GET['manufacturers_id'] > 0 and $_GET['filter_id']) > 0 ? zen_get_generated_category_path_rev($_GET['filter_id']) : ($_GET['cPath'] > 0 ? zen_get_generated_category_path_rev($_GET['cPath']) : zen_get_generated_category_path_rev($listing->fields['master_categories_id']))) . '&products_id=' . $listing->fields['products_id']) . '">' . $listing->fields['products_name'] . '</a></h3>' ; 
    } else { 
     $lc_text = '<h3 class="itemTitle"><a href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']), 'cPath=' . (($_GET['manufacturers_id'] > 0 and $_GET['filter_id']) > 0 ? zen_get_generated_category_path_rev($_GET['filter_id']) : ($_GET['cPath'] > 0 ? zen_get_generated_category_path_rev($_GET['cPath']) : zen_get_generated_category_path_rev($listing->fields['master_categories_id']))) . '&products_id=' . $listing->fields['products_id']) . '">' . $listing->fields['products_name'] . '</a></h3>'; 
    } 
    break; 
    case 'PRODUCT_LIST_MANUFACTURER': 
    $lc_align = ''; 
    $lc_text = '<a href="' . zen_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $listing->fields['manufacturers_id']) . '">' . $listing->fields['manufacturers_name'] . '</a>'; 
    break; 
    case 'PRODUCT_LIST_PRICE': 
    $lc_price = zen_get_products_display_price($listing->fields['products_id']) . ''; 
    $lc_align = 'right'; 
    $lc_text = "<div style='font-size: 22px;'>".$lc_price. "</div>"; 
    break; 
    case 'PRODUCT_LIST_DESCRIPTION': 
    $lc_align = ''; 
    $lc_text = '<div class="listingDescription">' . zen_trunc_string(zen_clean_html(stripslashes(zen_get_products_description($listing->fields['products_id'], $_SESSION['languages_id']))), PRODUCT_LIST_DESCRIPTION) . '<br></div>'; 

답변

0

필요가 코드를 변경합니다. 대신 관리 -> 구성 -> 제품 목록에서 원하는 정렬 순서를 변경하십시오.