Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2010
    Posts
    18
    Plugin Contributions
    0

    help question Help? not in stock, add to cart button gone. How to fix this?

    Hi

    my store:
    http://www.spysecurityshop.nl

    I changed a file to display stock status. (i got this from the dutch zencart forum)

    What i have now:
    Green image = in stock (1 to 2 days shipping)
    orange image = low stock (1 to 2 days shipping)
    red image = not in stock (3 to 6 days shipping)

    If its in stock the "add to cart" button displays fine, but if the product is not in stock (red) then the add to cart button is gone.

    I want to display the add to cart button no matter the stock status.

    Does anyone know how to fix this or help me?

    Thanks in advance

    ps. This is what i changed:

    in : public_html\includes\templates\template_default\templates\tpl_product_info_displ ay.php

    i changed:
    <?php echo (($flag_show_product_info_quantity == 1) ? '<li>' . $products_quantity . TEXT_PRODUCT_QUANTITY . '</li>' : '') . "\n"; ?>

    to:

    <table border="0" cellpadding="1" cellspacing="0" width="100%">
    <tbody><tr>
    <?php

    if ($products_quantity >= 1) {
    echo '<td class="voorraad" width="24"><img alt="Artikel op voorraad" src="' . $template->get_template_dir('groen.gif', DIR_WS_TEMPLATE, $current_page_base,'images') . '/groen.gif" /></td>';
    echo '<td class="voorraad">' . TEXT_IN_STOCK2 . '</td>';
    }
    if ($products_quantity == 0) {
    echo '<td class="voorraad" width="24"><img alt="Artikel op voorraad" src="' . $template->get_template_dir('oranje.gif', DIR_WS_TEMPLATE, $current_page_base,'images') . '/oranje.gif" /></td>';
    echo '<td class="voorraad">' . TEXT_NO_STOCK1 . '</td>';
    }
    if ($products_quantity <= -1) {
    echo '<td class="voorraad" width="24"><img alt="Artikel niet op voorraad" src="' . $template->get_template_dir('rood.gif', DIR_WS_TEMPLATE, $current_page_base,'images') . '/rood.gif" /></td>';
    echo '<td class="voorraad">' . TEXT_NO_STOCK . '</td>';
    }
    ?>
    </tr>
    </tbody></table>

    ----------------------------------------------------------------------------------------------------------

    in: Public_html\includes\languages\dutch(of ander taal)\product_info.php

    i added:
    define('TEXT_PRODUCT_QUANTITY', ' aantal op voorraad');
    define('TEXT_IN_STOCK2', ' deliverytime: 1 to 2 days');
    define('TEXT_NO_STOCK1', ' deliverytime: 1 to 2 days');
    define('TEXT_NO_STOCK', ' deliverytime: 3 to 6 days');
    Last edited by Dramacydril; 3 Feb 2011 at 04:38 AM.

  2. #2
    Join Date
    Jul 2010
    Posts
    18
    Plugin Contributions
    0

    Default Re: Help? Zencart not in stock, add to cart button gone. How to fix this?

    Nevermind I have this figured out.

    What i did was:

    Configuration --> Stock --> Show sold out image in place of add to cart, i set this to 0.

    Now i can add products to the cart no matter the stock status.

 

 

Similar Threads

  1. Add to cart button gone
    By skruzich in forum General Questions
    Replies: 4
    Last Post: 22 Nov 2012, 06:06 PM
  2. v150 add to cart button - GONE
    By StaffsGeo in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 30 Apr 2012, 12:22 AM
  3. Add to Cart button gone
    By creativeone in forum General Questions
    Replies: 6
    Last Post: 14 Nov 2008, 02:34 PM
  4. Add to cart Button is now Gone..please help
    By EvoPowerMods in forum Basic Configuration
    Replies: 0
    Last Post: 19 May 2008, 06:24 AM
  5. please help me fix this code, adding quantity box and add to cart button to xsell
    By lankeeyankee in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 7 Nov 2007, 03:24 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