2011-02-14 2 views

답변

1

제품에 속성이있는 경우 osCommerce는 카트를 제품에 추가하기 전에 하나를 선택해야합니다. 그것이 제품 세부 정보 페이지로 리디렉션하는 이유입니다.

0

이 코드를 시도 : 경우 ($의 COL === 0) 발견 (29 행 정도)

아래 추가 코드 {$의 new_prods_content을 = ''.} :

$new_prods_content .= '<td width="30%" align="center" valign="top"> 
    <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . 
    $new_products['products_id']) . '">' . tep_image(DIR_WS_IMAGES . 
    $new_products['products_image'], $new_products['products_name'], 
    SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br /><a href="' . 
    tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . 
    $new_products['products_id']) . '">' . $new_products['products_name'] . 
    '</a><br />' . $currencies->display_price($new_products['products_price'], 
    tep_get_tax_rate($new_products['products_tax_class_id'])) . 
    '&nbsp&nbsp&nbsp' . tep_draw_button(IMAGE_BUTTON_IN_CART, null , 
    tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 
    'action=buy_now&products_id=' . $new_products['products_id'])) .'</td>'; 


     i have added this code for new products in index.php page and when customer clicks add to cart button, it will add the item to cart and show shopping_cart.php page.