Along with my previous post regarding installing "auction_product_type_1-2a with zen-cart 1.3.9h", I am planning on also including add-on "simple_in_stock_display_0-5", so that my fixed priced items only show "In Stock", and not the quantity amount of what's in stock.
The "simple_in_stock_display_0-5" file "includes/modules/Your_Template/product_listing.php":
Code:
$zc_col_count_description++;
break;// Begin Edit(simple_in_stock_display_0-5)
case 'PRODUCT_LIST_QUANTITY':
$lc_align = 'right';
if (zen_get_products_stock($listing->fields['products_id'])>0) {
$lc_text = 'In Stock'; // any at all (part of simple_in_stock_add_on)
}
else {
$lc_text = 'Out of Stock'; // none at all (part of simple_in_stock_add_on)
}
break;// End Edit
case 'PRODUCT_LIST_WEIGHT':
$lc_text = TABLE_HEADING_WEIGHT;
And in the same location "auction_product_type_1-2a" file "includes/modules/Your_Template/product_listing.php":
:
Code:
$zc_col_count_description++;
break;
case 'PRODUCT_LIST_QUANTITY':
$lc_text = TABLE_HEADING_QUANTITY;
$lc_align = 'right';
$zc_col_count_description++;
break;
case 'PRODUCT_LIST_WEIGHT':
I'm still learning how to write code, so any help, if what I am about to ask is possible, would be greatly appreciated.
If it's possible to just show "In Stock" for the fixed price items I will be selling, and show the actual quantity of the items I will be auctioning, with an "if" statement, would someone be able to help me? How would I write it, and where exactly would I put it?
Thanks in advance! I hope it's possible with an "if" or some other coding.
Bookmarks