GST Registration No.: 863952602RT0001


fields(‘o’) ->condition(‘id’, $act_id) ->execute() ->fetchAssoc(); $order_detail_hst_gst=$order_detail[‘hst_gst’]; $order_detail_shipping_fee=$order_detail[‘shipping_fee’]; $order_detail_shipping_title=$order_detail[‘shipping_title’]; $order_detail_shipping_address=$order_detail[‘shipping_address’]; $order_detail = json_decode($order_detail[‘order_detail’], TRUE); /* —- mail code —- */ $message .= ‘

Order Details

‘; foreach ($order_detail[“item”] as $option => $value) { if ($option != ‘coverFinishing’ && $option != ‘shippingOpt’ && $option != ‘shippingCountry’ && $option != ‘shippingPostCode’ && $option != ‘re_email’ && $option != ‘offer_code’) { $message .= ‘ ‘; $message .= ‘

‘; if ($option == “BindingType”) { $message .=”Binding Type”; } elseif ($option == “print_on_inside_cover”) { $message .=”Print on Inside Cover”; } elseif ($option == “cnintynine”) { $message .=”Cover Design”; } elseif ($option == “more_options”) { $message .=”More Options”; } elseif ($option == “bnintynine”) { $message .=”Book Format Package”; } elseif ($option == “onethirtyfive”) { $message .=”Book Format Package”; } elseif ($option == “onesixty”) { $message .=”Book Format Package”; } elseif ($option == “free”) { $message .=”Free Bar Code”; } elseif ($option == “bound_softcover”) { $message .=”Print Proof”; } elseif ($option == “bound_hardcover”) { $message .=”Print Proof”; } elseif ($option == “cover_stock”) { $message .= ‘Cover Stock’; } elseif ($option == “cover_lamination”) { $message .= ‘Cover Lamination’; } elseif ($option == “cover_finishing”) { $message .= ‘Cover Finishing’; } elseif ($option == “bw_pages”) { $message .= ‘No. Of Black & White Pages’; } elseif ($option == “color_pages”) { $message .= ‘No. Of Color Pages’; } elseif ($option == “paper_weight”) { $message .= ‘Paper Weight’; } elseif ($option == “paper_coating”) { $message .= ‘Paper Coating’; } elseif ($option == “BlackWhite”) { $message .= ‘Color Option’; } elseif ($option == “con_name”) { $message .= ‘Contact Name’; } elseif ($option == “comp_name”) { $message .= ‘Company Name’; } else { $message .= ucwords($option); } $message .= ‘‘; if ($value == “perfect”) { $message .= “Perfect Binding”; } elseif ($value == “hardcover”) { if($order_detail[“item”][‘width’]>9){ $message .=”Case Bound Glue Binding”; }elseif($order_detail[“item”][‘color_pages’]>0 && $order_detail[“item”][‘bw_pages’]>0){ $message .= “Case Bound Glue Binding”; }else{ $message .=”Casebound Smyth Sewn Binding”; } } elseif ($value == “saddle”) { $message .= “Saddle Stitch”; } elseif ($value == “coil”) { $message .= “Coil Bound”; } elseif ($value == “wire”) { $message .= “Wire-O Bound”; } elseif ($value == “12card”) { $message .= ‘Printed Full Color on 12pt Cardstock Cover’; } elseif ($value == “board”) { $message .= ‘Printed full color on 2.5mm board’; } elseif ($value == “10bristol”) { $message .= ‘Printed Full Color on 10pt Bristol Cover’; } elseif ($value == “leather”) { $message .= ‘Imitation Leather’; } elseif ($value == “cloth”) { $message .= ‘Cloth / Linen’; } elseif ($option == “free”) { $message .= “Free”; } elseif ($value == “0”) { $message .= “None”; } elseif ($value == “self”) { $message .= ‘Self Cover’; } elseif ($value == “gloss”) { $message .= ‘Gloss Laminated’; } elseif ($value == “matte”) { $message .= ‘Matte Laminated’; } elseif ($value == “soft”) { $message .= ‘SoftTouch Silk Laminated’; } elseif ($value == “no”) { $message .= ‘No Lamination’; } elseif(($value == “bw” || $value == “color”) && $order_detail[“item”][‘color_pages’]>0 && $order_detail[“item”][‘bw_pages’]<=0) { $message .= ‘Full Color’; } elseif ($value == “bw”) { $message .= ‘Black & White’; } elseif ($value == “color”) { $message .= ‘Full Color’; } elseif ($value == “cream_paper”) { $message .= ‘Cream Paper’; } elseif ($value == “1”) { $message .= “Yes”; } elseif ($option == “paper_weight”) { $message .= $value . ‘ lb’; } else { $message .= ($value) ? ucwords($value) : “None”; } $message .= ‘

‘; } } $message .= ‘

Payment Summary

Prices in Canadian Dollars (CAD)

Order/Reference Number: ‘.$act_id.’ ‘; if ($order_detail[“item”][‘offer_code’]){ $message .= ‘ ‘; } //Print Cost $message .= ‘ ‘; //HST/GST $message .= ‘ ‘; //Shipping Fee $message .= ‘ ‘; // shipping address if ($order_detail_shipping_address){ $message .= ‘ ‘; } //grand total $message .= ‘ ‘; $message .= ‘

‘; $message .= “Offer Code”; $message .= ‘‘; $message .= $order_detail[“item”][“offer_code”]; $message .= ‘
‘; $message .= “Print Cost”; $message .= ‘‘; $message .= ‘$ ‘.round($order_detail[“final_price”], 2); $message .= ‘
‘; $message .= “HST/GST”; $message .= ‘‘; $message .= ‘$ ‘.$order_detail_hst_gst; $message .= ‘
‘; $message .= “Shipping Fee:”; $message .= ‘‘; if ($order_detail_shipping_fee!=”0.00″ && $order_detail_shipping_title != ‘pickup’){ $message .= ‘$ ‘.$order_detail_shipping_fee.’ ‘.$order_detail_shipping_title; } elseif($order_detail_shipping_title == ‘pickup’) { $message .=’Free Shipping(Pick up)’; }else{ $message .=’Free Shipping’; } $message .= ‘
‘; $message .= “Shipping Address:”; $message .= ‘‘; $message .= $order_detail_shipping_address; $message .= ‘
‘; $message .= “Total Amount:”; $message .= ‘‘; if ($order_detail_shipping_fee!=”0.00″ && $order_detail_shipping_title != ‘pickup’){ $total_amount = $order_detail[“final_price”] + $order_detail_shipping_fee + $order_detail_hst_gst; $message .= round($total_amount, 2); }else{ $total_amount = $order_detail[“final_price”] + $order_detail_hst_gst; $message .= ‘$ ‘.round($total_amount, 2); } $message .= ‘

‘; print $message; /* —-/mail code —- */ ?>