Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Product Listing in Columns - SoldOut


televinken

Recommended Posts

Hi

Does anybody know how to get "Product Listing in Columns" to show the SoldOut buttom.

I have installed "Product Listing in Columns" and the "Soldout" contribution and it work fine exept in

"Product Listing in Columns" that still only shows "by" buttom.

Thanks for answer

Link to comment
Share on other sites

  • 3 weeks later...
Hi

Does anybody know how to get "Product Listing in Columns" to show the SoldOut buttom.

I have installed "Product Listing in Columns" and the "Soldout" contribution and it work fine exept in

"Product Listing in Columns" that still only shows "by" buttom.

Thanks for answer

 

Hi

 

I have the same problem. I tried the following code in includes/modules/product_listing_col.php

but it always displays the sold out button if I use columns in product listing. Can somebody make this

code work please??

 

 

	case 'PRODUCT_LIST_BUY_NOW':
       // this button will be in a separate table row for better aligning

$quantity = tep_db_fetch_array(tep_db_query("select products_quantity from products where products_id like '".$listing["products_id"]."'"));
if (intval($quantity['products_quantity'])<1) {
 $buy_now_button_array[] = tep_image_button('button_sold_out.gif', IMAGE_BUTTON_SOLD_OUT) . '  ';
} else {
$buy_now_button_array[] = '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action','sort','products_id')) . 'action=buy_now&products_id=' . $listing[$x]['products_id']) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW, 'style="padding-top: 5px;"') . '</a> ';
}


       $lc_text = ''; // otherwise the previous $lc_text will be outputted again 

Link to comment
Share on other sites

Hi

Does anybody know how to get "Product Listing in Columns" to show the SoldOut buttom.

I have installed "Product Listing in Columns" and the "Soldout" contribution and it work fine exept in

"Product Listing in Columns" that still only shows "by" buttom.

Thanks for answer

 

Hi

 

I have the same problem. I tried the following code in includes/modules/product_listing_col.php

but it always displays the sold out button if I use columns in product listing. Can somebody make this

code work please??

 

 

	case 'PRODUCT_LIST_BUY_NOW':
       // this button will be in a separate table row for better aligning

$quantity = tep_db_fetch_array(tep_db_query("select products_quantity from products where products_id like '".$listing["products_id"]."'"));
if (intval($quantity['products_quantity'])<1) {
 $buy_now_button_array[] = tep_image_button('button_sold_out.gif', IMAGE_BUTTON_SOLD_OUT) . '  ';
} else {
$buy_now_button_array[] = '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action','sort','products_id')) . 'action=buy_now&products_id=' . $listing[$x]['products_id']) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW, 'style="padding-top: 5px;"') . '</a> ';
}


       $lc_text = ''; // otherwise the previous $lc_text will be outputted again 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...