News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

html code removed when "Show Terms of Service on the cart/checkout?" activated

Started by MM02, March 31, 2013, 16:13:18 PM

Previous topic - Next topic

MM02

When I activate the option "Show Terms of Service on the cart/checkout?" in the configuration menu, some lines of HTML code are removed from my cart.

The index.php page of my template contains a line <jdoc:include type="component" />

Normally, the first lines outputted by this command are <div class="art-box art-post">
    <div class="art-box-body art-post-body">
<div class="art-post-inner">
<div class="art-postcontent">
<div class="cart-view">
<div>
<div class="width50 floatleft">
<h1>Cart</h1>
</div>
<div class="width50 floatleft right">
</div>
<div class="clear"></div>
</div>


But once I activate the option "Show Terms...", the first 4 lines are stripped away:
<div class="cart-view">
<div>
<div class="width50 floatleft">
<h1>Cart</h1>
</div>
<div class="width50 floatleft right">
</div>
<div class="clear"></div>
</div>



My problem: I have no clue where to find the 4 missing lines.  They are not inserted by the index.php-file of the template, nor by the default.php-file of the cart view.
The source code of the default.php-file of the cart view is:
<?php
/**
 *[...]
 */

// Check to ensure this file is included in Joomla!
defined ('_JEXEC') or die('Restricted access');
vmJsApi::js ('facebox');
vmJsApi::css ('facebox');
JHtml::('behavior.formvalidation');
$document JFactory::getDocument ();
$document->addScriptDeclaration ("
jQuery(document).ready(function($) {
$('div#full-tos').hide();
$('a#terms-of-service').click(function(event) {
event.preventDefault();
$.facebox( { div: '#full-tos' }, 'my-groovy-style');
});
});
"
);
$document->addScriptDeclaration ("
jQuery(document).ready(function($) {
if ( $('#STsameAsBTjs').is(':checked') ) {
$('#output-shipto-display').hide();
} else {
$('#output-shipto-display').show();
}
$('#STsameAsBTjs').click(function(event) {
if($(this).is(':checked')){
$('#STsameAsBT').val('1') ;
$('#output-shipto-display').hide();
} else {
$('#STsameAsBT').val('0') ;
$('#output-shipto-display').show();
}
});
});
"
);
$document->addStyleDeclaration ('#facebox .content {display: block !important; height: 480px !important; overflow: auto; width: 560px !important; }');

//vmdebug('car7t pricesUnformatted',$this->cart->pricesUnformatted);
//vmdebug('cart cart',$this->cart->pricesUnformatted );

?>


<div class="cart-view">
<div>
<div class="width50 floatleft">
<h1><?php echo JText::('COM_VIRTUEMART_CART_TITLE'); ?></h1>
</div>



What do I have to change in order to include the 4 lines even if I want to display the terms on my cart? If they are not included, my design is destroyed...