source: extensions/MyPiwiShop/template/MyPiwiShop.tpl @ 29531

Last change on this file since 29531 was 27743, checked in by Miklfe, 11 years ago

Version de lancement

File size: 2.6 KB
Line 
1{combine_css path=$MPS_PATH|cat:'template/style.css'}
2{combine_css path=$MPS_PATH|cat:'template/elem_form_style.css'}
3{if isset($bypiwitheme)}
4{combine_css path=$MPS_PATH|cat:'template/piwitheme_style.css'}
5{/if}
6{combine_script id="mps" load="footer" path=$MPS_PATH|cat:'template/js/MyPiwiShop.js'}
7
8
9
10<div id=mps_content class="mps">
11<h1>{'Shop'|@translate}</h1>
12<div id="panier" data-prod='{if isset ($mps_options)}{$mps_options|@json_encode}{/if}'>
13{if isset ($mps_conf.comm)}
14        <div id="mps_com">{$mps_conf.comm}</div>
15{/if}
16<form id="buyprod" target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post" >
17
18<input type="hidden" name="cmd" value="_cart">
19<input type="hidden" name="business" value="{$mps_conf.PPid}">
20<input type="hidden" name="item_name" value="{$PAGE_TITLE}">
21<input type="hidden" name="button_subtype" value="products">
22<input type="hidden" name="currency_code" value="{$mps_conf.currency}">
23<input type="hidden" name="add" value="1">
24<input type="hidden" name="bn" value="PP-ShopCartBF:btn_cart_LG.gif:NonHosted">
25<input type="hidden" name="on0" value="{'Product'|@translate}">
26
27<div id="prod-ch">
28
29{if count($mps_product) == 1}
30
31{foreach from=$mps_product item=product key=key name=hit}
32<div class="titre">{$mps_conf.tpruniq}</div>
33<span class="prod_uniq"><h1>{$product}</h1></span>
34<input type="hidden" name="os0" value="{$key}" id="prod_inp">
35{/foreach}
36{else}
37<div class="titre">{$mps_conf.tprmulti}</div>
38<div class="styled">
39<select name="os0" id="prod_sel">{html_options options=$mps_product }</select>
40</div>
41{/if}
42</select>
43</div>
44
45<div id="options_prod" class="options"> 
46<span><h2>{'option du produit'|@translate}</h2>
47</span>
48<span id="requi">{'Fields marked with * must be completed'|@translate}</span>
49</div>
50
51{if $mps_conf.ship != 0}
52<div>{'shipping fees'|@translate} {$mps_conf.ship} {$mps_conf.currency}</div>
53{/if}
54
55<div id="mps_sub">
56<input type="submit" class="action buy"  name="sub" value="{'Buy'|@translate}" alt="Buy" >
57<span class="errors" style="display:none">{'Fields marked with * must be completed'|@translate}</span>
58</div>
59
60{foreach from=$mps_product item=foo key=key name=hit}
61<input type="hidden" name="option_select{math equation="x-y" x=$smarty.foreach.hit.iteration y=1}" value="{$key}">
62{/foreach}
63{foreach from=$mps_price item=foo key=key name=hit}
64<input type="hidden" name="option_amount{math equation="x-y" x=$smarty.foreach.hit.iteration y=1}" value="{$foo}">
65{/foreach}
66{if $mps_conf.ship != 0}
67<input type="hidden" name="shipping" value="{$mps_conf.ship}">
68{/if}
69<input type="hidden" name="option_index" value="0">
70</form>
71
72
73</div>
74</div>
Note: See TracBrowser for help on using the repository browser.