html Miva产品最后订购日期

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了html Miva产品最后订购日期相关的知识,希望对你有一定的参考价值。

<mvt:foreach iterator="product" array="products">
  	<!--
			SELECT order_id,product_id FROM s01_OrderItems WHERE product_id=6528 ORDER BY order_id DESC LIMIT 1
			l.settings:appliedCoupon[1]:freeship	
		-->
		<mvt:if expr="POS1 LT g.limit">
			<mvt:item name="ry_toolbelt" param="assign|g.queryOrderId|'SELECT order_id,product_id FROM s01_OrderItems WHERE (product_id = `' $ l.all_settings:product:id $ '`) ORDER BY order_id DESC LIMIT 1'" />
			<mvt:item name="ry_toolbelt" param="query|g.queryOrderId|getLastOrderId" />
			<!-- Order: &mvt:getLastOrderId[1]:order_id; -  -->
			
			<mvt:item name="ry_toolbelt" param="assign|g.queryOrderDate|'SELECT id,orderdate FROM s01_Orders WHERE (id = `' $ l.all_settings:getLastOrderId[1]:order_id $ '`)'" />
			<mvt:item name="ry_toolbelt" param="query|g.queryOrderDate|getLastOrderDate" />
			<!-- Date: &mvt:getLastOrderDate[1]:orderdate;,  -->
			<mvt:item name="toolkit" param="vassign|orderDate|l.all_settings:getLastOrderDate[1]:orderdate" />
			
			<mvt:item name="toolkit" param="time_t_year|nyear|g.orderDate" />
			<mvt:item name="toolkit" param="padl|cyear|nyear|2|0" />
			<mvt:item name="toolkit" param="time_t_month|nmonth|g.orderDate" />
			<mvt:item name="toolkit" param="time_t_dayofnmonth|nday|g.orderDate" />
			<mvt:if expr="g.orderDate EQ ''">
				<strong style="color:red">No Orders</strong>
			<mvt:else>
				&mvt:global:orderDate;
			</mvt:if> - <a href="&mvt:product:link;">&mvt:product:name;</a><br/>
		</mvt:if>
	</mvt:foreach>

以上是关于html Miva产品最后订购日期的主要内容,如果未能解决你的问题,请参考以下文章

xml Miva - 订购商品:主码的变体代码

html Miva - 最近浏览的产品(Footsteps)

html Miva - 产品PhotoSwipe Gallery

html Miva - 产品多添加

html Miva - Toolbelt:日期时间格式化PST

html Miva - 添加已删除的产品返回购物车