4313 |
daniel |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
/**
|
|
|
4 |
* Integration des Anfragemoduls in die Produkttemplates
|
|
|
5 |
* Hier wird nicht der Button eingebunden sondern lediglich der JS Teil für die Anzeige im Fenster
|
|
|
6 |
*/
|
|
|
7 |
|
|
|
8 |
?>
|
|
|
9 |
<?php if ($this->get_option('wpsg_mod_request_afterinsert') == wpsg_mod_request::ACTION_SHOWREQUESTPAGELB) { ?>
|
|
|
10 |
<script type="text/javascript">/* <![CDATA[ */
|
|
|
11 |
|
|
|
12 |
jQuery(document).ready(function() {
|
|
|
13 |
|
|
|
14 |
jQuery('#wpsg_add_requestlist_<?php echo $this->view['wpsg_mod_request']['template_index']; ?>').bind('click', function() {
|
|
|
15 |
|
4317 |
daniel |
16 |
jQuery.ajax( {
|
|
|
17 |
url: '<?php echo $this->getURL(wpsg_ShopController::URL_BASKET); ?>',
|
|
|
18 |
data:
|
|
|
19 |
{
|
|
|
20 |
wpsg_form_data: jQuery('#wpsg_produktform_<?php echo $this->getTemplateIndex(); ?>').serialize(),
|
|
|
21 |
'wpsg[ajax]': '1',
|
|
|
22 |
'wpsg[submit_request]': '1'
|
|
|
23 |
},
|
|
|
24 |
success: function(data)
|
|
|
25 |
{
|
|
|
26 |
|
|
|
27 |
if (jQuery('#wpsg_requestdiv').length <= 0) jQuery('body').append('<div id="wpsg_requestdiv" style="display:none;"></div>');
|
|
|
28 |
|
|
|
29 |
jQuery('#wpsg_requestdiv').html(data);
|
|
|
30 |
|
|
|
31 |
tb_show('<?php echo __('Ihre Anfrageliste', 'wpsg'); ?>', '#TB_inline?inlineId=wpsg_requestdiv&height=500');
|
|
|
32 |
|
|
|
33 |
}
|
|
|
34 |
} );
|
|
|
35 |
|
4313 |
daniel |
36 |
return false;
|
|
|
37 |
|
|
|
38 |
} );
|
|
|
39 |
|
|
|
40 |
} );
|
|
|
41 |
|
|
|
42 |
/* ]]> */</script>
|
|
|
43 |
<?php } ?>
|