

<?xml version="1.0" encoding="UTF-8"?>
	<rss version="2.0"
		xmlns:content="http://purl.org/rss/1.0/modules/content/"
		xmlns:wfw="http://wellformedweb.org/CommentAPI/"
		xmlns:dc="http://purl.org/dc/elements/1.1/"
		xmlns:atom="http://www.w3.org/2005/Atom"

			>

	<channel>
		<title>LexiConn News  &#187;  Topic: Setting a Maximum Product Quantity in ShopSite</title>
		<atom:link href="https://support.lexiconn.com/news/forums/topic/setting-a-maximum-product-quantity-in-shopsite/feed/" rel="self" type="application/rss+xml" />
		<link>https://support.lexiconn.com/news/forums/topic/setting-a-maximum-product-quantity-in-shopsite/feed/</link>
		<description></description>
		<pubDate>Sun, 19 Apr 2026 11:00:20 +0000</pubDate>
		<generator>http://bbpress.org/?v=2.5.3-5249</generator>
		<language>en-US</language>

		
														
					
				<item>
					<guid>https://support.lexiconn.com/news/forums/topic/setting-a-maximum-product-quantity-in-shopsite/#post-48753</guid>
					<title><![CDATA[Setting a Maximum Product Quantity in ShopSite]]></title>
					<link>https://support.lexiconn.com/news/forums/topic/setting-a-maximum-product-quantity-in-shopsite/#post-48753</link>
					<pubDate>Tue, 28 Sep 2010 19:19:58 +0000</pubDate>
					<dc:creator>Anonymous</dc:creator>

					<description>
						<![CDATA[
						<p>There may be several instances where you would like to set a maximum quantity per product per order. For example, you may have a specially priced item that you are offering as a promotion, but you do not want to allow more than one per order.</p>
<p>If you are using ShopSite Pro, you can enforce this by using the JavaScript CheckIt function located under Commerce Setup -&gt; Order System -&gt; Shopping Cart. Here is some sample code you can use to enforce a maximum quantity of one for a particular item:</p>
<p>&nbsp;</p>
<pre>ns_count = 0; 
 
 for(ns=0; ns&lt;ss_sku.length; ns++){ 
    if(ss_sku[ns]=='XXX'){ 
         ns_count+= ss_quantity[ns]; 
    } 
 } 
 
 if (button == "8") { 
   if(ns_count &gt; 1){ 
     alert("You may only order one of product YYY, please adjust your quantity accordingly"); 
     
     return false; 
   } 
 }</pre>
<p>&nbsp;</p>
<p>Replace XXX with the SKU of the product and YYY with the product name. If you want to set a maximum quantity greater than one, simply replace the value of &#8220;1&#8243; in the above code with the desired maximum value.</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

