Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
587
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.02 KB | None | 0 0
  1.    
  2.          <?
  3.  
  4.         // SEND EMAIL DESIGNER
  5.  
  6.         $prodid = shopp('purchase','item-product','return=true');
  7.  
  8.         shopp('catalog','product','id='.$prodid.'&load=false');
  9.  
  10.         if(shopp('product','found','load=tags')) {
  11.  
  12.             while(shopp('product','tags')) {
  13.  
  14.                 $textemail = "Comanda data de ".shopp('purchase','firstname','return=true')."\r\n\r\n";
  15.  
  16.                 $textemail .= "Produsul: ".shopp('product','name','return=true')."";               
  17.  
  18.                 if(shopp('product','tagged','id=1')) {
  19.  
  20.                     $toemail = "camelianedelcu@gmail.com";
  21.  
  22.                 } else if(shopp('product','tagged','id=2')) {
  23.  
  24.                     $toemail = "ralucagheorghe88@yahoo.com";                   
  25.  
  26.                 } else if(shopp('product','tagged','id=3')) {
  27.  
  28.                     $toemail = "iulius_curt@yahoo.com";    
  29.                    
  30.                 } else if(shopp('product','tagged','id=4')) {
  31.  
  32.                     $toemail = "theorion7@yahoo.com";                  
  33.  
  34.                 }
  35.  
  36.                 mail($toemail,"Wallsticker - ".shopp('product','name','return=true'),$textemail);
  37.  
  38.             }
  39.  
  40.         }
  41.  
  42.         //while(shopp('product','categories')) { …
  43.  
  44.         //;
  45.  
  46.        
  47.  
  48.         ?>
  49.  
  50.     <?php endwhile; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement