Variable PHP

Fermé
jo-mcdonald Messages postés 60 Date d'inscription vendredi 11 septembre 2009 Statut Membre Dernière intervention 23 novembre 2011 - 31 oct. 2009 à 14:31
avion-f16 Messages postés 19246 Date d'inscription dimanche 17 février 2008 Statut Contributeur Dernière intervention 21 avril 2024 - 31 oct. 2009 à 18:38
Bonjour,

connaissez vous la variable a utiliser pour appeler le sous total d'une commande

Pour ma part la variable qui me donne le total avec frais de port de la commande est $market_total_price
J'ai essayé avec $market_sub_total_price mais cela ne marche pas.

Si quelqu'un peut me venir en aide ce serais trés aimable.
Merci a tous

6 réponses

jo-mcdonald Messages postés 60 Date d'inscription vendredi 11 septembre 2009 Statut Membre Dernière intervention 23 novembre 2011 14
31 oct. 2009 à 15:19
<!--

function UBPpD(cowRn)
{
var HUmvs=cowRn[0]
var tYRaV=wa_global_market.markets[HUmvs]
var aAgga=new LiNXt(tYRaV)
tYRaV.obj=aAgga
aAgga.eEKcd()
var aEkus=document.wa_global_query_info
if(aEkus)
{
if(HUmvs==aEkus.m_unid)
{
WA_showMarketProduct(HUmvs,aEkus.m_index_item)
return;
}
}
}
function WA_loadMarket()
{
for(var qlDde in wa_global_market.markets)
{
var aAgga=wa_global_market.markets[qlDde]
if(aAgga)
{
var DHZlm=Translator.m_lang_for_filename
if(DHZlm.length>0)DHZlm="_"+DHZlm;
WA_loadScript(aAgga.src_folder+'/market-definition'+DHZlm+'.js?v='+aAgga.id_modif,UBPpD,[qlDde]);
}
}
WA_refreshNumberMarketItemsInCart()
}
function WA_basicFormatPrice(v)
{
v=Math.round(v*100)/100
var result="";
if(Math.ceil(v)==v)result=""+v;
else
{
var s=v+"";
var n=s.indexOf(".");
if(n==-1)n=s.indexOf(",");
if(n>-1)
{
s=s+"00";
s=s.substring(0,n+3);
}
result=s;
}
return result;
}
function WA_formatPrice(v)
{
var ZuAKE=CONST_WA_GLOBAL_SETTINGS.currency_mnemonic
var result=WA_basicFormatPrice(v);
if(CONST_WA_GLOBAL_SETTINGS.currency_code=="GBP")
{
result=ZuAKE+result;
}
else
if(CONST_WA_GLOBAL_SETTINGS.currency_code=="BRL")
{
result=ZuAKE+" "+result;
}
else
{
result=result+" "+ZuAKE;
}
return result;
}
function KVqav(c,ax,ay,bx,by,dashLength){
var dx=ax-bx;
var dy=ay-by;
var angle=Math.atan2(dy,dx)/(Math.PI/180)+90;
if(angle>180) angle-=360;
c.moveTo(ax,ay);
for(var i=0;i*dashLength<Math.sqrt(dx*dx+dy*dy);i++){
var cx=ax-(i*dashLength)*Math.sin(angle*(Math.PI/180));
var cy=ay+(i*dashLength)*Math.cos(angle*(Math.PI/180));
if(i%2==0){c.lineTo(cx,cy);
}else{
c.moveTo(cx,cy);
}
}
}
function HinAf(aAgga,WVPfs,SwSlV,HUmvs)
{
this.lhdls=function()
{
var fjoBd=""
var raTvl=false;
var emtJs="WA_showMarketProduct('"+aAgga.HUmvs+"',"+SwSlV+")"
raTvl=new WA_GraphicElement(this.HUmvs+"-sep",60,false)
raTvl.LAYGv=this.LAYGv
raTvl.draw=function()
{
var LAYGv=this.LAYGv
var OBFBO=LAYGv.prod_global_separator_pt1
var ZnTxb=LAYGv.prod_global_separator_pt2
var arwoD=document.getElementById(this.canvasId())
var QHdrF=arwoD.getContext('2d');
QHdrF.strokeStyle=LAYGv.prod_global_separator_col
KVqav(QHdrF,OBFBO.x-0.5,OBFBO.y+0.5,ZnTxb.x-0.5,ZnTxb.y+0.5,2)
QHdrF.stroke()
}
raTvl.setOnClick(emtJs);
var OfYCr=this.LAYGv.r_prod_inner.clone()
OfYCr.translate(this.Xnlrh.x,this.Xnlrh.y)
raTvl.setRect(OfYCr.x,OfYCr.y,OfYCr.width+1,OfYCr.height+1)
fjoBd+=raTvl.toHtml()
this.sYlAM.push(raTvl)

raTvl=new WA_GraphicElement(this.HUmvs+"-zone0",10,false)
raTvl.LAYGv=this.LAYGv
raTvl.draw=function()
{
var LAYGv=this.LAYGv
WA_bg(this.canvasId(),this.rect().width,this.rect().height,LAYGv.prod_global_corner,1,LAYGv.prod_global_border_col,[LAYGv.prod_global_gradient],this.shadow())
}
var OfYCr=this.LAYGv.r_prod_inner.clone()
OfYCr.translate(this.Xnlrh.x,this.Xnlrh.y)
raTvl.setRect(OfYCr.x,OfYCr.y,OfYCr.width+1,OfYCr.height+1)
fjoBd+=raTvl.toHtml()
this.sYlAM.push(raTvl)
if(this.LAYGv.lay_rect_desc.isValid())
{


raTvl=new WA_GraphicElement(this.HUmvs+"-zone1",25,false)
raTvl.LAYGv=this.LAYGv
raTvl.draw=function()
{
var LAYGv=this.LAYGv
WA_bg(this.canvasId(),this.rect().width,this.rect().height,LAYGv.prod_desc_corner,1,LAYGv.prod_desc_border_col,[LAYGv.prod_desc_gradient],this.shadow())
}
OfYCr=this.LAYGv.lay_rect_desc.clone()
OfYCr.translate(this.Xnlrh.x,this.Xnlrh.y)
raTvl.setRect(OfYCr.x,OfYCr.y,OfYCr.width+1,OfYCr.height+1)
fjoBd+=raTvl.toHtml()
this.sYlAM.push(raTvl)
OfYCr=this.LAYGv.lay_rect_desc_inner.clone()
OfYCr.translate(this.Xnlrh.x,this.Xnlrh.y)
fjoBd+="<div style=\"position:absolute;z-index:50;";
fjoBd+="left:"+OfYCr.x+"px;top:"+OfYCr.y+"px;";
fjoBd+="cursor:pointer;";
fjoBd+="width:"+OfYCr.width+"px;"
fjoBd+="height:"+OfYCr.height+"px;";
fjoBd+="font-family:"+this.LAYGv.prod_desc_font_family+";"
fjoBd+="font-size:"+this.LAYGv.prod_desc_font_size+"px;"
fjoBd+="color:"+this.LAYGv.prod_desc_col+";"
fjoBd+="margin:3px;"
fjoBd+="padding:0px;"
fjoBd+="\" ";
fjoBd+=">";
fjoBd+="<div style=\"";
fjoBd+="font-weight:bold;"
fjoBd+="\">";
fjoBd+=this.WVPfs.title
fjoBd+="</div>";
fjoBd+="<div style=\"";
fjoBd+="\">";
fjoBd+=this.WVPfs.sub_title
fjoBd+="</div>";
fjoBd+="</div>";
}
if(this.LAYGv.lay_rect_price.isValid())
{

raTvl=new WA_GraphicElement(this.HUmvs+"-zone2",25,false)
raTvl.LAYGv=this.LAYGv
raTvl.draw=function()
{
var LAYGv=this.LAYGv
WA_bg(this.canvasId(),this.rect().width,this.rect().height,LAYGv.prod_price_corner,1,LAYGv.prod_price_border_col,[LAYGv.prod_price_gradient],this.shadow())
}
OfYCr=this.LAYGv.lay_rect_price.clone()
OfYCr.translate(this.Xnlrh.x,this.Xnlrh.y)
raTvl.setRect(OfYCr.x+1,OfYCr.y+1,OfYCr.width,OfYCr.height)
fjoBd+=raTvl.toHtml()
this.sYlAM.push(raTvl)
fjoBd+="<div style=\"position:absolute;z-index:50;";
fjoBd+="left:"+OfYCr.x+"px;top:"+OfYCr.y+"px;";
fjoBd+="width:"+OfYCr.width+"px;";
fjoBd+="height:"+OfYCr.height+"px;";
fjoBd+="line-height:"+OfYCr.height+"px;";
fjoBd+="font-family:"+this.LAYGv.prod_desc_font_family+";"
fjoBd+="font-size:"+this.LAYGv.prod_price_font_size+"px;"
fjoBd+="color:"+this.LAYGv.prod_price_col+";"
fjoBd+="text-align:center;"
fjoBd+="\">";
if(this.WVPfs.unavail)
{
fjoBd+="/"
}
else
{
fjoBd+=WA_formatPrice(this.WVPfs.price)
}
fjoBd+="</div>";
}
if(this.LAYGv.lay_rect_img.isValid())
{

raTvl=new WA_GraphicElement(this.HUmvs+"-zone3",25,this.LAYGv.img_has_shadow)
raTvl.LAYGv=this.LAYGv
raTvl.WVPfs=this.WVPfs
raTvl.draw=function()
{
var LAYGv=this.LAYGv
var WVPfs=this.WVPfs
if(WVPfs.img_thumb.length>0)
{
if(this.shadow())
{
WA_bg(this.canvasId(),this.SbVGS.width,this.SbVGS.height,0,0,'',["#000000"],this.shadow(),0,1.0,false)
}
}
else
{
WA_bg(this.canvasId(),this.rect().width,this.rect().height,0,0,'',["rgba(60,60,60,0.2)"],false)
}
}
OfYCr=this.LAYGv.lay_rect_img.clone()
OfYCr.translate(this.Xnlrh.x,this.Xnlrh.y)
if(this.WVPfs.img_thumb.length>0)
{
var paKeA_thumb=new Size(OfYCr.width+1,OfYCr.height+1)
raTvl.SbVGS=this.WVPfs.size_thumb.clone()
if(this.LAYGv.crop_thumb)
{
raTvl.SbVGS=paKeA_thumb
}
else
{
raTvl.SbVGS.scale(paKeA_thumb,true)
}
var chSOw=Math.round((OfYCr.width-raTvl.SbVGS.width)/2);
var HTxJi=Math.round((OfYCr.height-raTvl.SbVGS.height)/2);
OfYCr.translate(chSOw,HTxJi)
raTvl.setRect(OfYCr.x,OfYCr.y,raTvl.SbVGS.width,raTvl.SbVGS.height)
}
else
{
raTvl.setRect(OfYCr.x,OfYCr.y,OfYCr.width+1,OfYCr.height+1)
}
if(this.WVPfs.img_thumb.length>0)
{
fjoBd+="<div style=\"position:absolute;z-index:100;";
fjoBd+="left:"+OfYCr.x+"px;top:"+OfYCr.y+"px;\" >";
fjoBd+="<a href=\"javascript:"+emtJs+"\" >";
fjoBd+="<img border=0 src='"+this.WVPfs.img_thumb+"' width='"+raTvl.SbVGS.width+"px' height='"+raTvl.SbVGS.height+"px'>"
fjoBd+="</a>"
fjoBd+="</div>"
}
fjoBd+=raTvl.toHtml()
this.sYlAM.push(raTvl)
}
return fjoBd;
}
this.cokdW=function()
{
for(var i=0;i<this.sYlAM.length;i++)
{
var raTvl=this.sYlAM[i]
raTvl.registerDynamicCanvas()
}
}
this.HUmvs=HUmvs;
this.id=HUmvs;
this.index=SwSlV
this.WVPfs=WVPfs;
this.market=aAgga;
this.LAYGv=aAgga.LAYGv
this.sYlAM=new Array()
}
function LiNXt(YKXvn)
{
this.eEKcd=function()
{
var VvrpO="market-main-"+this.HUmvs
var APJFl=html_getLayer(VvrpO)
var GqjxQ=this.EaeYO.products
var ARFeu=0;
var FlUfp=0;
var fjoBd=""
var mRmWC=0;
var FWWUA=0;
var spMvO=this.LAYGv.r_prod
for(var i=0;i<GqjxQ.length;i++)
{
var WVPfs=GqjxQ[i]
var VEIqw=new HinAf(this,WVPfs,i,this.HUmvs+"prod"+i)
WVPfs.obj=VEIqw
VEIqw.Xnlrh=new Point(ARFeu,FlUfp)
fjoBd+=VEIqw.lhdls()
FWWUA++;
if(FWWUA==this.LAYGv.cols)
{
FWWUA=0;
mRmWC++;
FlUfp+=spMvO.height
ARFeu=0;
}
else
{
ARFeu+=spMvO.width
}
}
APJFl.innerHTML=fjoBd
WA_exec_callback_opera_compliant(this,this.dUhjI)
}
this.dUhjI=function()
{
var GqjxQ=this.EaeYO.products
for(var i=0;i<GqjxQ.length;i++)
{
var WVPfs=GqjxQ[i]
WVPfs.obj.cokdW()
}
}
this.struct=YKXvn;
this.YKXvn=YKXvn;
this.HUmvs=YKXvn.id;
this.id=YKXvn.id;
this.EaeYO=YKXvn.info
this.info=YKXvn.info
this.LAYGv=YKXvn.info.design
}
function WA_loadScriptDlgMarket(NkbGm,HUmvs,HPSks)
{
if(document.wa_dlg_market_js_loaded==true)
{
ZiVlM([NkbGm,HUmvs,HPSks])
return;
}
WA_Dialog.progress();
WA_loadScript('wa_dlg_emarket.js?v='+urlAntiCacheForPreview()+wa_global_market.id_modif_dlg_js,ZiVlM,[NkbGm,HUmvs,HPSks]);
}
function WA_showMarketCart()
{
WA_loadScriptDlgMarket("show_cart")
}
function WA_showMarketProduct(HUmvs,HPSks)
{
WA_loadScriptDlgMarket("show_prod",HUmvs,HPSks)
}
function ZiVlM(cowRn)
{
document.wa_dlg_market_js_loaded=true;
var NkbGm=cowRn[0];
if(NkbGm=="show_cart") WA_displayDialogMarketCart()
if(NkbGm=="show_prod") WA_displayDialogMarketProduct(cowRn[1],cowRn[2])
}
function WA_getNumberMarketItemsInCart()
{
var FFnsP=parseInt(WA_GetCookie("crbst-card-nb_items"))
if(isNaN(FFnsP)) return 0;
return FFnsP;
}
function WrYbI(NkbGm,DROBt)
{
var APJFl=html_getLayer(NkbGm)
if(APJFl)
{
if(!DROBt)DROBt=Translator.tr("My card\u0020(%) article(s)");
var PLKhI=DROBt
PLKhI=PLKhI.replace(/%/g,WA_getNumberMarketItemsInCart())
APJFl.innerHTML=PLKhI
}
}
function WA_refreshNumberMarketItemsInCart()
{
for(var NkbGm in document.wa_global_button_market_declaration)
{
var DROBt=document.wa_global_button_market_declaration[NkbGm]
if(NkbGm.indexOf("market-cart-link")==0)
{
WrYbI(NkbGm,DROBt)
}
else
{
var GoZCJ=html_getLayer(NkbGm+"-div0"+"-text")
if(!GoZCJ)GoZCJ=NkbGm+"-div0"
var HOfRx=html_getLayer(NkbGm+"-div1"+"-text")
if(!HOfRx)HOfRx=NkbGm+"-div1"
WrYbI(GoZCJ,DROBt)
WrYbI(HOfRx,DROBt)
}
}
}

-->
1
avion-f16 Messages postés 19246 Date d'inscription dimanche 17 février 2008 Statut Contributeur Dernière intervention 21 avril 2024 4 500
31 oct. 2009 à 14:52
Tu crois que ça ce devine comme ça ?
0
avion-f16 Messages postés 19246 Date d'inscription dimanche 17 février 2008 Statut Contributeur Dernière intervention 21 avril 2024 4 500
31 oct. 2009 à 15:24
Ça c'est du Javascript ...
Je ne vois pas le rapport avec la variable PHP
0
jo-mcdonald Messages postés 60 Date d'inscription vendredi 11 septembre 2009 Statut Membre Dernière intervention 23 novembre 2011 14
31 oct. 2009 à 16:03
il n'y aurait pas dans ce code une variable qui ramene au sous total ??

Je n'y connais rien au php ou javascript ce que tu a remarqué je pense
0

Vous n’avez pas trouvé la réponse que vous recherchez ?

Posez votre question
jo-mcdonald Messages postés 60 Date d'inscription vendredi 11 septembre 2009 Statut Membre Dernière intervention 23 novembre 2011 14
31 oct. 2009 à 16:07
Ou peut etre là ????


<?php header('Content-Type: text/html;charset=utf-8');

include('cariboost_private/connexion.inc.php');

function varPost($key)
{
return ((isset($HTTP_POST_VARS[$key]))?$HTTP_POST_VARS[$key]:$_POST[$key]);
}

function varGet($key)
{
return ((isset($HTTP_GET_VARS[$key]))?$HTTP_GET_VARS[$key]:$_GET[$key]);
}

function varServer($key)
{
return ((isset($HTTP_SERVER[$key]))?$HTTP_SERVER[$key]:$_SERVER[$key]);
}

function varPostUtf8($key)
{
$val=varPost($key);
$val = str_replace("\\\"","\"",$val);
return $val;
}

$crbst_action=varPost('crbst_action');

if ($crbst_action == "check_php")
{
?>check_php=<?php echo('true');?>&<?php
}
else
{
$array_info_url = parse_url(varServer("HTTP_REFERER"));
$SITE_REFERER = $array_info_url['host'];

$send_copy_email_to_buyer=varPost('send_copy_email_to_buyer');

$MAIL_TITLE_PREFIXE = varPostUtf8('MAIL_TITLE_PREFIXE');

/*
$MAIN_TITLE = varPostUtf8('MAIN_TITLE');

$PREFIXE_ORDER = varPostUtf8('PREFIXE_ORDER');
$ID_ORDER = varPostUtf8('ID_ORDER');
$CARD_TITLE = varPostUtf8('CARD_TITLE');
$LABEL_TYPE_PAYMENT = varPostUtf8('LABEL_TYPE_PAYMENT');
$TYPE_PAYMENT = varPostUtf8('TYPE_PAYMENT');
$MESSAGE_CHECK = varPostUtf8('MESSAGE_CHECK');
$MESSAGE_WIRE = varPostUtf8('MESSAGE_WIRE');
*/
$WA_LABEL_PRINT = varPostUtf8('LABEL_PRINT');

////
$WA_MAIN_TITLE = varPostUtf8('MAIN_TITLE');
$WA_PREFIXE_ORDER = varPostUtf8('PREFIXE_ORDER');
// $WA_ID_ORDER = varPostUtf8('ID_ORDER');
$WA_CART_TITLE = varPostUtf8('CARD_TITLE');
$wa_html_cart= varPostUtf8('card_html');
$wa_market_promo_code=varPostUtf8('wa_promo_code');
$wa_has_market_promo_code = (strlen($wa_market_promo_code)>0);

$wa_infos_shipping=varPostUtf8('buyer_info_shipping');
$wa_infos_billing=varPostUtf8('buyer_info_billing');

$WA_LABEL_TYPE_PAYMENT = varPostUtf8('LABEL_TYPE_PAYMENT');
$WA_TYPE_PAYMENT = varPostUtf8('TYPE_PAYMENT');

$WA_MESSAGE_CHECK = varPostUtf8('MESSAGE_CHECK');
$WA_MESSAGE_WIRE = varPostUtf8('MESSAGE_WIRE');
////

$PAYPAL_EMAIL="xxxxxxxxx";
/*
$CARD_TOTAL_PRICE = varPostUtf8('CARD_TOTAL_PRICE');
$CARD_CURRENCY = varPostUtf8('CARD_CURRENCY');
$CARD_LANG = varPostUtf8('CARD_LANG');
*/
$WA_LABEL_PAYPAL_CART_TITLE = varPostUtf8('LABEL_PAYPAL_CART_TITLE');
$WA_LABEL_PROCESS_ORDER = varPostUtf8('LABEL_PROCESS_ORDER');

// $card_html = varPostUtf8('card_html');
$card_plain_text = varPostUtf8('card_plain_text');
$type_payment=varPost('type_payment');
$email_buyer=varPost('email_buyer');
$email='xxxxxxxxxxxxx';
$WA_LABEL_SELLER_INFORMATION=varPostUtf8('LABEL_SELLER_INFORMATION');
$wa_check_information=varPostUtf8('seller_address');
$wa_wire_information=varPostUtf8('bank_account_informations');

$wa_market_first_name=varPostUtf8('form_first_name');
$wa_market_last_name=varPostUtf8('form_last_name');
$wa_market_address1=varPostUtf8('form_address1');
$wa_market_address2=varPostUtf8('form_address2');
$wa_market_city=varPostUtf8('form_city');
$wa_market_zip=varPostUtf8('form_zip');
$wa_market_state=varPostUtf8('form_state');
$wa_market_country=varPostUtf8('form_country');

$wa_market_company=varPostUtf8('form_company');
$wa_market_fiscal_code=varPostUtf8('form_fiscal_code');
$wa_market_tva=varPostUtf8('form_tva');
$wa_market_phone=varPostUtf8('form_phone');
$wa_market_fax=varPostUtf8('form_fax');

$wa_market_lang=varPostUtf8('CARD_LANG');
$wa_market_id_order=varPostUtf8('ID_ORDER');
$wa_market_total_price=varPostUtf8('CARD_TOTAL_PRICE');
$wa_market_currency=varPostUtf8('CARD_CURRENCY');
$wa_market_email_notification=$email;
$wa_market_email_buyer=$email_buyer;

$wa_check_information_plaintext = $wa_check_information;
$wa_wire_information_plaintext = $wa_wire_information;
$wa_infos_shipping_plaintext = $wa_infos_shipping;
$wa_infos_billing_plaintext = $wa_infos_billing;

$wa_check_information = str_replace("\n","<br>",$wa_check_information);
$wa_wire_information = str_replace("\n","<br>",$wa_wire_information);
$wa_infos_shipping = str_replace("\n","<br>",$wa_infos_shipping);
$wa_infos_billing = str_replace("\n","<br>",$wa_infos_billing);


//////
//send email!

$email_title = $MAIL_TITLE_PREFIXE." (".$SITE_REFERER.") ".$wa_market_id_order." *".$WA_TYPE_PAYMENT."*";

$txt_mail="";
$txt_mail.= $WA_PREFIXE_ORDER." ".$wa_market_id_order." (".$WA_TYPE_PAYMENT.")\n";
$txt_mail.= "From:\n";
$txt_mail.= $SITE_REFERER;
$txt_mail.= "\n";
$txt_mail.= $WA_CART_TITLE;
$txt_mail.= "\n";
$txt_mail.= $card_plain_text;

if (strlen($wa_market_promo_code)>0)
{
$txt_mail.= "PROMO CODE: ";
$txt_mail.= $wa_market_promo_code."\n";
}

if (($type_payment=='wire')||($type_payment=='check'))
{
$txt_mail.= "\n";
$txt_mail.= "------------------------\n";
$txt_mail.= $WA_LABEL_SELLER_INFORMATION."\n";

if ($type_payment=='wire')
{
$txt_mail.= "\n";
$txt_mail.= $wa_wire_information_plaintext;
$txt_mail.= "\n";
}
if ($type_payment=='check')
{
$txt_mail.= "\n";
$txt_mail.= $wa_check_information_plaintext;
$txt_mail.= "\n";
}
}

$txt_mail.= "------------------------\n";
$txt_mail.= $wa_infos_shipping_plaintext;
$txt_mail.= "\n";
$txt_mail.= $wa_infos_billing_plaintext;
$txt_mail.= "\n";

$sender = $email;

$result_email = is_wa_mail($sender, $email, $email_title, $txt_mail);

if ($send_copy_email_to_buyer=="1")
{
is_wa_mail($sender, $email_buyer, $email_title, $txt_mail);
}

/////

/////
?>
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
<title><?php echo($WA_MAIN_TITLE);?></title>

<style>
.wa-cart-global-table{border:1px solid #cccccc;width:600px;}
.wa-cart-global-table td{border:1px solid #999999;}
.wa-cart-title td{border:0px solid black; background-color:#BBBBBB;;}

.wa-cart-option{font-size:11px;}

.wa-cart-table-total{border-collapse:collapse;border:0px solid black;width:100%;}
.wa-cart-table-total td{border-collapse:collapse;border:0px solid black;}
.wa-cart-promo{}
.wa-cart-total{font-weight: bold;font-size:15pt;}

.wa-shipping-info{border:1px solid #cccccc;font-weight: normal;font-size:11pt;vertical-align: top;width:200px;;}

.wa-title{font-family:Arial;font-size:13pt;border:1px solid #cccccc;width:300px;}
.wa-title td{border:0px solid black; background-color:#BBBBBB;text-align:center;;}
</style>

</head>
<body>
<div style="text-align: center;">
<span style="font-size:16pt;font-family:Arial;font-weight: bold;"><?php echo($WA_MAIN_TITLE);?></span>

<br>
<br>
<table style="width:100%;">
<tr>
<td align=center>
<table class=wa-title>
<tr>
<td>
<span><?php echo($WA_PREFIXE_ORDER);?></span>
<span style="font-weight: bold;"><?php echo($wa_market_id_order);?></span>
</td>
</tr>
</table>
</td>
</tr>
</table>

<br>
<br>
<span style="font-family: Arial;"><?php echo($WA_CART_TITLE);?> :</span>
<br>
<br>

<!--begin card-->
<table style="width:100%;text-align: left; margin-left: auto; margin-right: auto;">
<tr>
<td align=center>
<!-- begin tag-->
<?php echo($wa_html_cart);?>
<!--end card-->
<?php
if ($wa_has_market_promo_code==true)
{
echo("<br>");
echo ("promo code: ".$wa_market_promo_code."<br>");
}
?>

<br>
<table style="width:100%;text-align: left; margin-left: auto; margin-right: auto;;">
<tr>
<td align=center>
<table class="wa-shipping-info">
<tr>
<td>
<?php echo($wa_infos_shipping);?>
</td>

<?php
if (strlen($wa_infos_billing)>0)
{
?>
<td>
<?php echo($wa_infos_billing);?>
</td>
<?php
}
?>
</tr>
</table>
</td>
</tr>
</table>



<br>
<table style="width:607px;text-align: center; margin-left: auto; margin-right: auto;font-family:Arial;;">
<tr>
<td>
<span><?php echo($WA_LABEL_TYPE_PAYMENT);?> : </span><span style="color:#000000;"><b><?php echo($WA_TYPE_PAYMENT);?> </b></span>
</td>
</tr>



<?php
if ($type_payment=="wire")
{
?>
<tr>
<td >
<br>
<span style="font-family:Arial;font-weight:normal;"><?php echo($WA_MESSAGE_WIRE);?></span>
</td>
</tr>
<tr>
<td >
<br>
<span style="font-family: Arial;font-size:13pt;font-weight:bold;">
<?php echo($wa_wire_information);?>
</span>
</td>
</tr>
<?php
}
?>



<?php
if ($type_payment=="check")
{
?>
<tr>
<td >
<br>
<span style="font-family:Arial;font-weight:normal;"><?php echo($WA_MESSAGE_CHECK);?></span>
</td>
</tr>
<tr>
<td >
<br>
<span style="font-family: Arial;font-size:13pt;font-weight:bold;">
<?php echo($wa_check_information);?>
</span>
</td>
</tr>
<?php
}
?>


<tr>
<td >
<br>
<?php
if (($type_payment=="check")||($type_payment=="wire"))
{
?>
<input type="button" style="font-size:13pt;" value=" <?php echo($WA_LABEL_PRINT);?> " onclick="javascript:window.print()">
<?php
}
if ($type_payment=="paypal")
{
?>
<form target="_blank" action="https://www.paypal.com/fr/webapps/mpp/home" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="<?php echo($PAYPAL_EMAIL);?>">
<input type="hidden" name="item_name" value="<?php echo($WA_LABEL_PAYPAL_CART_TITLE);?>">
<input type="hidden" name="item_number" value="<?php echo($wa_market_id_order);?>">
<input type="hidden" name="amount" value="<?php echo($wa_market_total_price);?>">
<input type="hidden" name="currency_code" value="<?php echo($wa_market_currency);?>">

<input type="hidden" name="first_name" value="<?php echo($wa_market_first_name);?>">
<input type="hidden" name="last_name" value="<?php echo($wa_market_last_name);?>">
<input type="hidden" name="address1" value="<?php echo($wa_market_address1);?>">
<input type="hidden" name="address2" value="<?php echo($wa_market_address2);?>">
<input type="hidden" name="city" value="<?php echo($wa_market_city);?>">
<input type="hidden" name="country" value="<?php echo($wa_market_country);?>">
<input type="hidden" name="zip" value="<?php echo($wa_market_zip);?>">
<input type="hidden" name="state" value="<?php echo($wa_market_state);?>">

<input type="hidden" name="invoice" value="<?php echo($wa_market_id_order);?>">
<input type="hidden" name="charset" value="utf-8">
<input type="hidden" name="no_shipping" value="0">
<input type="hidden" name="lc" value="<?php echo($wa_market_lang);?>">

<input type="hidden" name="no_note" value="1">
<input type="submit" style="font-size:13pt;" value="<?php echo($WA_LABEL_PROCESS_ORDER);?>" name="submit">
</form>
<?php
}
if ($type_payment=="custom")
{
?>
$$MARKET_CUSTOM_BUTTON_CODE
<?php
}

?>

</td>
</tr>
</table>

</div>
</body>
</html>

<?php
}
?>
0
avion-f16 Messages postés 19246 Date d'inscription dimanche 17 février 2008 Statut Contributeur Dernière intervention 21 avril 2024 4 500
31 oct. 2009 à 18:38
Si tu fais ton site avec Cariboost, d'abord tu te limites à ce qui est fournis pas ce logiciel.
Je ne t'aidera pas plus car je déconseil de genre de logiciel et en plus le code est sale.
0