Results 1 to 10 of 740

Threaded View

  1. #11
    Join Date
    Aug 2010
    Location
    Spokane, Washington, United States
    Posts
    34
    Plugin Contributions
    1

    Default Re: Auction Product Type

    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.
    Last edited by Joseph_Greely; 28 Jan 2011 at 01:29 AM. Reason: error
    Joseph Greely - Happy to be Zenning
    http://www.zen-cart.com/index.php?ma...roducts_id=325

 

 

Similar Threads

  1. Auction Product type
    By Andreas1211 in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 14 Aug 2014, 02:13 PM
  2. Auction Product Type: Can't add a product of the type.
    By sw0rdz in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 5 Sep 2009, 02:11 AM
  3. Auction Product Type
    By chinthana in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 18 Jun 2009, 10:33 AM
  4. Auction Mod. Product Type
    By wilt in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 15 Feb 2007, 07:35 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR