News:

Looking for documentation? Take a look on our wiki

Main Menu

Checkout and terms of service confirmation after having read TOS

Started by juanki, December 01, 2015, 23:06:16 PM

Previous topic - Next topic

juanki

Hello, when a buyer wants to checkout, he has to fist check" I agree to terms of service", and after, he can read the terms of service using the modal window link. How could i invert the order?

Now it is:

1. Terms of Service (and check box)

2. Click here to read terms of service and check the box to accept them.

I think the user should be able to read terms of servive before accepting them, so it should be:


1. Click here to read terms of service and check the box to accept them. (modal window link)

2. Terms of Service (and check box)

So buyer can accept someting he has previously read.

How can i change the order of this lines in the cart?
Thanks much
Canary islands electronics online shop
http://www.architoner.com

GJC Web Design

just swap them around in  an over ride of   

sublayouts\tos.php

the chk box is

echo VmHtml::checkbox ($_prefix.$field['name'], $tos, 1, 0, 'class="terms-of-service required"', 'tos');

the link is below it
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

juanki

Hello, thanks much for your fast answer. Yes, you are right in

if(!class_exists('VmHtml')) require(VMPATH_ADMIN.DS.'helpers'.DS.'html.php');
echo VmHtml::checkbox ($_prefix.$field['name'], $tos, 1, 0, 'class="terms-of-service required"', 'tos');

i can change the checkbox location, and can change the link to above the checkbox. . But, where can i control the location of the text  COM_VIRTUEMART_STORE_FORM_TOS = Terms of Service, just before the checkbox? , i don't don't know how to delete or move that text to other place. It think that "Terms of service" text is called from other php file :(
Thanks much

Btw, i bought your zip code virtuemart extension and it is great.
Canary islands electronics online shop
http://www.architoner.com

GJC Web Design

Thanks about the zip code.. reviews on JED always appreciated..  :)

components\com_virtuemart\views\cart\tmpl\default_cartfields.php


<fieldset class="vm-fieldset-<?php echo str_replace('_','-',$field['name']) ?>">
      <div  class="cart <?php echo str_replace('_','-',$field['name']) ?>" title="<?php echo strip_tags($field['description']) ?>">
      <!--<span class="cart <?php echo str_replace('_','-',$field['name']) ?>" ><?php echo $field['title'] ?></span>-->

      <?php
      if ($field['hidden'] == true) {
         // We collect all hidden fields
         // and output them at the end
         $hiddenFields .= $field['formcode'] . "\n";
      } else { ?>
      
            <?php echo $field['formcode'] ?>
            <span class="cart <?php echo str_replace('_','-',$field['name']) ?>" ><?php echo $field['title'] ?></span>
            
         </div>
   <?php } ?>

   </fieldset>
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation