ProductCart E-Commerce Solutions Homepage
Forum Home Forum Home > ProductCart > Customizing ProductCart
  New Posts New Posts RSS Feed - Hide Quantity Box
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Hide Quantity Box

 Post Reply Post Reply
Author
Message
rivaldog View Drop Down
Newbie
Newbie


Joined: 26-May-2008
Location: Kansas City
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote rivaldog Quote  Post ReplyReply Direct Link To This Post Topic: Hide Quantity Box
    Posted: 04-March-2012 at 8:56am
Can anyone provide the code on hiding the quantity box next to 'add to cart' button on the product detail page?

There used to be a post here in the forums that provided this but it appears to have been removed.

thank you
Rivaldog
Back to Top
Hamish View Drop Down
Admin Group
Admin Group


Joined: 12-October-2006
Location: United Kingdom
Status: Offline
Points: 56
Post Options Post Options   Thanks (0) Thanks(0)   Quote Hamish Quote  Post ReplyReply Direct Link To This Post Posted: 05-March-2012 at 4:27pm
Hi,
  We only delete spam posts, so I expect it's there somewhere. I found this - for BTO http://www.earlyimpact.com/forum/forum_posts.asp?TID=2952&PID=13257

Back to Top
Hamish View Drop Down
Admin Group
Admin Group


Joined: 12-October-2006
Location: United Kingdom
Status: Offline
Points: 56
Post Options Post Options   Thanks (0) Thanks(0)   Quote Hamish Quote  Post ReplyReply Direct Link To This Post Posted: 06-March-2012 at 6:14pm
Hi,
 I've taken a look and believe the answer is straight forward - as long as you ALWAYS want the quantity to be fixed at 1 !!

In file viewPrdCode.asp find :-

Public Sub pcs_AddtoCart


            'SB S
            if pSubscriptionID > 0 and pSubType <> 2 Then%>
                <input  type="hidden" name="quantity" value="1">
            <%else%>
            <input type="text" name="quantity" size="5" maxlength="10" value="<%=pcv_intQuantityField%>">
            <%
            End if
            'SB E %>


and change it to


            'SB S
            if pSubscriptionID > 0 and pSubType <> 2 Then%>
                <input  type="hidden" name="quantity" value="1">
            <%else%>
              <% ' Suiteable change tracking comment here %>  
              <input  type="hidden" name="quantity" value="1">
            <% ' (Commented out) input type="text" name="quantity" size="5" maxlength="10" value=" %>
<%  ' =pcv_intQuantityField% >"> %>
            <%
            End if
            'SB E %>


Corrected code...


Edited by Hamish - 06-March-2012 at 6:17pm
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.047 seconds.