|
|
|
BISI Admin
Group: Administrators
Last Login: Today @ 7:44:37 PM
Posts: 2,976,
Visits: 8,609
|
|
| Here's an easy solution to add a quantity selector to your custom template: Just drop this anywhere on the product details page within the form. Alternatively, you can use a text box. As long as it is named "quanity". It performs all the same inventory tracking, and control as it does on the checkout page. Quantity: <select name="quantity"> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> <option value="5">5</option> <option value="6">6</option> <option value="7">7</option> <option value="8">8</option> <option value="9">9</option> <option value="10">10</option> </select> Here's an example item with unlimited inventory control: http://tomas.mybisi.com/product/27153/Box-of-galvanized-nails_93563.html Here's an example where I only have 2 in stock: http://tomas.mybisi.com/product/0/All-Star-kicks_127.html Although the drop down allows for 10, only 2 can be added to the cart at one time. If needed, you can get tricky with some javascript to limit the drop items from the $DefaultStockLevel and the ajax response from the changeStockLevel and setMultiOptions function used with variants.
---------------------
Tomas
Follow BISI on twitter!
|
|
|
|
|
BISI Guru
      
Group: Forum Members
Last Login: 10/10/2009 1:22:23 AM
Posts: 1,318,
Visits: 3,484
|
|
|
|
|
|
BISI Guru
      
Group: Forum Members
Last Login: Today @ 3:37:33 PM
Posts: 2,782,
Visits: 6,858
|
|
If needed, you can get tricky with some javascript to limit the drop items from the $DefaultStockLevel and the ajax response from the changeStockLevel and setMultiOptions function used with variants.
I love this feature b/c the my customers often purchase more than one. This will be simpler for them. So I just put a statement near that drop down about the available quantity limitations... since I'm not good at "getting tricky with javascript". Hope this statement will prevent those " I can't put 6 in my cart, it always switches to 4..." type of phone calls. We'll see......
my version
~ Gayla

|
|
|
|
|
BISI Guru
      
Group: Forum Members
Last Login: 2 days ago @ 12:24:58 PM
Posts: 871,
Visits: 1,475
|
|
|
|
|
|
BISI Guru
      
Group: Forum Members
Last Login: 11/5/2009 6:59:08 AM
Posts: 348,
Visits: 2,166
|
|
What could I be doing wrong? I'm adding the code that Tomas posted above. Nothing. Then I viewed his page source for the unlimited quantity example and noticed there is a little bit more code added after what he posted (don't copy this code because I've had to add spaces in order for it to show on this post):
< input type="submit" value="" class="add_button" />
< div id="availability" style="display:none;" >
< b>Availability: < span id="availability_value">Unlimited< /span>
< /div>
Still nothing shows up. Am I supposed to put code in another location as well? For instance, how does it know what button to add from the above code? I would think I would need some type of code (HTML? css?) to define the button. I hope I'm explaining this sufficiently.
Christine
Your Virtual Fuller Brush Man www.FullerBrush.myBISI.com

Shop for unadvertised Fuller Brush and Stanley Home Products specials at Fuller Brush Central
|
|
|
|
|
BISI Admin
Group: Administrators
Last Login: Today @ 7:44:37 PM
Posts: 2,976,
Visits: 8,609
|
|
|
|
|
|
BISI Guru
      
Group: Forum Members
Last Login: 11/5/2009 6:59:08 AM
Posts: 348,
Visits: 2,166
|
|
I took it out when it didn't work. Do you want me to add it back in so you can take a look? Should I add that last part of code, or just the part you posted at the top of this thread?
EDIT: Tomas, I just added it again for you.
Christine
Your Virtual Fuller Brush Man www.FullerBrush.myBISI.com

Shop for unadvertised Fuller Brush and Stanley Home Products specials at Fuller Brush Central
|
|
|
|
|
BISI Admin
Group: Administrators
Last Login: Today @ 7:44:37 PM
Posts: 2,976,
Visits: 8,609
|
|
The code that you added above is if you want your product availability displayed. You can add it you want that feature.
---------------------
Tomas
Follow BISI on twitter!
|
|
|
|
|
BISI Guru
      
Group: Forum Members
Last Login: 11/5/2009 6:59:08 AM
Posts: 348,
Visits: 2,166
|
|
OK, I deleted that extra code above and just inserted what you put at the top of this thread. I'm still not getting a drop-down box to select quantity. What did I do wrong? Thanks for looking at this for me, Tomas.
Christine
Your Virtual Fuller Brush Man www.FullerBrush.myBISI.com

Shop for unadvertised Fuller Brush and Stanley Home Products specials at Fuller Brush Central
|
|
|
|
|
BISI Admin
Group: Administrators
Last Login: Today @ 7:44:37 PM
Posts: 2,976,
Visits: 8,609
|
|
Its there, you just put it in the wrong spot. it's way up by the search box.
Move it down near the add to cart button.
---------------------
Tomas
Follow BISI on twitter!
|
|
|
|