本文整理汇总了PHP中sprintBasicPrice函数的典型用法代码示例。如果您正苦于以下问题:PHP sprintBasicPrice函数的具体用法?PHP sprintBasicPrice怎么用?PHP sprintBasicPrice使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了sprintBasicPrice函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: productTaxInfo
?>
<span class="taxinfo"><?php
print productTaxInfo($prod['tax']);
?>
</span>
<?php
}
?>
<?php
if ($this->config->cart_basic_price_show && $prod['basicprice'] > 0) {
?>
<div class="basic_price"><?php
print _JSHOP_BASIC_PRICE;
?>
: <span><?php
print sprintBasicPrice($prod);
?>
</span></div>
<?php
}
?>
</td>
<td>
<?php
print $prod['quantity'];
print $prod['_qty_unit'];
?>
</td>
<td>
<?php
print formatprice($prod['price'] * $prod['quantity']);
示例2: generatePDF
//.........这里部分代码省略.........
$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;
if ($y > 260) {
$pdf->addNewPage();
$y = 60;
}
}
if ($y > 240) {