本文整理匯總了PHP中productTaxInfo函數的典型用法代碼示例。如果您正苦於以下問題:PHP productTaxInfo函數的具體用法?PHP productTaxInfo怎麽用?PHP productTaxInfo使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了productTaxInfo函數的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: formatprice
print $prod['quantity'];
print $prod['_qty_unit'];
?>
</td>
<td>
<?php
print formatprice($prod['price'] * $prod['quantity']);
?>
<?php
print $prod['_ext_price_total_html'];
?>
<?php
if ($this->config->show_tax_product_in_cart && $prod['tax'] > 0) {
?>
<span class="taxinfo"><?php
print productTaxInfo($prod['tax']);
?>
</span>
<?php
}
?>
</td>
<td>
<a href = "<?php
print $prod['remove_to_cart'];
?>
" ><img src = "<?php
print $this->image_path;
?>
images/reload.png" alt = "<?php
print _JSHOP_REMOVE_TO_CART;
示例2: formatprice
print formatprice($product->product_price);
print $product->_tmp_var_price_ext;
?>
</span>
</div>
<?php
}
?>
<?php
print $product->_tmp_var_bottom_price;
?>
<?php
if ($this->config->show_tax_in_product && $product->tax > 0) {
?>
<span class="taxinfo"><?php
print productTaxInfo($product->tax);
?>
</span>
<?php
}
?>
<?php
if ($this->config->show_plus_shipping_in_product) {
?>
<span class="plusshippinginfo"><?php
print sprintf(_JSHOP_PLUS_SHIPPING, $this->shippinginfo);
?>
</span>
<?php
}
?>
示例3: formatprice
<?php
}
?>
</td>
<td>
<?php
print formatprice($prod->product_item_price * $prod->product_quantity, $order->currency_code);
?>
<?php
print $prod->_ext_price_total_html;
?>
<?php
if ($this->config->show_tax_product_in_cart && $prod->product_tax > 0) {
?>
<div class="taxinfo"><?php
print productTaxInfo($prod->product_tax, $order->display_price);
?>
</div>
<?php
}
?>
</td>
</tr>
<?php
if (count($files)) {
?>
<tr>
<td colspan="5">
<?php
foreach ($files as $file) {
?>
示例4: generatePDF
//.........這裏部分代碼省略.........
} else {
$pdt = "";
}
$pdf->SetXY(23, $pdf->getY());
$pdf->SetFont('freesans', '', 6);
$attribute = sprintAtributeInOrder($prod->product_attributes, "pdf");
$attribute .= sprintFreeAtributeInOrder($prod->product_freeattributes, "pdf");
$attribute .= sprintExtraFiledsInOrder($prod->extra_fields, "pdf");
$attribute .= $prod->_ext_attribute;
$attribute .= $pdt;
$pdf->MultiCell(62, 4, $attribute, 0, 'L');
$pdf->SetFont('freesans', '', 7);
}
$y2 = $pdf->getY() + 2;
if ($jshopConfig->show_product_code_in_order) {
$pdf->SetXY(85, $y + 2);
$pdf->MultiCell(22, 4, $prod->product_ean, 0, 'L');
$y3 = $pdf->getY() + 2;
} else {
$y3 = $pdf->getY();
}
$pdf->SetXY(107, $y + 2);
$pdf->MultiCell(18, 4, formatqty($prod->product_quantity) . $prod->_qty_unit, 0, 'L');
$y4 = $pdf->getY() + 2;
$pdf->SetXY(125, $y + 2);
$pdf->MultiCell(25, 4, formatprice($prod->product_item_price, $order->currency_code), 0, 'L');
if ($prod->_ext_price) {
$pdf->SetXY(125, $pdf->getY());
$pdf->MultiCell(25, 4, $prod->_ext_price, 0, 'R');
}
if ($jshopConfig->show_tax_product_in_cart && $prod->product_tax > 0) {
$pdf->SetXY(125, $pdf->getY());
$pdf->SetFont('freesans', '', 6);
$text = productTaxInfo($prod->product_tax, $order->display_price);
$pdf->MultiCell(25, 4, $text, 0, 'L');
}
if ($jshopConfig->cart_basic_price_show && $prod->basicprice > 0) {
$pdf->SetXY(125, $pdf->getY());
$pdf->SetFont('freesans', '', 6);
$text = _JSHOP_BASIC_PRICE . ": " . sprintBasicPrice($prod);
$pdf->MultiCell(25, 4, $text, 0, 'L');
}
$y5 = $pdf->getY() + 2;
$pdf->SetFont('freesans', '', 7);
$pdf->SetXY(150, $y + 2);
$pdf->MultiCell(40, 4, formatprice($prod->product_quantity * $prod->product_item_price, $order->currency_code), 0, 'R');
if ($prod->_ext_price_total) {
$pdf->SetXY(150, $pdf->getY());
$pdf->MultiCell(40, 4, $prod->_ext_price_total, 0, 'R');
}
if ($jshopConfig->show_tax_product_in_cart && $prod->product_tax > 0) {
$pdf->SetXY(150, $pdf->getY());
$pdf->SetFont('freesans', '', 6);
$text = productTaxInfo($prod->product_tax, $order->display_price);
$pdf->MultiCell(40, 4, $text, 0, 'R');
}
$y6 = $pdf->getY() + 2;
$yn = max($y2, $y3, $y4, $y5, $y6);
$pdf->Rect(20, $y, 170, $yn - $y);
$pdf->Rect(20, $y, 130, $yn - $y);
if ($jshopConfig->show_product_code_in_order) {
$pdf->line(85, $y, 85, $yn);
}
$pdf->line(107, $y, 107, $yn);
$pdf->line(125, $y, 125, $yn);
$y = $yn;
示例5: productTaxInfo
?>
</span>
</div>
<?php
}
?>
<?php
print $this->product->_tmp_var_bottom_price;
?>
<?php
if ($this->config->show_tax_in_product && $this->product->product_tax > 0) {
?>
<span class="taxinfo"><?php
print productTaxInfo($this->product->product_tax);
?>
</span>
<?php
}
?>
<?php
if ($this->config->show_plus_shipping_in_product) {
?>
<span class="plusshippinginfo"><?php
print sprintf(_JSHOP_PLUS_SHIPPING, $this->shippinginfo);
?>
</span>
<?php
}
示例6: formatprice
<span><?php
echo formatprice($product->product_price);
?>
</span>
</div>
<?php
}
?>
<?php
echo $product->_tmp_var_bottom_price;
?>
<?php
if ($this->config->show_tax_in_product && $product->tax > 0) {
?>
<span class="taxinfo"><?php
echo productTaxInfo($product->tax);
?>
</span>
<?php
}
?>
<?php
if ($this->config->show_plus_shipping_in_product) {
?>
<span class="plusshippinginfo"><?php
echo sprintf(_JSHOP_PLUS_SHIPPING, $this->shippinginfo);
?>
</span>
<?php
}
?>
示例7: onBeforeCreatePdfOrderEnd
//.........這裏部分代碼省略.........
$attribute = sprintAtributeInOrder($prod->product_attributes, "pdf");
$attribute .= sprintFreeAtributeInOrder($prod->product_freeattributes, "pdf");
$attribute .= sprintExtraFiledsInOrder($prod->extra_fields, "pdf");
$attribute .= $prod->_ext_attribute;
$attribute .= $pdt;
$pdf->MultiCell(62, 4, $attribute, 0, 'L');
$pdf->SetFont('freesans', '', 8);
}
//$y2 = $pdf->getY() + 1;
$y2 = $pdf->getY();
if ($jshopConfig->show_product_code_in_order && 0) {
$pdf->SetXY(85, $y + 1);
$pdf->MultiCell(22, 4, $prod->product_ean, 0, 'L');
$y3 = $pdf->getY() + 1;
} else {
$y3 = $pdf->getY();
}
$pdf->SetXY(102, $y + 1);
$pdf->MultiCell(20, 1, _JSHOP_ADDON_RUS_INVOICES_PAYMENT_CHT, 0, 'C');
$pdf->SetXY(122, $y + 1);
$pdf->MultiCell(16, 4, formatqty($prod->product_quantity) . $prod->_qty_unit, 0, 'R');
//$y4 = $pdf->getY() + 1;
$y4 = $pdf->getY();
$pdf->SetXY(140, $y + 1);
//$pdf->MultiCell(25, 4, formatprice($prod->product_item_price, $order->currency_code), 0 , 'L');
$pdf->MultiCell(23, 4, $this->formatprice($prod->product_item_price), 0, 'R');
if ($prod->_ext_price) {
$pdf->SetXY(150, $pdf->getY());
$pdf->MultiCell(40, 4, $prod->_ext_price, 0, 'R');
}
if ($jshopConfig->show_tax_product_in_cart && $prod->product_tax > 0) {
$pdf->SetXY(125, $pdf->getY());
$pdf->SetFont('freesans', '', 6);
$text = productTaxInfo($prod->product_tax, $order->display_price);
$pdf->MultiCell(25, 4, $text, 0, 'L');
}
//$y5 = $pdf->getY() + 1;
$y5 = $pdf->getY();
$pdf->SetFont('freesans', '', 8);
$pdf->SetXY(165, $y + 1);
//$pdf->MultiCell(40, 4, formatprice($prod->product_quantity * $prod->product_item_price, $order->currency_code), 0 , 'R');
$pdf->MultiCell(28, 4, $this->formatprice($prod->product_quantity * $prod->product_item_price, 0), 0, 'R');
if ($prod->_ext_price_total) {
$pdf->SetXY(150, $pdf->getY());
$pdf->MultiCell(40, 4, $prod->_ext_price_total, 0, 'R');
}
if ($jshopConfig->show_tax_product_in_cart && $prod->product_tax > 0) {
$pdf->SetXY(150, $pdf->getY());
$pdf->SetFont('freesans', '', 6);
$text = productTaxInfo($prod->product_tax, $order->display_price);
$pdf->MultiCell(40, 4, $text, 0, 'R');
}
//$y6 = $pdf->getY() + 1;
$y6 = $pdf->getY();
$yn = max($y2, $y3, $y4, $y5, $y6);
// line
$pdf->Rect(14, $y, 181, $yn - $y);
//$pdf->Rect(20, $y, 130, $yn - $y );
$pdf->line(22, $y, 22, $yn);
$pdf->line(102, $y, 102, $yn);
if ($jshopConfig->show_product_code_in_order && 0) {
$pdf->line(85, $y, 85, $yn);
}
$pdf->line(122, $y, 122, $yn);
$pdf->line(140, $y, 140, $yn);
$pdf->line(165, $y, 165, $yn);
示例8: formatprice
echo $prod['quantity'];
echo $prod['_qty_unit'];
?>
</td>
<td class="price_summ" headers="price_total">
<?php
echo formatprice($prod['price'] * $prod['quantity']);
?>
<?php
echo $prod['_ext_price_total_html'];
?>
<?php
if ($this->config->show_tax_product_in_cart && $prod['tax'] > 0) {
?>
<span class="taxinfo"><?php
echo productTaxInfo($prod['tax']);
?>
</span>
<?php
}
?>
</td>
</tr>
<?php
$i++;
}
?>
</tbody>
</table>
<?php
示例9: generatePDF
//.........這裏部分代碼省略.........
$pdf->MultiCell($width_filename, 4, _JSHOP_MANUFACTURER . ": " . $prod->manufacturer, 0, 'L');
}
if ($prod->product_attributes != "" || $prod->product_freeattributes != "" || $prod->delivery_time || $prod->extra_fields != '') {
if ($prod->delivery_time) {
$pdt = _JSHOP_DELIVERY_TIME . ": " . $prod->delivery_time;
} else {
$pdt = "";
}
$pdf->SetXY(23, $pdf->getY());
$pdf->SetFont('freesans', '', 6);
$attribute = sprintAtributeInOrder($prod->product_attributes, "pdf");
$attribute .= sprintFreeAtributeInOrder($prod->product_freeattributes, "pdf");
$attribute .= sprintExtraFiledsInOrder($prod->extra_fields, "pdf");
$attribute .= $pdt;
$pdf->MultiCell(62, 4, $attribute, 0, 'L');
$pdf->SetFont('freesans', '', 7);
}
$y2 = $pdf->getY() + 2;
if ($jshopConfig->show_product_code_in_order) {
$pdf->SetXY(85, $y + 2);
$pdf->MultiCell(22, 4, $prod->product_ean, 0, 'L');
$y3 = $pdf->getY() + 2;
} else {
$y3 = $pdf->getY();
}
$pdf->SetXY(107, $y + 2);
$pdf->MultiCell(18, 4, formatqty($prod->product_quantity) . ' ' . $prod->product_qty_unit, 0, 'L');
$y4 = $pdf->getY() + 2;
$pdf->SetXY(125, $y + 2);
$pdf->MultiCell(25, 4, formatprice($prod->product_item_price, $order->currency_code), 0, 'L');
if ($jshopConfig->show_tax_product_in_cart && $prod->product_tax > 0) {
$pdf->SetXY(125, $y + 6);
$pdf->SetFont('freesans', '', 6);
$text = productTaxInfo($prod->product_tax, $order->display_price);
$pdf->MultiCell(25, 4, $text, 0, 'L');
}
$y5 = $pdf->getY() + 2;
$pdf->SetFont('freesans', '', 7);
$pdf->SetXY(150, $y + 2);
$pdf->MultiCell(40, 4, formatprice($prod->product_quantity * $prod->product_item_price, $order->currency_code), 0, 'R');
if ($jshopConfig->show_tax_product_in_cart && $prod->product_tax > 0) {
$pdf->SetXY(150, $y + 6);
$pdf->SetFont('freesans', '', 6);
$text = productTaxInfo($prod->product_tax, $order->display_price);
$pdf->MultiCell(40, 4, $text, 0, 'R');
}
$y6 = $pdf->getY() + 2;
$yn = max($y2, $y3, $y4, $y5, $y6);
$pdf->Rect(20, $y, 170, $yn - $y);
$pdf->Rect(20, $y, 130, $yn - $y);
if ($jshopConfig->show_product_code_in_order) {
$pdf->line(85, $y, 85, $yn);
}
$pdf->line(107, $y, 107, $yn);
$pdf->line(125, $y, 125, $yn);
$y = $yn;
if ($y > 260) {
$pdf->addNewPage();
$y = 60;
}
$prodtot = $prodtot + 1;
}
if ($y > 240) {
$pdf->addNewPage();
$y = 60;
}