

Code: Select all
$(document).ready(function () {
$('#add_to_cart').replaceWith('<a onclick="" id="add_to_cart" class="button">' + $('#add_to_cart').html() + '</a>');
$('#add_to_cart').click(function () {
$.ajax({
url: 'index.php?route=module/cart/callback',
dataType: 'html',
async: false,
beforeSend: function () {
$.ajax({
type: 'post',
url: 'index.php?route=checkout/cart',
data: $('#product :input')
});
},
complete: function () {
var image = $('#image').offset();
var cart = $('#module_cart').offset();
$('#image').before('<img src="' + $('#image').attr('src') + '" id="temp" style="position: absolute; top: ' + image.top + 'px; left: ' + image.left + 'px;" />');
params = {
top : cart.top + 'px',
left : cart.left + 'px',
opacity : 0.0,
width : $('#module_cart').width(),
heigth : $('#module_cart').height()
};
$('#temp').animate(params, 'slow', false, function () {
$('#temp').remove();
});
},
success: function (html) {
$('#module_cart .middle').html(html);
}
});
});
});
Code: Select all
$(document).ready(function () {
$('#add_to_cart').replaceWith('<a onclick="" id="add_to_cart" class="button">' + $('#add_to_cart').html() + '</a>');
$('#add_to_cart').click(function () {
$.ajax({
type: 'post',
url: 'index.php?route=checkout/cart',
data: $('#product :input'),
success: function(){
$('#module_cart .dvi2').load('index.php?route=module/cart/callback');
}
});
var image = $('#image').offset();
var cart = $('#module_cart').offset();
$('#image').before('<img src="' + $('#image').attr('src') + '" id="temp" style="position: absolute; top: ' + image.top + 'px; left: ' + image.left + 'px;" />');
params = {
top : cart.top + 'px',
left : cart.left + 'px',
opacity : 0.0,
width : $('#module_cart').width(),
heigth : $('#module_cart').height()
};
$('#temp').animate(params, 'slow', false, function () {
$('#temp').remove();
});
});
});
Code: Select all
$(document).ready(function () {
$('#add_to_cart').replaceWith('<a onclick="" id="add_to_cart" class="button">' + $('#add_to_cart').html() + '</a>');
$('#add_to_cart').click(function () {
$.ajax({
type: 'post',
url: 'index.php?route=checkout/cart',
data: $('#product :input'),
success: function(){
$('#module_cart .middle').load('index.php?route=module/cart/callback');
}
});
var image = $('#image').offset();
var cart = $('#module_cart').offset();
$('#image').before('<img src="' + $('#image').attr('src') + '" id="temp" style="position: absolute; top: ' + image.top + 'px; left: ' + image.left + 'px;" />');
params = {
top : cart.top + 'px',
left : cart.left + 'px',
opacity : 0.0,
width : $('#module_cart').width(),
heigth : $('#module_cart').height()
};
$('#temp').animate(params, 'slow', false, function () {
$('#temp').remove();
});
});
});
view Privacy Policy with thickbox \ visualiar Privacy Policy com thickbox
catalog\language\english\account\create.php
replace \ substituir
line 13 \linha 13
$_['text_agree'] = 'I have read and agree to the <a onclick="window.open(\'%s\');"><b>%s</b></a>';
to / por
$_['text_agree'] = 'I have read and agree to the <a class="thickbox" href="%s?keepThis=true&TB_iframe=true&height=400&width=600"><b>%s</b></a>';
catalog\controller\account\create.php
replace \ substituir
line 138 \ linha 138
$this->data['text_agree'] = sprintf($this->language->get('text_agree'), $this->url->http('information/information&information_id=' . $this->config->get('config_account')), $information_info['title']);
to / por
$this->data['text_agree'] = sprintf($this->language->get('text_agree'), 'index.php?route=information/information/callback&information_id='. $this->config->get('config_account'), $information_info['title']);
catalog\controller\information\information.php
replace at the end of the code \ substituir no final do codigo
line 64 and 65 \ linha 64 e 65
}
?>
to \ por
public function callback() {
$this->load->language('information/information');
$this->load->model('catalog/information');
$this->document->breadcrumbs = array();
$this->document->breadcrumbs[] = array(
'href' => $this->url->http('common/home'),
'text' => $this->language->get('text_home'),
'separator' => FALSE
);
$information_info = $this->model_catalog_information->getInformation(@$this->request->get['information_id']);
if ($information_info) {
$this->document->title = $information_info['title'];
$this->document->breadcrumbs[] = array(
'href' => $this->url->http('information/information&information_id=' . $this->request->get['information_id']),
'text' => $information_info['title'],
'separator' => $this->language->get('text_separator')
);
$this->data['heading_title'] = $information_info['title'];
$this->data['description'] = html_entity_decode($information_info['description']);
} else {
$this->document->breadcrumbs[] = array(
'href' => $this->url->http('information/information&information_id=' . $this->request->get['information_id']),
'text' => $this->language->get('text_error'),
'separator' => $this->language->get('text_separator')
);
$this->data['heading_title'] = $this->language->get('text_error');
$this->data['description'] = $this->language->get('text_error');
}
$ouput = '<table border="0" cellpadding="0" cellspacing="0" class="dvi2" style="width: 100%;">
<tr>
<td valign="middle" align="left" height="30"><b>'.$this->data['heading_title'].'</b></td>
</tr>
<tr>
<td align="left" valign="top">'.$this->data['description'].'</td>
</tr>
</table>';
$this->response->setOutput($ouput);
}
}
?>
Code: Select all
<div id="module_cart" class="box">
<div class="top"><img src="catalog/view/theme/default/image/icon_basket.png" alt="" />Shopping Cart</div>
<div class="middle">
<div style="text-align: center;">0 items</div>
</div>
<div class="bottom"> </div>
</div>
Helping Each Other With Knowledge....
WHPOA.NET CTOA.NET CEMETERYTN.COM
Code: Select all
$(document).ready(function () {
$('#add_to_cart').replaceWith('<a onclick="" id="add_to_cart" class="button">' + $('#add_to_cart').html() + '</a>');
$('#add_to_cart').click(function () {
$.ajax({
type: 'post',
url: 'index.php?route=checkout/cart',
data: $('#product :input'),
success: function(){
$('#module_cart .middle').load('index.php?route=module/cart/callback');
}
});
var image = $('#image').offset();
var cart = $('#module_cart').offset();
$('#image').before('<img src="' + $('#image').attr('src') + '" id="temp" style="position: absolute; top: ' + image.top + 'px; left: ' + image.left + 'px;" />');
params = {
top : cart.top + 'px',
left : cart.left + 'px',
opacity : 0.0,
width : $('#module_cart').width(),
heigth : $('#module_cart').height()
};
$('#temp').animate(params, 'slow', false, function () {
$('#temp').remove();
});
});
});
Code: Select all
$_['text_agree'] = 'I have read and agree to the <a onclick="window.open(\'%s\');"><b>%s</b></a>';
Code: Select all
$_['text_agree'] = 'I have read and agree to the <a class="thickbox" href="%s?keepThis=true&TB_iframe=true&height=400&width=600"><b>%s</b></a>';
Code: Select all
$this->data['text_agree'] = sprintf($this->language->get('text_agree'), $this->url->http('information/information&information_id=' . $this->config->get('config_account')), $information_info['title']);
Code: Select all
$this->data['text_agree'] = sprintf($this->language->get('text_agree'), 'index.php?route=information/information/callback&information_id='. $this->config->get('config_account'), $information_info['title']);
Code: Select all
}
?>
Code: Select all
public function callback() {
$this->load->language('information/information');
$this->load->model('catalog/information');
$this->document->breadcrumbs = array();
$this->document->breadcrumbs[] = array(
'href' => $this->url->http('common/home'),
'text' => $this->language->get('text_home'),
'separator' => FALSE
);
$information_info = $this->model_catalog_information->getInformation(@$this->request->get['information_id']);
if ($information_info) {
$this->document->title = $information_info['title'];
$this->document->breadcrumbs[] = array(
'href' => $this->url->http('information/information&information_id=' . $this->request->get['information_id']),
'text' => $information_info['title'],
'separator' => $this->language->get('text_separator')
);
$this->data['heading_title'] = $information_info['title'];
$this->data['description'] = html_entity_decode($information_info['description']);
} else {
$this->document->breadcrumbs[] = array(
'href' => $this->url->http('information/information&information_id=' . $this->request->get['information_id']),
'text' => $this->language->get('text_error'),
'separator' => $this->language->get('text_separator')
);
$this->data['heading_title'] = $this->language->get('text_error');
$this->data['description'] = $this->language->get('text_error');
}
$ouput = '<table border="0" cellpadding="0" cellspacing="0" class="dvi2" style="width: 100%;">
<tr>
<td valign="middle" align="left" height="30"><b>'.$this->data['heading_title'].'</b></td>
</tr>
<tr>
<td align="left" valign="top">'.$this->data['description'].'</td>
</tr>
</table>';
$this->response->setOutput($ouput);
}
}
?>
Code: Select all
$_['text_agree'] = 'I have read and agree to the <a onclick="window.open(\'%s\');"><b>%s</b></a>';
Code: Select all
$_['text_agree'] = 'I have read and agree to the <a class="thickbox" href="%s?keepThis=true&TB_iframe=true&height=400&width=600"><b>%s</b></a>';
Code: Select all
$this->data['text_agree'] = sprintf($this->language->get('text_agree'), $this->url->http('information/information&information_id=' . $this->config->get('config_checkout')), $information_info['title']);
Code: Select all
$this->data['text_agree'] = sprintf($this->language->get('text_agree'), 'index.php?route=information/information/callback&information_id='. $this->config->get('config_checkout'), $information_info['title']);
Code: Select all
$_['text_agree'] = 'I have read and agree to the <a onclick="window.open(\'%s\');"><b>%s</b></a>';
Code: Select all
$_['text_agree'] = 'I have read and agree to the <a class="thickbox" href="%s?keepThis=true&TB_iframe=true&height=400&width=600"><b>%s</b></a>';
Code: Select all
$this->data['text_agree'] = sprintf($this->language->get('text_agree'), $this->url->http('information/information&information_id=' . $this->config->get('config_account')), $information_info['title']);
Code: Select all
$this->data['text_agree'] = sprintf($this->language->get('text_agree'), 'index.php?route=information/information/callback&information_id='. $this->config->get('config_account'), $information_info['title']);
Code: Select all
}
?>
Code: Select all
public function callback() {
$this->load->language('information/information');
$this->load->model('catalog/information');
$this->document->breadcrumbs = array();
$this->document->breadcrumbs[] = array(
'href' => $this->url->http('common/home'),
'text' => $this->language->get('text_home'),
'separator' => FALSE
);
$information_info = $this->model_catalog_information->getInformation(@$this->request->get['information_id']);
if ($information_info) {
$this->document->title = $information_info['title'];
$this->document->breadcrumbs[] = array(
'href' => $this->url->http('information/information&information_id=' . $this->request->get['information_id']),
'text' => $information_info['title'],
'separator' => $this->language->get('text_separator')
);
$this->data['heading_title'] = $information_info['title'];
$this->data['description'] = html_entity_decode($information_info['description']);
} else {
$this->document->breadcrumbs[] = array(
'href' => $this->url->http('information/information&information_id=' . $this->request->get['information_id']),
'text' => $this->language->get('text_error'),
'separator' => $this->language->get('text_separator')
);
$this->data['heading_title'] = $this->language->get('text_error');
$this->data['description'] = $this->language->get('text_error');
}
$ouput = '<table border="0" cellpadding="0" cellspacing="0" class="dvi2" style="width: 100%;">
<tr>
<td valign="middle" align="left" height="30"><b>'.$this->data['heading_title'].'</b></td>
</tr>
<tr>
<td align="left" valign="top">'.$this->data['description'].'</td>
</tr>
</table>';
$this->response->setOutput($ouput);
}
}
?>
Users browsing this forum: No registered users and 8 guests