Print Page | Close Window

Hide Quantity Box

Printed From: ProductCart E-Commerce Solutions
Category: ProductCart
Forum Name: Customizing ProductCart
Forum Description: Exchange messages with other users that are customizing ProductCart.
URL: https://forum.productcart.com/forum_posts.asp?TID=5030
Printed Date: 06-July-2025 at 12:20am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Hide Quantity Box
Posted By: rivaldog
Subject: Hide Quantity Box
Date 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



Replies:
Posted By: Hamish
Date 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



-------------
Editing ProductCart Code?

See http://wiki.earlyimpact.com/developers/editcode" rel="nofollow - WIKI Guidelines for Editing ProductCart's ASP Source Code



Posted By: Hamish
Date 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...


-------------
Editing ProductCart Code?

See http://wiki.earlyimpact.com/developers/editcode" rel="nofollow - WIKI Guidelines for Editing ProductCart's ASP Source Code




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net