Jump to content

Special delivery price for concrete manufacturer


sirtonyo

Recommended Posts

Hi everybody!

 

      I would like to know how can I retrieve the manufacturer_id from the shopping cart, to display a special text if a product from that manufacturer is on the shopping cart.

 

Actually, if the shopping cart value is <50, one message is displayed. For else, another is displayed.

 

I post the code to see if anyone can help.

 

Thanks in advance

{/if}
	{*Evios*}
	<div id="idTab11" class="rte">
		{literal}
			<script type="text/javascript">
				$( document ).ready(function() {
				checkCart();
				var timer = setInterval(function() {
				 checkCart();
				}, 3000);
				function checkCart(){
					var totalCart = $('.ajax_block_cart_total').text().split(" ");
					totalCart = totalCart[0];
					if(parseInt(totalCart)<50){
				    	$("#idTab11").html('<p>EST&AacuteNDAR: <strong>3,95 EUR</strong></p><p>Entregas en 24-48h (d&iacuteas laborables)</p><br><p>Para env&iacuteos a Canarias, Ceuta y Melilla (por gesti&oacuten de DUA), contacta previamente con nuestro <a href="http://zarku.com/contactenos"target="_blank">departamento de atenci&oacuten al cliente.</a></p><br><p>Env&iacuteos internacionales: El plazo de entrega será hasta de 9 d&iacuteas</p>');
				    }else{
				    	$("#idTab11").html('<p><strong>¡ENVIO GRATUITO!</strong></p><p>Entregas en 24-48h (d&iacuteas laborables)</p><br><p>Para env&iacuteos a Canarias, Ceuta y Melilla (por gesti&oacuten de DUA), contacta previamente con nuestro <a href="http://zarku.com/contactenos">departamento de atenci&oacuten al cliente</p><br><p>Env&iacuteos internacionales: El plazo de entrega será hasta de 9 d&iacuteas</p>');
				    }
				}
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...