Remove Checkbox (Term and Use) from Cart

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Fri Jun 07, 2013 8:25 pm
Reply with quote
Report this post
Hi,

in Virtuemart, I removed the option in checkout config (Show terms of service in cart / checkout). But the checkbox is appearing, forcing the selection in the cart. How do I remove it?
User avatar
Junior Boarder

GK User
Fri Jun 07, 2013 9:52 pm
Reply with quote
Report this post
Hi,


If you are not using our template -> you should edit this file : components\com_virtuemart\views\cart\tmpl\default.php ....check code from line 128+
User avatar
Platinum Boarder

GK User
Fri Jun 07, 2013 9:59 pm
Reply with quote
Report this post
This bug is already reported, will be corrected soon.
Sadly - its also in oryginal virtuemart files :(.
User avatar
Moderator

GK User
Fri Jun 07, 2013 10:05 pm
Reply with quote
Report this post
If you're using our template --> templates\gk_bikestore\html\com_virtuemart\cart\default.php
and check code from line 134
User avatar
Platinum Boarder

GK User
Fri Jun 07, 2013 10:07 pm
Reply with quote
Report this post
You could try to edit:
templates/gk_bike store/html/com_virtuemart/cart/default.php
find this part of code:
Code: Select all
      <div class="terms-of-service">
           <?php
            if(!class_exists('VmHtml'))require(JPATH_VM_ADMINISTRATOR.DS.'helpers'.DS.'html.php');
            echo VmHtml::checkbox('tosAccepted',$this->cart->tosAccepted,1,0,'class="terms-of-service"');

      if(VmConfig::get('oncheckout_show_legal_info',1)){
      ?>
         
      <div class="terms-of-service">         


and change it to:
Code: Select all
      <?php if(VmConfig::get('oncheckout_show_legal_info',1)){ ?>
      <div class="terms-of-service">
           <?php
            if(!class_exists('VmHtml'))require(JPATH_VM_ADMINISTRATOR.DS.'helpers'.DS.'html.php');
            echo VmHtml::checkbox('tosAccepted',$this->cart->tosAccepted,1,0,'class="terms-of-service"');
      ?>
         
      <div class="terms-of-service">         


Please write back if it helped.
User avatar
Moderator

GK User
Sat Jun 08, 2013 12:43 am
Reply with quote
Report this post
The box is gone. But now it asks to click on the box and not have her anymore.

Now I do not have to complete the purchase.
User avatar
Junior Boarder

GK User
Sat Jun 08, 2013 8:45 am
Reply with quote
Report this post
Have You disabled showing TOS in virtuemart settings and it works this way?
Ok, I need to check this carefully, as it seems like a bug in VirtueMart.
User avatar
Moderator

GK User
Mon Jun 17, 2013 12:41 pm
Reply with quote
Report this post
Any news?
User avatar
Junior Boarder

GK User
Mon Jun 17, 2013 1:51 pm
Reply with quote
Report this post
Hey. It seems a bug in virtuemart. To proceed the checkbox needs to be checked.
I have checked and they have partially fixed it in newest version of VM.
Upgrading to latest VM version would help then. Then the fix I have showed to You should work also.
User avatar
Moderator


cron