BuyItSellIt Community
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        


1234»»»

Add Quantity selector to your custom... Expand / Collapse
Author
Message
Posted 2/20/2009 5:27:48 AM


BISI Admin

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!

Post #30135
Posted 2/20/2009 6:15:45 AM


BISI Guru

BISI GuruBISI GuruBISI GuruBISI GuruBISI GuruBISI GuruBISI GuruBISI Guru

Group: Forum Members
Last Login: 10/10/2009 1:22:23 AM
Posts: 1,318, Visits: 3,484
Awe! You are so sweet!!!

BTW, I LOVE the selection of products in your store! I always get a laugh when I go to it.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Jennifer



An independent BISI solutions provider



Filling Out SEO Tabs | Putting Images In Your Store | Understanding the XML File Transfer | So You Want To Get Googled...



Post #30138
Posted 2/20/2009 7:11:25 AM


BISI Guru

BISI GuruBISI GuruBISI GuruBISI GuruBISI GuruBISI GuruBISI GuruBISI 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







Post #30147
Posted 2/22/2009 12:24:23 AM


BISI Guru

BISI GuruBISI GuruBISI GuruBISI GuruBISI GuruBISI GuruBISI GuruBISI Guru

Group: Forum Members
Last Login: 2 days ago @ 12:24:58 PM
Posts: 871, Visits: 1,475
Wonderful. I think my templates have so much added code in them now, I best not ever change....LOL

So many codes and updates, it feels like Christmas

UPGRADE NOTES


BuyItSellIt Networking Groups
Twitter: http://www.twittgroups.com/group/buyitsellit
Squidoo: http://www.squidoo.com/groups/buyitsellit
MySpace: http://groups.myspace.com/bisiowners
Facebook: http://www.facebook.com/group.php?gid=128200151582
Post #30383
Posted 2/22/2009 10:55:11 AM


BISI Guru

BISI GuruBISI GuruBISI GuruBISI GuruBISI GuruBISI GuruBISI GuruBISI 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
Post #30408
Posted 2/22/2009 11:08:20 AM


BISI Admin

BISI Admin

Group: Administrators
Last Login: Today @ 7:44:37 PM
Posts: 2,976, Visits: 8,609
I see no quantity select in your custom template.

---------------------
Tomas

Follow BISI on twitter!
Post #30411
Posted 2/22/2009 11:25:26 AM


BISI Guru

BISI GuruBISI GuruBISI GuruBISI GuruBISI GuruBISI GuruBISI GuruBISI 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
Post #30414
Posted 2/22/2009 11:28:21 AM


BISI Admin

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!
Post #30416
Posted 2/22/2009 11:35:04 AM


BISI Guru

BISI GuruBISI GuruBISI GuruBISI GuruBISI GuruBISI GuruBISI GuruBISI 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
Post #30417
Posted 2/22/2009 11:50:48 AM


BISI Admin

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!
Post #30418
« Prev Topic | Next Topic »

1234»»»

All times are GMT -8:00, Time now is 8:25pm

Powered by InstantForum.NET v4.1.4 © 2009
Execution: 0.125. 8 queries. Compression Disabled.