Jump to content

[Solucionado] Desactivar contrareembolso para primer pedido


Recommended Posts

Eso en el FrontController en la parte del initcontent, asi

  /* Orders dates*/

	$orders = Order::getCustomerOrders($this->context->customer->id);
		$total_orders = count($orders);
		$this->context->smarty->assign(array(
			'total_orders' =>$total_orders,
			
		
		));

Luego en el tpl del modulo un condicional tipo

{if $total_orders > 0} .......codigo del modulo....{/if}

De esta manera solo aparecera si los clientes tienen algún pedido, no lo he probado pero deberia funcionar

Edited by ventura (see edit history)
  • Like 1
Link to comment
Share on other sites

  • 2 years later...
  • nadie locked this topic
Guest
This topic is now closed to further replies.
×
×
  • Create New...