Paulito Posted July 7, 2013 Share Posted July 7, 2013 Good morning all, Using ps 1.5.1.4 default template with modification. Url: gadgetskunk.co.uk Because delivery times are possibly longer than a visitor might expect I would like to have a compulsory check box that customers have to tick before being able to checkout, the same as terms and conditions, I assume this must be possible but I do not know how to implement. I have already set up a tab on the product pages which will gjve information about delivery times if clicked ( Thank you "cocothecat" ) and will spread this information around the site, but I need a clickable checkbox to ensure the customer knows. Hope you understand I am sure any answers to this problem will benefit other forum members. Hope you can help Paul Link to comment Share on other sites More sharing options...
Paulito Posted July 11, 2013 Author Share Posted July 11, 2013 Good morning all Does anyone have any ideas about this, I am surprised that this is something that other forums members do not want to know about Anyway, I hope someone can give me a clue Paul Link to comment Share on other sites More sharing options...
Paulito Posted July 13, 2013 Author Share Posted July 13, 2013 Good morning all Well, I have managed to get the Check Box I require (see attached image) but I am still struggling to get the iframe to pop-up if a customer does not check the box. Any clues would be really helpful Paul PS. Also how to link to the delivery page Link to comment Share on other sites More sharing options...
razaro Posted July 16, 2013 Share Posted July 16, 2013 For popup try to replicate code var msg = "{l s='You must agree to the terms of service before continuing.' js=1}"; {literal} function acceptCGV() { if ($('#cgv').length && !$('input#cgv:checked').length) { alert(msg); return false; } else return true; } {/literal} in order-carier.tpl. And for linking delivery page try to use something similar like, <a href="{$link->getCMSLink($cmspages.id_cms, $cmspages.link_rewrite)|escape:'htmlall':'UTF-8'}">{$cmspages.meta_title|escape:'htmlall':'UTF-8'}</a> for example <a href="{$link->getCMSLink(1, 'delivery')}">{l s='(Delivery)'}</a> have not tried it but it might work. Link to comment Share on other sites More sharing options...
Recommended Posts