html Miva - Base ReadyTheme - BASK:购物篮内容

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了html Miva - Base ReadyTheme - BASK:购物篮内容相关的知识,希望对你有一定的参考价值。

<mvt:if expr="l.settings:basket:empty">
	Your shopping basket is currently empty.
	<p><mvt:item name="cssui_links" param="storefront">Home</mvt:item></p>
	<mvt:exit />
</mvt:if>
<div class="container-fluid">
	<div class="row">
		<div class="col-md-12">
			<h3 class="title"><i class="icon-shopping-cart"></i> Items in your cart [<span class="color">&mvt:global_minibasket:basket_count;</span>]</h3>
			<br />
			<div class="row hidden-xs">
				<div class="col-sm-offset-2 col-sm-4"><b>Name</b></div>
				<div class="col-sm-2 text-center"><b>Quantity</b></div>
				<div class="col-sm-2 text-right"><b>Unit Price</b></div>
				<div class="col-sm-2 text-right"><b>Total</b></div>
			</div>
			<mvt:foreach iterator="group" array="basket:groups">
				<div class="row">
					<div class="remove-row_BAK hidden-xs col-sm-1">
						<form method="post" action="&mvt:global:sessionurl;Screen=BASK" class="form-inline remove-form" role="form">
							<input type="hidden" name="Action" value="RGRP" />
							<input type="hidden" name="Store_Code" value="&mvte:global:Store_Code;" />
							<input type="hidden" name="Basket_Group" value="&mvte:group:group_id;" />
							<input type="hidden" name="Offset" value="&mvte:global:Offset;" />
							<input type="hidden" name="AllOffset" value="&mvte:global:AllOffset;" />
							<input type="hidden" name="CatListingOffset" value="&mvte:global:CatListingOffset;" />
							<input type="hidden" name="RelatedOffset" value="&mvte:global:RelatedOffset;" />
							<input type="hidden" name="SearchOffset" value="&mvte:global:SearchOffset;" />
							<div class="text-center">
								<mvt:item name="buttons" param="Remove" />
							</div>
						</form>
					</div>
					<mvt:if expr="l.settings:group:imagetypes:main">
						<div class="image-row hidden-xs col-sm-1"><a href="&mvt:global:sessionurl;Screen=PROD&amp;Store_Code=&mvta:global:Store_Code;&amp;Product_Code=&mvta:group:code;"><img src="&mvte:group:imagetypes:main;" alt="&mvt:group:name;" title="&mvt:group:name;" /></a></div>
					<mvt:else>
						<div class="image-row hidden-xs col-sm-1">&nbsp;</div>
					</mvt:if>
					<div class="name-row col col-sm-4">
						<a href="&mvt:global:sessionurl;Screen=PROD&amp;Store_Code=&mvta:global:Store_Code;&amp;Product_Code=&mvta:group:code;">&mvt:group:name;</a>
						<mvt:if expr="l.settings:group:upsold">
							&nbsp;(Special Offer)
						</mvt:if>
						<mvt:foreach iterator="discount" array="group:discounts">
							<mvt:if expr="l.settings:discount:display">
								<div class="item-discount">&mvt:discount:descrip;: &mvt:discount:formatted_discount;</div>
							</mvt:if>
						</mvt:foreach>

						<mvt:foreach iterator="option" array="group:options">
							<div>
								<mvt:if expr="l.settings:option:option_id">
									&mvt:option:attr_prompt;: &mvt:option:opt_code;
								<mvt:elseif expr="NOT ISNULL l.settings:option:data">
									&mvt:option:attr_prompt;: &mvt:option:data;
								<mvt:elseif expr="NOT ISNULL l.settings:option:data_long">
									&mvt:option:attr_prompt;: &mvt:option:data_long;
								<mvt:else>
									&mvt:option:attr_prompt;
								</mvt:if>
							</div>
							<mvt:foreach iterator="discount" array="option:discounts">
								<mvt:if expr="l.settings:discount:display">
									<div class="item-discount">&mvt:discount:descrip;: &mvt:discount:formatted_discount;</div>
								</mvt:if>
							</mvt:foreach>
						</mvt:foreach>
					</div>
					<div class="item-input qty-row col-sm-2 col-xs-6 text-center">
						<mvt:if expr="l.settings:group:upsold">
							&mvt:group:quantity;
						<mvt:else>
							<form method="post" action="&mvt:global:sessionurl;Screen=BASK" class="form-inline text-center clearfix" role="form">
								<input type="hidden" name="Action" value="QTYG" />
								<input type="hidden" name="Store_Code" value="&mvte:global:Store_Code;" />
								<input type="hidden" name="Basket_Group" value="&mvte:group:group_id;" />
								<input type="hidden" name="Old_Screen" value="BASK" />
								<input type="hidden" name="Offset" value="&mvte:global:Offset;" />
								<input type="hidden" name="AllOffset" value="&mvte:global:AllOffset;" />
								<input type="hidden" name="CatListingOffset" value="&mvte:global:CatListingOffset;" />
								<input type="hidden" name="RelatedOffset" value="&mvte:global:RelatedOffset;" />
								<input type="hidden" name="SearchOffset" value="&mvte:global:SearchOffset;" />
								<div class="input-group">
									<input type="text" name="Quantity" value="&mvt:group:quantity;" class="form-control text-center" />
									<span class="input-group-btn">
										<button class="btn btn-default"><span class="visible-xs"><span class="icon-save"></span></span><span class="hidden-xs">Update</span></button>
									</span>
								</div>
							</form>
						</mvt:if>
					</div>
					<div class="price-row col-sm-2 hidden-xs text-right">

						&mvt:group:formatted_base_price;

						<mvt:foreach iterator="option" array="group:options">
							<div>
								<mvt:if expr="l.settings:option:base_price">
									&mvt:option:formatted_base_price;
								<mvt:else>
									&nbsp;
								</mvt:if>
							</div>
						</mvt:foreach>
					</div>
					<div class="total-row col-sm-2 col-xs-6 text-right">

						<mvt:if expr="l.settings:group:subtotal_base_price NE l.settings:group:subtotal">
							<span style="text-decoration: line-through;">&mvt:group:formatted_subtotal_base_price;</span>
						</mvt:if>
						&mvt:group:formatted_subtotal;

						<mvt:foreach iterator="option" array="group:options">
							<div>
								<mvt:if expr="l.settings:option:subtotal_base_price OR l.settings:option:subtotal">
									<mvt:if expr="l.settings:option:subtotal_base_price NE l.settings:option:subtotal">
										<span style="text-decoration: line-through;">&mvt:option:formatted_subtotal_base_price;</span>
									</mvt:if>
									&mvt:option:formatted_subtotal;
								<mvt:else>
									&nbsp;
								</mvt:if>
							</div>
						</mvt:foreach>
					</div>
				</div>
				<hr>
			</mvt:foreach>
			<div id="basket-footer">
				<mvt:foreach iterator="charge" array="basket:charges">
				<div class="basket-charges col-md-12">
					<p class="formatted-charge text-right">&mvt:charge:descrip;: &mvt:charge:formatted_disp_amt;</p>
				</div>
				</mvt:foreach>
				<div id="basket-totals" class="col-md-12">
					<p class="formatted-total text-right">Total: &mvt:basket:formatted_total;</p>
				</div>
			</div>
			<div class="row">
				<div class="col-md-8 col-sm-6 text-left hidden-xs">
					<mvt:item name="shipestimate"></mvt:item>
				</div>
				<div class="col-md-4 col-sm-6 text-right">
					<a href="&mvt:global:sessionurl;Screen=SFNT&amp;Store_Code=&mvta:store:code;" class="btn btn-default">Continue Shopping</a>
					<a href="&mvte:global:secure_sessionurl;Screen=OINF&amp;Store_Code=&mvta:store:code;" class="btn btn-danger">Check Out</a>
				</div>
				</div>
			</div>

			<div class="row">
				<div class="col-md-12 col-sm-12 text-left col-xs-12">
					<form method="post" action="&mvte:global:sessionurl;Screen=BASK">
					<input type="hidden" name="Action" value="ACPN" />
					<input type="hidden" name="Store_Code" value="&mvte:global:Store_Code;" />
					Coupon: <input type="text" name="Coupon_Code"> <mvt:item name="buttons" param="ApplyCoupon" />
					</form>
				</div>
			</div>

		</div>
	</div>
</div>

以上是关于html Miva - Base ReadyTheme - BASK:购物篮内容的主要内容,如果未能解决你的问题,请参考以下文章

html miva_array_search.html

html miva_array_search.html

html miva_array_search.html

html MIVA结帐-AB-的test.html

html Miva API - JSON功能Example.html

html Miva API - JSON功能Example.html