?> </span></td> </tr> <!--discount price --> <?php // / if currently vendor specific code (CALLED FROM ::1.sending email to // vendor OR 2.viewing vendor it own order details)is NOT running CODE OR // vendor specific if (!isset($this->vendor_email)) { if ($vendor_order_view == 0) { $coupon_code = trim($coupon_code); if (!empty($coupon_code)) { JLoader::import('cartcheckout', JPATH_SITE . '/components/com_quick2cart/models'); $Quick2cartModelcartcheckout = new Quick2cartModelcartcheckout(); $dis_totalamt = $Quick2cartModelcartcheckout->afterDiscountPrice($tprice, $coupon_code, $this->orderinfo->payee_id, 'order', $this->orderinfo->id); $discount = $tprice - $dis_totalamt; ?> <tr> <td colspan="<?php echo $col; ?> "></td> <td class="cartitem_tprice_label" align="left"><strong><?php echo sprintf(JText::_('QTC_PRODUCT_DISCOUNT'), $coupon_code); ?> </strong></td> <td class="cartitem_tprice" <?php echo $price_col_style; ?> >