Simple Cart & Buy Now
[resolved] Unit quantities, or stock control... (2 posts)

  1. Kevstah
    Posted 2 years ago #

    Hi, looks like a very useful plugin, got it pretty much confirgured how I need it, but one question... Can you state quantities of product in stock? I am selling sculptures and as such only really have one of each and don't want people ordering a few of the same or having many people place an order at the same time... is this plugin capable of doing that?




  2. bluey80
    Plugin Author

    Posted 2 years ago #

    You'll have to do a little hack:

    Take a look at the function

    function scabn_sc($atts) {

    inside includes/functions.php

    That is where the code for the add to cart is generated. You can add your own code there by adding more lines of the form

    $output.="In Stock: " . $getQtyInStock($item_id) . "<br/>";

    And you'll have to write the getQtyInStock function. Currently, SCABN doesn't do any lookups / checking on the add to cart button -- only when someone clicks on add to cart it checks the price, updates the quantity, etc.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic