![]() |
how to add a plus minus beside add to cart bt |
Post Reply ![]() |
Author | |
fire ![]() Newbie ![]() Joined: 29-December-2008 Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() Posted: 07-January-2009 at 11:45pm |
Does any one know how I can add a plus minus beside add to cart button? Instead of having to enter a number for the product I want to have a + or - tab....
-----edit Just in case someone is trying to actually use this forum...and wants to add something like the above...here is the basics of what I did. I have my products come up (display) with the :In a list (multiple add) way this page is (pcShowProductM.asp) it may be different for you depending on how you display products. Also make sure you save a copy of your page just in case. Find in Editor <input name="QtyM<%=pidProduct%>" type="text" value="0" size="2" maxlength="10" onBlur="<%=pcv_strOnBlur%>"> Add id (id="qty<%=pidProduct%>" ) after (type=text) and then add... <%'///////////////////////////////////////Added by YOU - increase decrease javascript - plus id="qty<=pidProduct>" above...///////////////////////////////%> <input type='button' name='add' onclick='javascript: document.getElementById("qty<%=pidProduct%>").value++;' value='+'/> <input type='button' name='subtract' onclick='javascript: document.getElementById("qty<%=pidProduct%>").value--;' value="-" /> insert just before <% Else %> THIS WORKS FOR ME IT MAY NOT FOR YOU BUT SHOULD:) Edited by fire - 08-January-2009 at 6:58pm |
|
![]() |
|
fire ![]() Newbie ![]() Joined: 29-December-2008 Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() |
If this does not make sense let me know I will try to explain better
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |