Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2007
    Posts
    45
    Plugin Contributions
    0

    Default Simply button to mark as out of stock

    We had before the update (from 1.3.8 to 1.3.9h) of our site a simple button in admin to mark as products out of stock as we do not use stock levels so to make it easier for staff to update items as in stock we changed the code of admin/includes/modules/category_product_listing.php

    at lines 332-333 we replaced it with
    PHP Code:
    <td class="dataTableContent" align="right">
    <?php                    
    if ($products->fields['products_quantity'] <= ) {
        echo 
    '<a href="' zen_href_link(FILENAME_CATEGORIES'action=setquantity&product_quantity=1&pID=' $products->fields['products_id'] . '&cPath=' $cPath . (isset($_GET['page']) ? '&page=' $_GET['page'] : '')) . '">' zen_image(DIR_WS_IMAGES 'icon_red_on.gif'"Put a product back in stock") . '</a>';
    } else {
        echo 
    '<a href="' zen_href_link(FILENAME_CATEGORIES'action=setquantity&product_quantity=0&pID=' $products->fields['products_id'] . '&cPath=' $cPath . (isset($_GET['page']) ? '&page=' $_GET['page'] : '')) . '">' zen_image(DIR_WS_IMAGES 'icon_green_on.gif'"Mark a product out of stock") . '</a>';
    }
    ?>

                    <?php echo $products->fields['products_quantity']; ?>
                    </td>
                    <td class="dataTableContent" width="50" align="center">
    But now when clicking the button for product quantity it does not change it

    Has there been a security update that makes this not work anymore or is there any errors in the coding

  2. #2
    Join Date
    Jul 2007
    Posts
    45
    Plugin Contributions
    0

    Default Re: Simply button to mark as out of stock

    Fixed it as missed out the customization on categories for the command setquantity

 

 

Similar Threads

  1. v139h Can I mark a product as out of stock?
    By I wish I could in forum Installing on a Linux/Unix Server
    Replies: 2
    Last Post: 27 Jan 2012, 01:46 AM
  2. Mark product out of stock issue
    By gentlemoms in forum General Questions
    Replies: 2
    Last Post: 10 Nov 2011, 02:03 AM
  3. Mark product out of stock
    By ZL Conquistador in forum Managing Customers and Orders
    Replies: 17
    Last Post: 19 Jun 2011, 11:07 PM
  4. Multi language: Mark product out of stock
    By FromTheRiviera in forum Bug Reports
    Replies: 2
    Last Post: 22 Sep 2007, 07:04 PM

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