Ignore:
Timestamp:
Mar 12, 2014, 11:28:47 PM (10 years ago)
Author:
Miklfe
Message:

Version de lancement

Location:
extensions/MyPiwiShop/template
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • extensions/MyPiwiShop/template/MyPiwiShop.tpl

    r27568 r27743  
    1515{/if}
    1616<form id="buyprod" target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post" >
     17
    1718<input type="hidden" name="cmd" value="_cart">
    1819<input type="hidden" name="business" value="{$mps_conf.PPid}">
    19 <input type="hidden" name="lc" value="FR">
    2020<input type="hidden" name="item_name" value="{$PAGE_TITLE}">
    2121<input type="hidden" name="button_subtype" value="products">
     
    2323<input type="hidden" name="add" value="1">
    2424<input type="hidden" name="bn" value="PP-ShopCartBF:btn_cart_LG.gif:NonHosted">
    25 <input type="hidden" name="on0" value="taille et type d'impression :">
     25<input type="hidden" name="on0" value="{'Product'|@translate}">
    2626
    2727<div id="prod-ch">
     
    3535{/foreach}
    3636{else}
    37 
    3837<div class="titre">{$mps_conf.tprmulti}</div>
    3938<div class="styled">
    40 <select name="os0" id="prod_sel">
    41 {html_options options=$mps_product }
     39<select name="os0" id="prod_sel">{html_options options=$mps_product }</select>
     40</div>
    4241{/if}
    4342</select>
    44 </div>
    4543</div>
    4644
     
    4846<span><h2>{'option du produit'|@translate}</h2>
    4947</span>
    50 <span id="req">{'Fields marked with * must be completed'|@translate}<span>
     48<span id="requi">{'Fields marked with * must be completed'|@translate}</span>
    5149</div>
    5250
     
    5654
    5755<div id="mps_sub">
    58 <span><input type="submit" class="action buy"  name="sub" value="{'Buy'|@translate}" alt="Buy" ></span>
     56<input type="submit" class="action buy"  name="sub" value="{'Buy'|@translate}" alt="Buy" >
    5957<span class="errors" style="display:none">{'Fields marked with * must be completed'|@translate}</span>
    6058</div>
  • extensions/MyPiwiShop/template/button_basket.tpl

    r27568 r27743  
    1 {footer_script}{literal}
    2 (function($) {
    3         $(document).ready(function(){
    4                
    5 /*              var $Pbask      = $('#basket').offset(),
    6                         $w_tit  = $('#tit').width(),
    7                         $h_tit  = $('#tit').height(),
    8                         $top    = $Pbask.top - $h_tit,
    9                         $left   = $Pbask.left - $w_tit;
    10 
    11                 $('#basket').hover(function(){
    12                         $(this).next().css({'position':'absolute','top':$top,'left':$left}).stop( true, true ).fadeToggle()
    13                         //console.debug($(this).next())
    14                         //$('#tit').css({'position':'absolute','top':$top,'left':$left}).show();
    15                 })
    16                 $('#basket').mouseleave(function(){
    17                         $('#tit').hide();
    18                 })*/
    19        
    20         })
    21 })(jQuery);
    22 {/literal}{/footer_script}     
    23 
    24 
    25 
    26 
    27 
    281{strip}
    292{combine_css path=$MPS_PATH|cat:'template/style.css'}
    30 <a class="pwg-state-default pwg-button-basket noslide" href="https://www.paypal.com/cgi-bin/webscr?cmd=_cart&business={$mps_conf.PPid}&display=1&submit=voir+le+panier"  target="_blank"><span id="basket" class="pwg-icon" style="background:url('{$ROOT_URL}{$MPS_PATH}template/bhover.png') center center no-repeat;"> </span>
    31 <div id="tit"><p>{'show your basket'|@translate}</p></div>
     3<a class="pwg-state-default pwg-button-basket noslide" href="https://www.paypal.com/cgi-bin/webscr?cmd=_cart&business={$mps_conf.PPid}&display=1&submit=voir+le+panier"  target="_blank" title="{'View cart'|@translate}"><span id="basket" class="pwg-icon" style="background:url('{$ROOT_URL}{$MPS_PATH}template/bhover.png') center center no-repeat;"> </span>
    324</a>
    335
    34         </a>
    356{/strip}
    367
  • extensions/MyPiwiShop/template/elem_form_style.css

    r27568 r27743  
    1 
    2 /* ----------------------------------------------  Reset form elements ---------------------------------------------- */
     1/* ----------------------------------------------  Reset form elements ---------------------------------------------- */
    32       
    4         div.mps input, div.mps select,div.mps textarea {
     3        div.mps input, div.mps select, div.mps textarea {
     4                font-family:inherit;
    55                margin:0; padding:0; font-size:0.85em; outline:none;
    6                 font-family:inherit;   
    76                -moz-box-sizing:border-box; /* Firefox */
    87                -webkit-box-sizing:border-box; /* Safari */
     
    1312
    1413        div.mps input[type="text"],div.mps textarea,div.mps  select,div.mps div.styled,div.mps input[type="file"] { 
    15                 width:12em; border-radius:2px; border: solid 1px #ccc; padding:0.4em;}
     14                min-width:13em; border-radius:2px; border: solid 1px #ccc; padding:0.4em;}
    1615       
    1716        div.mps div.styled,div.mps select,div.mps input[type="submit"],div.mps input[type="button"],
     
    3938
    4039        div.mps div.styled select {     
     40                font-family:inherit;
    4141                width:115%; background-color:rgba(255,255,255,0); background-image:none;
    4242                -webkit-appearance: none; border:none; box-shadow:none;}
     
    111111        div.mps input[type="submit"],
    112112        div.mps input[type="button"] {
     113                font-family:inherit;
    113114                padding:0.5em 1em; line-height:1em; cursor:pointer;
    114115                border-radius:4px; color:#000; font-weight:bold; font-size:inherit;
  • extensions/MyPiwiShop/template/js/MyPiwiShop.js

    r27568 r27743  
    11(function($) {
    22        $(document).ready(function(){
     3       
     4                function _init_MyPiwiShop (){
    35                if($('#prod_sel').length){
    46                        var     $Sel = $('#prod-ch select#prod_sel option:selected').attr('value');
     
    79                };
    810                rempopt($Sel);
    9        
     11                }
     12               
     13                _init_MyPiwiShop ()
    1014       
    1115                $(document).on('change','#prod_sel',function(){
     
    2529                               
    2630                        if (typeof $prod[$Sel] != "undefined") {
    27                                 var $option     = $prod[$Sel].options; 
     31                                var $option     = $prod[$Sel].options;
    2832                                $('#options_prod').show();
    2933                                $.each($option,function(i, ele){
     
    3943                                                var $requi ='',
    4044                                                        $req   ='';
     45                                                $('#requi').hide();
    4146                                        };
    4247                                               
     
    7883                                $('#options_prod').hide();
    7984                        }
    80        
    81         }
     85                }
    8286               
    8387                $(document).on('change','.checkbox input[type=checkbox]', function () {
  • extensions/MyPiwiShop/template/style.css

    r27568 r27743  
    5454        text-align:center
    5555}
     56#requi{
     57        display:none
     58}
    5659.requi{
    5760        border-radius:3px;
Note: See TracChangeset for help on using the changeset viewer.