sirtonyo Posted May 27, 2014 Share Posted May 27, 2014 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ÁNDAR: <strong>3,95 EUR</strong></p><p>Entregas en 24-48h (días laborables)</p><br><p>Para envíos a Canarias, Ceuta y Melilla (por gestión de DUA), contacta previamente con nuestro <a href="http://zarku.com/contactenos"target="_blank">departamento de atención al cliente.</a></p><br><p>Envíos internacionales: El plazo de entrega será hasta de 9 días</p>'); }else{ $("#idTab11").html('<p><strong>¡ENVIO GRATUITO!</strong></p><p>Entregas en 24-48h (días laborables)</p><br><p>Para envíos a Canarias, Ceuta y Melilla (por gestión de DUA), contacta previamente con nuestro <a href="http://zarku.com/contactenos">departamento de atención al cliente</p><br><p>Envíos internacionales: El plazo de entrega será hasta de 9 días</p>'); } } Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now