Jump to content

Compulsory delivery check box


Recommended Posts

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

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

post-321361-0-02131300-1373709989_thumb.png

Link to comment
Share on other sites

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

×
×
  • Create New...