Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- // SEND EMAIL DESIGNER
- $prodid = shopp('purchase','item-product','return=true');
- shopp('catalog','product','id='.$prodid.'&load=false');
- if(shopp('product','found','load=tags')) {
- while(shopp('product','tags')) {
- $textemail = "Comanda data de ".shopp('purchase','firstname','return=true')."\r\n\r\n";
- $textemail .= "Produsul: ".shopp('product','name','return=true')."";
- if(shopp('product','tagged','id=1')) {
- $toemail = "camelianedelcu@gmail.com";
- } else if(shopp('product','tagged','id=2')) {
- $toemail = "ralucagheorghe88@yahoo.com";
- } else if(shopp('product','tagged','id=3')) {
- $toemail = "iulius_curt@yahoo.com";
- } else if(shopp('product','tagged','id=4')) {
- $toemail = "theorion7@yahoo.com";
- }
- mail($toemail,"Wallsticker - ".shopp('product','name','return=true'),$textemail);
- }
- }
- //while(shopp('product','categories')) { …
- //;
- ?>
- <?php endwhile; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement