[ TehnokomercPro @ 22.09.2018. 01:35 ] @
Prijatelji

Imam problem sa sajtom : http://www.tehnokomercpro.com/lager_shop.php
Sajt je radio neki Marokanac preko Freelancera i skoro ga je zavrsio ali imam jedan problem samo sto pomenutog programera nemogu sada nikako da nadjem.

Problem je sto kada korisnik poruci proizvode sa sajta ,porudzbenica se salje na njegov email ali ne i na email firme.
Sa jadnim znanjem HTML uspeo sam da dojem do ovog koda koji mi se cini da je kljucan za resavanje ovog problema :

function confirm_b2c_order($to, $session) {
$from_email = "[email protected]";
$subject = 'TEHNOKOMERC PRO |Porudžbine | B2C';
$message = "

Kod se nalazi u fajlu functions.php .
Pokusao sam da promenim prvu liniju koda u :

function confirm_b2c_order($to = "[email protected]", $session) { - ne salje email nigde onda
i
function confirm_b2c_order($to, $session, to = "[email protected]") { - ali onda salje email na [email protected] ali ne i na adresu kupca

Ako neko moze da pomogne bicu do neba zahvalan.

ps:ako ima neki programer i da bi jos neke stvari doradio na ovom sajtu uz adekvatnu nadoknadu neka mi se javi na email ili privatnim porukama

Hvala u napred.
[ Tpojka @ 22.09.2018. 02:00 ] @
Ako tako (kako si naveo) počinje definicija funkcije, a bez vidjenja koda da li koristi neki mail library ili native php mail function, blind shot pokušaj sa

Code (php):

function confirm_b2c_order("[email protected], " . $to, $session) {
 


Ne mora značiti da će raditi a moguće je da sam ub'o. Teže je bez vidjenja koda.
[ TehnokomercPro @ 22.09.2018. 02:29 ] @
Nece brate.

Cak pretraga nece da radi. i pocrveni kod...kao da je greska...

pokusao sam :

function confirm_b2c_order("[email protected], " . $to, $session) {
function confirm_b2c_order("[email protected]", $to, $session) {
function confirm_b2c_order('[email protected] ', $to, $session) {

nece....
[ ntesic @ 22.09.2018. 08:51 ] @
Daj ceo kod ove funkcije confirm_b2c_order
[ agvozden @ 22.09.2018. 08:58 ] @
Function treba da primi parametre, ne mozes ovako da ih setujes.

mozes da setujes 'default' vrednosti
function confirm_b2c_order($to='[email protected]', $session='stagod') {

moras da snimis odakle dolazi poziv toj funkciji. Ukoliko je kod neorganizovan moguce je da si nasao pogresnu lokaciju.

ali, za pocetak, daj tu f-u da vidimo
[ Tpojka @ 22.09.2018. 10:35 ] @
@agvozden
Tačno. Sustiglo me postovanje u gluvo doba.

Code (php):
function confirm_b2c_order($to, $session) {


Ovako treba da ostane definicija funkcije.
U slučaju da se koristi PHP native mail() za slanje mejlova, u ostatku koda gdje se poziva ova funkcija
bi trebalo uraditi cancatenation dodatne mejl adrese. Tj. prije poziva funkcije bi trebalo redeklarisati $to .= ', [email protected]';
[ bokinet @ 22.09.2018. 20:06 ] @
Najbolje da se provere svi php file-ovi i da se vidi u kodu gde god se pominje spomenuta f-ja 'confirm_b2c_order' ako je to ta.

Znaci za pretrazivanje staviti 'confirm_b2c_order' kao deo koji se pretrazuje bez ostalih stvari.

Isto moze da se odradi pretrazivanje gde bi kriterijum bio taj e-mail ako se zna na koji stizu e-mail oko porudzbina.

Takodje proveriti php.ini :)
Recimo sekcija [mail function]
[ TehnokomercPro @ 22.09.2018. 23:48 ] @
function confirm_b2c_order($to, $session) {
$from_email = "[email protected]";
$subject = 'TEHNOKOMERC PRO |Porudžbine | B2C';
$message = "
<html xmlns:v=\"urn:schemas-microsoft-com:vml\"
xmlns:o=\"urn:schemas-microsoft-com:office:office\"
xmlns:w=\"urn:schemas-microsoft-com:office:word\"
xmlns:m=\"http://schemas.microsoft.com/office/2004/12/omml\"
xmlns=\"http://www.w3.org/TR/REC-html40\">

<head>
<meta http-equiv=Content-Type content=\"text/html; charset=utf-8\">
</head>

<body lang=EN-US style='tab-interval:36.0pt'>

<div class=WordSection1>

<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal;background:white'><span class=SpellE><span lang=FR style='font-size:
9.5pt;font-family:\"Arial\",sans-serif;mso-fareast-font-family:\"Times New Roman\";
color:#000;mso-ansi-language:FR'>Postovani</span></span><span lang=FR
style='font-size:9.5pt;font-family:\"Arial\",sans-serif;mso-fareast-font-family:
\"Times New Roman\";color:#000;mso-ansi-language:FR'><o:p></o:p></span></p>

<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal;background:white'><span lang=FR style='font-size:9.5pt;font-family:\"Arial\",sans-serif;
mso-fareast-font-family:\"Times New Roman\";color:#000;mso-ansi-language:FR'>&nbsp;<o:p></o:p></span></p>

<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal;background:white'><span lang=FR style='font-size:9.5pt;font-family:\"Arial\",sans-serif;
mso-fareast-font-family:\"Times New Roman\";color:#000;mso-ansi-language:FR'>Ovo
je <span class=SpellE>potvrda</span> va</span><span lang=SR-LATN-RS
style='font-size:9.5pt;font-family:\"Arial\",sans-serif;mso-fareast-font-family:
\"Times New Roman\";color:#000;mso-ansi-language:SR-LATN-RS'>še porudžbenice
sa Tehnokomerc Pro B2C sistema</span><span lang=FR style='font-size:9.5pt;
font-family:\"Arial\",sans-serif;mso-fareast-font-family:\"Times New Roman\";
color:#000;mso-ansi-language:FR'><o:p></o:p></span></p>

<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal;background:white'><span lang=SR-LATN-RS style='font-size:9.5pt;
font-family:\"Arial\",sans-serif;mso-fareast-font-family:\"Times New Roman\";
color:#000;mso-ansi-language:SR-LATN-RS'>&nbsp;</span><span lang=FR
style='font-size:9.5pt;font-family:\"Arial\",sans-serif;mso-fareast-font-family:
\"Times New Roman\";color:#000;mso-ansi-language:FR'><o:p></o:p></span></p>

<table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0
style='background:white;border-collapse:collapse;mso-yfti-tbllook:1184;
mso-padding-alt:0cm 0cm 0cm 0cm'>
<tr style='mso-yfti-irow:0;mso-yfti-firstrow:yes'>
<td width=160 valign=top style='width:119.7pt;border-top:solid #4F81BD 1.0pt;
border-left:none;border-bottom:solid #4F81BD 1.0pt;border-right:none;
padding:0cm 5.4pt 0cm 5.4pt'>
<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal'><span lang=SR-LATN-RS style='font-size:12.0pt;font-family:\"Times New Roman\",serif;
mso-fareast-font-family:\"Times New Roman\";color:#365F91;mso-ansi-language:
SR-LATN-RS'>Naziv</span><span style='font-size:12.0pt;font-family:\"Times New Roman\",serif;
mso-fareast-font-family:\"Times New Roman\";color:#000'><o:p></o:p></span></p>
</td>
<td width=160 valign=top style='width:119.7pt;border-top:solid #4F81BD 1.0pt;
border-left:none;border-bottom:solid #4F81BD 1.0pt;border-right:none;
padding:0cm 5.4pt 0cm 5.4pt'>
<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal'><span lang=SR-LATN-RS style='font-size:12.0pt;font-family:\"Times New Roman\",serif;
mso-fareast-font-family:\"Times New Roman\";color:#365F91;mso-ansi-language:
SR-LATN-RS'>Količina</span><span style='font-size:12.0pt;font-family:\"Times New Roman\",serif;
mso-fareast-font-family:\"Times New Roman\";color:#000'><o:p></o:p></span></p>
</td>
<td width=160 valign=top style='width:119.7pt;border-top:solid #4F81BD 1.0pt;
border-left:none;border-bottom:solid #4F81BD 1.0pt;border-right:none;
padding:0cm 5.4pt 0cm 5.4pt'>
<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal'><span lang=SR-LATN-RS style='font-size:12.0pt;font-family:\"Times New Roman\",serif;
mso-fareast-font-family:\"Times New Roman\";color:#365F91;mso-ansi-language:
SR-LATN-RS'>Cena sa Pdvom</span><span style='font-size:12.0pt;font-family:
\"Times New Roman\",serif;mso-fareast-font-family:\"Times New Roman\";color:#000'><o:p></o:p></span></p>
</td>
<td width=160 valign=top style='width:119.7pt;border-top:solid #4F81BD 1.0pt;
border-left:none;border-bottom:solid #4F81BD 1.0pt;border-right:none;
padding:0cm 5.4pt 0cm 5.4pt'>
<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal'><span lang=SR-LATN-RS style='font-size:12.0pt;font-family:\"Times New Roman\",serif;
mso-fareast-font-family:\"Times New Roman\";color:#365F91;mso-ansi-language:
SR-LATN-RS'>Ukupno</span><span style='font-size:12.0pt;font-family:\"Times New Roman\",serif;
mso-fareast-font-family:\"Times New Roman\";color:#000'><o:p></o:p></span></p>
</td>
</tr>
";
$total_price = "0";
$row_counter = "1";
foreach($session["products"] as $product) {
$row_total_price = 1.2*($product['product_price']*$product['product_qty']);
$row_unit_price = 1.2*$product['product_price'];
$total_price = $total_price + $row_total_price;

$message .= "
<tr style='mso-yfti-irow:".$row_counter."'>
<td width=160 valign=top style='width:119.7pt;background:#D3DFEE;padding:
0cm 5.4pt 0cm 5.4pt'>
<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal'><b><span lang=SR-LATN-RS style='font-size:12.0pt;font-family:\"Times New Roman\",serif;
mso-fareast-font-family:\"Times New Roman\";color:#365F91;mso-ansi-language:
SR-LATN-RS'>".$product['product_name']."</span></b><span style='font-size:12.0pt;
font-family:\"Times New Roman\",serif;mso-fareast-font-family:\"Times New Roman\";
color:#000'><o:p></o:p></span></p>
</td>
<td width=160 valign=top style='width:119.7pt;background:#D3DFEE;padding:
0cm 5.4pt 0cm 5.4pt'>
<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal'><span lang=SR-LATN-RS style='font-size:12.0pt;font-family:\"Times New Roman\",serif;
mso-fareast-font-family:\"Times New Roman\";color:#365F91;mso-ansi-language:
SR-LATN-RS'>".$product['product_qty']."</span><span style='font-size:12.0pt;font-family:\"Times New Roman\",serif;
mso-fareast-font-family:\"Times New Roman\";color:#000'><o:p></o:p></span></p>
</td>
<td width=160 valign=top style='width:119.7pt;background:#D3DFEE;padding:
0cm 5.4pt 0cm 5.4pt'>
<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal'><span lang=SR-LATN-RS style='font-size:12.0pt;font-family:\"Times New Roman\",serif;
mso-fareast-font-family:\"Times New Roman\";color:#365F91;mso-ansi-language:
SR-LATN-RS'>".number_format($row_unit_price, 2, ',', '.')." din</span><span style='font-size:12.0pt;font-family:\"Times New Roman\",serif;
mso-fareast-font-family:\"Times New Roman\";color:#000'><o:p></o:p></span></p>
</td>
<td width=160 valign=top style='width:119.7pt;background:#D3DFEE;padding:
0cm 5.4pt 0cm 5.4pt'>
<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal'><span lang=SR-LATN-RS style='font-size:12.0pt;font-family:\"Times New Roman\",serif;
mso-fareast-font-family:\"Times New Roman\";color:#365F91;mso-ansi-language:
SR-LATN-RS'>".number_format($row_total_price, 2, ',', '.')." din</span><span style='font-size:12.0pt;font-family:\"Times New Roman\",serif;
mso-fareast-font-family:\"Times New Roman\";color:#000'><o:p></o:p></span></p>
</td>
</tr>
";
$row_counter++;
}

$message .= "
<tr style='mso-yfti-irow:".$row_counter.";mso-yfti-lastrow:yes'>
<td width=160 valign=top style='width:119.7pt;border:none;border-bottom:solid #4F81BD 1.0pt;
background:#D3DFEE;padding:0cm 5.4pt 0cm 5.4pt'>
<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal'><b><span lang=SR-LATN-RS style='font-size:12.0pt;font-family:\"Times New Roman\",serif;
mso-fareast-font-family:\"Times New Roman\";color:#365F91;mso-ansi-language:
SR-LATN-RS'>&nbsp;</span></b><span style='font-size:12.0pt;font-family:\"Times New Roman\",serif;
mso-fareast-font-family:\"Times New Roman\";color:#000'><o:p></o:p></span></p>
</td>
<td width=160 valign=top style='width:119.7pt;border:none;border-bottom:solid #4F81BD 1.0pt;
background:#D3DFEE;padding:0cm 5.4pt 0cm 5.4pt'>
<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal'><span lang=SR-LATN-RS style='font-size:12.0pt;font-family:\"Times New Roman\",serif;
mso-fareast-font-family:\"Times New Roman\";color:#365F91;mso-ansi-language:
SR-LATN-RS'>&nbsp;</span><span style='font-size:12.0pt;font-family:\"Times New Roman\",serif;
mso-fareast-font-family:\"Times New Roman\";color:#000'><o:p></o:p></span></p>
</td>
<td width=160 valign=top style='width:119.7pt;border:none;border-bottom:solid #4F81BD 1.0pt;
background:#D3DFEE;padding:0cm 5.4pt 0cm 5.4pt'>
<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal'><b><span lang=SR-LATN-RS style='font-size:12.0pt;font-family:\"Times New Roman\",serif;
mso-fareast-font-family:\"Times New Roman\";color:#365F91;mso-ansi-language:
SR-LATN-RS'>UKUPNO</span></b><span style='font-size:12.0pt;font-family:\"Times New Roman\",serif;
mso-fareast-font-family:\"Times New Roman\";color:#000'><o:p></o:p></span></p>
</td>
<td width=160 valign=top style='width:119.7pt;border:none;border-bottom:solid #4F81BD 1.0pt;
background:#D3DFEE;padding:0cm 5.4pt 0cm 5.4pt'>
<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal'><span lang=SR-LATN-RS style='font-size:12.0pt;font-family:\"Times New Roman\",serif;
mso-fareast-font-family:\"Times New Roman\";color:#365F91;mso-ansi-language:
SR-LATN-RS'>".number_format($total_price, 2, ',', '.')." din</span><span style='font-size:12.0pt;font-family:\"Times New Roman\",serif;
mso-fareast-font-family:\"Times New Roman\";color:#000'><o:p></o:p></span></p>
</td>
</tr>
</table>
";
$message .= "
<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal;background:white'><span lang=SR-LATN-RS style='font-size:9.5pt;
font-family:\"Arial\",sans-serif;mso-fareast-font-family:\"Times New Roman\";
color:#000;mso-ansi-language:SR-LATN-RS'>&nbsp;</span><span
style='font-size:9.5pt;font-family:\"Arial\",sans-serif;mso-fareast-font-family:
\"Times New Roman\";color:#000'><o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0cm;margin-right:0cm;margin-bottom:0cm;
margin-left:54.0pt;margin-bottom:.0001pt;line-height:normal;background:white'><span
lang=SR-LATN-RS style='font-family:Symbol;mso-fareast-font-family:\"Times New Roman\";
mso-bidi-font-family:Calibri;color:red;mso-ansi-language:SR-LATN-RS'>·</span><span
lang=SR-LATN-RS style='font-size:7.0pt;font-family:\"Times New Roman\",serif;
mso-fareast-font-family:\"Times New Roman\";color:red;mso-ansi-language:SR-LATN-RS'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span
class=SpellE><i><span style='mso-ascii-font-family:Calibri;mso-fareast-font-family:
\"Times New Roman\";mso-hansi-font-family:Calibri;mso-bidi-font-family:Calibri;
color:red'>Nisu</span></i></span><i><span style='mso-ascii-font-family:Calibri;
mso-fareast-font-family:\"Times New Roman\";mso-hansi-font-family:Calibri;
mso-bidi-font-family:Calibri;color:red'> <span class=SpellE>ura</span></span></i><i><span
lang=SR-LATN-RS style='mso-ascii-font-family:Calibri;mso-fareast-font-family:
\"Times New Roman\";mso-hansi-font-family:Calibri;mso-bidi-font-family:Calibri;
color:red;mso-ansi-language:SR-LATN-RS'>čunati troškovi isporuke koji će pri
dostavi biti naplaćeni po cenovniku kurirske službe.</span></i><span
style='mso-ascii-font-family:Calibri;mso-fareast-font-family:\"Times New Roman\";
mso-hansi-font-family:Calibri;mso-bidi-font-family:Calibri;color:#000'><o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:0cm;margin-right:0cm;margin-bottom:0cm;
margin-left:54.0pt;margin-bottom:.0001pt;line-height:normal;background:white'><span
lang=SR-LATN-RS style='mso-ascii-font-family:Calibri;mso-fareast-font-family:
\"Times New Roman\";mso-hansi-font-family:Calibri;mso-bidi-font-family:Calibri;
color:#000;mso-ansi-language:SR-LATN-RS'>&nbsp;</span><span
style='mso-ascii-font-family:Calibri;mso-fareast-font-family:\"Times New Roman\";
mso-hansi-font-family:Calibri;mso-bidi-font-family:Calibri;color:#000'><o:p></o:p></span></p>

<table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 align=left
style='background:white;border-collapse:collapse;mso-yfti-tbllook:1184;
mso-table-lspace:9.0pt;margin-left:6.75pt;mso-table-rspace:9.0pt;margin-right:
6.75pt;mso-table-anchor-vertical:paragraph;mso-table-anchor-horizontal:column;
mso-table-left:left;mso-padding-alt:0cm 0cm 0cm 0cm'>
<tr style='mso-yfti-irow:0;mso-yfti-firstrow:yes'>
<td width=319 valign=top style='width:239.4pt;padding:0cm 5.4pt 0cm 5.4pt'>
<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal;mso-element:frame;mso-element-frame-hspace:9.0pt;mso-element-wrap:
around;mso-element-anchor-vertical:paragraph;mso-element-anchor-horizontal:
column;mso-height-rule:exactly'><span class=SpellE><span style='font-size:
12.0pt;font-family:\"Times New Roman\",serif;mso-fareast-font-family:\"Times New Roman\";
color:black'>Ime</span></span><span style='font-size:12.0pt;font-family:\"Times New Roman\",serif;
mso-fareast-font-family:\"Times New Roman\";color:black'> I <span class=SpellE>prezime</span></span><span
style='font-size:12.0pt;font-family:\"Times New Roman\",serif;mso-fareast-font-family:
\"Times New Roman\";color:#000'><o:p></o:p></span></p>
</td>
<td width=319 valign=top style='width:239.4pt;border:solid #4F81BD 1.0pt;
background:#EDF2F8;padding:0cm 5.4pt 0cm 5.4pt'>
<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal;mso-element:frame;mso-element-frame-hspace:9.0pt;mso-element-wrap:
around;mso-element-anchor-vertical:paragraph;mso-element-anchor-horizontal:
column;mso-height-rule:exactly'><span style='font-size:12.0pt;font-family:
\"Times New Roman\",serif;mso-fareast-font-family:\"Times New Roman\";color:gray'>".$session['user_fname']." ".$session['user_lname']."</span><span style='font-size:12.0pt;font-family:\"Times New Roman\",serif;
mso-fareast-font-family:\"Times New Roman\";color:#000'><o:p></o:p></span></p>
</td>
</tr>
<tr style='mso-yfti-irow:1'>
<td width=319 valign=top style='width:239.4pt;border:none;border-top:solid #4F81BD 1.0pt;
padding:0cm 5.4pt 0cm 5.4pt'>
<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal;mso-element:frame;mso-element-frame-hspace:9.0pt;mso-element-wrap:
around;mso-element-anchor-vertical:paragraph;mso-element-anchor-horizontal:
column;mso-height-rule:exactly'><span style='font-size:12.0pt;font-family:
\"Times New Roman\",serif;mso-fareast-font-family:\"Times New Roman\";color:black'>Email
<span class=SpellE>adresa</span></span><span style='font-size:12.0pt;
font-family:\"Times New Roman\",serif;mso-fareast-font-family:\"Times New Roman\";
color:#000'><o:p></o:p></span></p>
</td>
<td width=319 valign=top style='width:239.4pt;border:solid #4F81BD 1.0pt;
border-top:none;background:#A7BFDE;padding:0cm 5.4pt 0cm 5.4pt'>
<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal;mso-element:frame;mso-element-frame-hspace:9.0pt;mso-element-wrap:
around;mso-element-anchor-vertical:paragraph;mso-element-anchor-horizontal:
column;mso-height-rule:exactly'><span style='font-size:12.0pt;font-family:
\"Times New Roman\",serif;mso-fareast-font-family:\"Times New Roman\";color:gray'>".$to."</span><span
style='font-size:12.0pt;font-family:\"Times New Roman\",serif;mso-fareast-font-family:
\"Times New Roman\";color:#000'><o:p></o:p></span></p>
</td>
</tr>
<tr style='mso-yfti-irow:2'>
<td width=319 valign=top style='width:239.4pt;border:none;border-top:solid #4F81BD 1.0pt;
padding:0cm 5.4pt 0cm 5.4pt'>
<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal;mso-element:frame;mso-element-frame-hspace:9.0pt;mso-element-wrap:
around;mso-element-anchor-vertical:paragraph;mso-element-anchor-horizontal:
column;mso-height-rule:exactly'><span class=SpellE><span style='font-size:
12.0pt;font-family:\"Times New Roman\",serif;mso-fareast-font-family:\"Times New Roman\";
color:black'>Broj</span></span><span style='font-size:12.0pt;font-family:
\"Times New Roman\",serif;mso-fareast-font-family:\"Times New Roman\";color:black'>
<span class=SpellE>telefona</span></span><span style='font-size:12.0pt;
font-family:\"Times New Roman\",serif;mso-fareast-font-family:\"Times New Roman\";
color:#000'><o:p></o:p></span></p>
</td>
<td width=319 valign=top style='width:239.4pt;border:solid #4F81BD 1.0pt;
border-top:none;background:#D3DFEE;padding:0cm 5.4pt 0cm 5.4pt'>
<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal;mso-element:frame;mso-element-frame-hspace:9.0pt;mso-element-wrap:
around;mso-element-anchor-vertical:paragraph;mso-element-anchor-horizontal:
column;mso-height-rule:exactly'><span style='font-size:12.0pt;font-family:
\"Times New Roman\",serif;mso-fareast-font-family:\"Times New Roman\";color:gray'>".$session['user_phone']."</span><span
style='font-size:12.0pt;font-family:\"Times New Roman\",serif;mso-fareast-font-family:
\"Times New Roman\";color:#000'><o:p></o:p></span></p>
</td>
</tr>
<tr style='mso-yfti-irow:3'>
<td width=319 valign=top style='width:239.4pt;border:none;border-top:solid #4F81BD 1.0pt;
padding:0cm 5.4pt 0cm 5.4pt'>
<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal;mso-element:frame;mso-element-frame-hspace:9.0pt;mso-element-wrap:
around;mso-element-anchor-vertical:paragraph;mso-element-anchor-horizontal:
column;mso-height-rule:exactly'><span style='font-size:12.0pt;font-family:
\"Times New Roman\",serif;mso-fareast-font-family:\"Times New Roman\";color:black'>Grad</span><span
style='font-size:12.0pt;font-family:\"Times New Roman\",serif;mso-fareast-font-family:
\"Times New Roman\";color:#000'><o:p></o:p></span></p>
</td>
<td width=319 valign=top style='width:239.4pt;border:solid #4F81BD 1.0pt;
border-top:none;background:#A7BFDE;padding:0cm 5.4pt 0cm 5.4pt'>
<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal;mso-element:frame;mso-element-frame-hspace:9.0pt;mso-element-wrap:
around;mso-element-anchor-vertical:paragraph;mso-element-anchor-horizontal:
column;mso-height-rule:exactly'><span style='font-size:12.0pt;font-family:
\"Times New Roman\",serif;mso-fareast-font-family:\"Times New Roman\";color:gray'>".$session['user_city']."</span><span
style='font-size:12.0pt;font-family:\"Times New Roman\",serif;mso-fareast-font-family:
\"Times New Roman\";color:#000'><o:p></o:p></span></p>
</td>
</tr>
<tr style='mso-yfti-irow:4;mso-yfti-lastrow:yes'>
<td width=319 valign=top style='width:239.4pt;border:none;border-top:solid #4F81BD 1.0pt;
padding:0cm 5.4pt 0cm 5.4pt'>
<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal;mso-element:frame;mso-element-frame-hspace:9.0pt;mso-element-wrap:
around;mso-element-anchor-vertical:paragraph;mso-element-anchor-horizontal:
column;mso-height-rule:exactly'><span class=SpellE><span style='font-size:
12.0pt;font-family:\"Times New Roman\",serif;mso-fareast-font-family:\"Times New Roman\";
color:black'>Adresa</span></span><span style='font-size:12.0pt;font-family:
\"Times New Roman\",serif;mso-fareast-font-family:\"Times New Roman\";color:#000'><o:p></o:p></span></p>
</td>
<td width=319 valign=top style='width:239.4pt;border:solid #4F81BD 1.0pt;
border-top:none;background:#D3DFEE;padding:0cm 5.4pt 0cm 5.4pt'>
<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal;mso-element:frame;mso-element-frame-hspace:9.0pt;mso-element-wrap:
around;mso-element-anchor-vertical:paragraph;mso-element-anchor-horizontal:
column;mso-height-rule:exactly'><span class=SpellE><span style='font-size:
12.0pt;font-family:\"Times New Roman\",serif;mso-fareast-font-family:\"Times New Roman\";
color:gray'>".$session['ship_adress']."</span></span><span style='font-size:12.0pt;font-family:
\"Times New Roman\",serif;mso-fareast-font-family:\"Times New Roman\";color:#000'><o:p></o:p></span></p>
</td>
</tr>
</table>
<br><br>
<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal;background:white'><span style='font-size:9.5pt;font-family:\"Arial\",sans-serif;
mso-fareast-font-family:\"Times New Roman\";color:#000'><br clear=all
style='mso-special-character:line-break'>
<o:p></o:p></span></p>

<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal;background:white'><span class=SpellE><span style='font-size:9.5pt;
font-family:\"Arial\",sans-serif;mso-fareast-font-family:\"Times New Roman\";
color:#000'>Va</span></span><span lang=SR-LATN-RS style='font-size:9.5pt;
font-family:\"Arial\",sans-serif;mso-fareast-font-family:\"Times New Roman\";
color:#000;mso-ansi-language:SR-LATN-RS'>š</span><span style='font-size:
9.5pt;font-family:\"Arial\",sans-serif;mso-fareast-font-family:\"Times New Roman\";
color:#000'>a <span class=SpellE>porud</span></span><span lang=SR-LATN-RS
style='font-size:9.5pt;font-family:\"Arial\",sans-serif;mso-fareast-font-family:
\"Times New Roman\";color:#000;mso-ansi-language:SR-LATN-RS'>ž</span><span
class=SpellE><span style='font-size:9.5pt;font-family:\"Arial\",sans-serif;
mso-fareast-font-family:\"Times New Roman\";color:#000'>bina</span></span><span
style='font-size:9.5pt;font-family:\"Arial\",sans-serif;mso-fareast-font-family:
\"Times New Roman\";color:#000'> je <span class=SpellE>uspe</span></span><span
lang=SR-LATN-RS style='font-size:9.5pt;font-family:\"Arial\",sans-serif;
mso-fareast-font-family:\"Times New Roman\";color:#000;mso-ansi-language:SR-LATN-RS'>š</span><span
style='font-size:9.5pt;font-family:\"Arial\",sans-serif;mso-fareast-font-family:
\"Times New Roman\";color:#000'>no <span class=SpellE>poslata</span> <span
class=SpellE>i</span> bi</span><span lang=SR-LATN-RS style='font-size:9.5pt;
font-family:\"Arial\",sans-serif;mso-fareast-font-family:\"Times New Roman\";
color:#000;mso-ansi-language:SR-LATN-RS'>ć</span><span style='font-size:
9.5pt;font-family:\"Arial\",sans-serif;mso-fareast-font-family:\"Times New Roman\";
color:#000'>e <span class=SpellE>obradjena</span> u <span class=SpellE>najkra</span></span><span
lang=SR-LATN-RS style='font-size:9.5pt;font-family:\"Arial\",sans-serif;
mso-fareast-font-family:\"Times New Roman\";color:#000;mso-ansi-language:SR-LATN-RS'>ć</span><span
class=SpellE><span style='font-size:9.5pt;font-family:\"Arial\",sans-serif;
mso-fareast-font-family:\"Times New Roman\";color:#000'>em</span></span><span
style='font-size:9.5pt;font-family:\"Arial\",sans-serif;mso-fareast-font-family:
\"Times New Roman\";color:#000'> <span class=SpellE>mogu</span></span><span
lang=SR-LATN-RS style='font-size:9.5pt;font-family:\"Arial\",sans-serif;
mso-fareast-font-family:\"Times New Roman\";color:#000;mso-ansi-language:SR-LATN-RS'>ć</span><span
class=SpellE><span style='font-size:9.5pt;font-family:\"Arial\",sans-serif;
mso-fareast-font-family:\"Times New Roman\";color:#000'>em</span></span><span
style='font-size:9.5pt;font-family:\"Arial\",sans-serif;mso-fareast-font-family:
\"Times New Roman\";color:#000'> <span class=SpellE>roku</span></span><span
lang=SR-LATN-RS style='font-size:9.5pt;font-family:\"Arial\",sans-serif;
mso-fareast-font-family:\"Times New Roman\";color:#000;mso-ansi-language:SR-LATN-RS'>!<br>
Ukoliko ste porudžbinu poslali do 14:00 časova pošiljku očekujte u toku
sledećeg radnog dana.<o:p></o:p></span></p>

<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal;background:white'><span lang=SR-LATN-RS style='font-size:9.5pt;
font-family:\"Arial\",sans-serif;mso-fareast-font-family:\"Times New Roman\";
color:#000;mso-ansi-language:SR-LATN-RS'>Ukoliko ste porudžbinu poslali u
Subotu ili Nedelju pošiljku očekujte u Utorak.<br>
<br>
Hvala vam&nbsp;što koristite naš&nbsp;B2B sistem.<br>
<br>
Vaš Tehnokmerc Pro Tim<br>
<br>
<b>Tehnička podrška</b><br>
Dragan Plavšić<br>
00381 63 652 404<br>
<br>
<b>Logistička podrška</b><br>
Filip Novaković<br>
00381 63 652 405<br>
<br>
<b>Administracija B2B sistema</b><br>
Nenad&nbsp;Topličanin<br>
00381 63 639 396<o:p></o:p></span></p>

<p class=MsoNormal><span lang=SR-LATN-RS style='mso-ansi-language:SR-LATN-RS'><o:p>&nbsp;</o:p></span></p>

</div>
</body>

</html>
";
$boundary = md5("tehnokomerpro");
//header
$headers = "MIME-Version: 1.0\r\n";
$headers .= "From:".$from_email."\r\n";
$headers .= "Reply-To: ".$from_email."" . "\r\n";
$headers .= "Content-Type: multipart/mixed; boundary = $boundary\r\n\r\n";

//plain text
$body = "--$boundary\r\n";
$body .= "Content-Type: text/html;charset=utf-8\r\n";
$body .= "Content-Transfer-Encoding: base64\r\n\r\n";
$body .= chunk_split(base64_encode($message));

if(mail($to, $subject, $body, $headers)) {
return true;
} else {
return false;
}
}


?>
[ TehnokomercPro @ 23.09.2018. 00:45 ] @
Ovo je kod za mycart.php

confirm_b2c_order($_SESSION['user_email'], $_SESSION);
unset($_SESSION['products']);
header('Location: completeorder.php');

pokusao sam da stavim
confirm_b2c_order($_SESSION['user_email', '[email protected]'], $_SESSION);

javlja ne ispravan kod i na servery mycart.php ne radi
[ Tpojka @ 23.09.2018. 01:09 ] @
Probaj sa

Code (php):
confirm_b2c_order($_SESSION['user_email'] . ", [email protected]", $_SESSION);
[ TehnokomercPro @ 23.09.2018. 01:30 ] @
nece

ne salje onda ni na jednu adresu

samo dobijam email defult hosting emailu : A message that you sent contained no recipient addresses, and therefore no delivery could be attempted
[ Tpojka @ 23.09.2018. 01:48 ] @
Nema razloga da se to desi. Tj. ne vidim razlog za tako nešto iz funkcije gore.
Mora da ima nešto u server[/php] logu gdje i zašto se desila greška.

Jedino još probaj u dvije linije:

Code (php):

confirm_b2c_order($_SESSION['user_email'], $_SESSION);
confirm_b2c_order("[email protected]", $_SESSION);
 
[ bokinet @ 23.09.2018. 01:50 ] @
vidim da u zaglavlju se pominje i completeorder.php ... da li moze da se vidi i kod odatle?
mislim da ste negde nesto prevideli jer mora da postoji deo koda koji se izvrsava nakon postavljnjanja porudzbine a koji nakon toga ustvari salje tkz. dojavu na email da imate novu proudzbinu.

[ TehnokomercPro @ 23.09.2018. 01:57 ] @
evo ovako sam uradio:
confirm_b2c_order($_SESSION['user_email'], $_SESSION);
confirm_b2c_order($_SESSION['[email protected]'], $_SESSION);
unset($_SESSION['products']);
header('Location: completeorder.php');


I sad salje na email kupca ali ne i na moj email.....
samo na defult emailu dobijam ponovo :A message that you sent contained no recipient addresses, and therefore no delivery could be attempted.
[ bokinet @ 23.09.2018. 02:06 ] @
Mislim da to ne ide tako kako ste pokusavali vec da je negde drugde sustina.
Pisao sam vam na PP.

Treba videti celu php skriptu kao i completeorder.php skriptu
[ Tpojka @ 23.09.2018. 02:13 ] @
Ne ovako:
Citat:
TehnokomercPro:
Code (php):
confirm_b2c_order($_SESSION['[email protected]'], $_SESSION);



Već kako sam stavio iznad:
Code (php):
confirm_b2c_order('[email protected]', $_SESSION);
[ TehnokomercPro @ 23.09.2018. 02:31 ] @
Ma da Kralju...radi

ne znam sta da ti kazem....Veliko hvala....i ako ti bude trebalo nesto iz naseg prodajnog asortimana imas po nabavnim cenama :)))

ps:da li bi zeleo da nastavis rad na odrzavanju naseg sajta ??
[ Tpojka @ 23.09.2018. 02:48 ] @
Odgovorio sam na PM.