商品加入购物车时指定购买数量,可增加“pn=数量”变量。比如用表单GET方式提交:

<form action="[!---news.url--]e/ShopSys/doaction.php" name="shopform" method="get" target="_blank">
			选择购买数量:<select name="pn" id="pn">
				<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>
			<input type="hidden" name="enews" value="AddBuycar">
			<input type="hidden" name="classid" value="[!---classid--]">
			<input type="hidden" name="id" value="[!---id--]">
			<input type="submit" name="submit" value="加入购物车">
</form>