当前位置: 首页>>代码示例>>PHP>>正文


PHP shopFunctionsF::getBaseUrl方法代码示例

本文整理汇总了PHP中shopFunctionsF::getBaseUrl方法的典型用法代码示例。如果您正苦于以下问题:PHP shopFunctionsF::getBaseUrl方法的具体用法?PHP shopFunctionsF::getBaseUrl怎么用?PHP shopFunctionsF::getBaseUrl使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在shopFunctionsF的用法示例。


在下文中一共展示了shopFunctionsF::getBaseUrl方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: foreach

?>
		<td align="right" width="11%"><strong><?php 
echo JText::_('COM_VIRTUEMART_ORDER_PRINT_SUBTOTAL_DISCOUNT_AMOUNT');
?>
</strong></td>
		<td align="right" width="11%"><strong><?php 
echo JText::_('COM_VIRTUEMART_ORDER_PRINT_TOTAL');
?>
</strong></td>
	</tr>

<?php 
foreach ($this->orderDetails['items'] as $item) {
    $qtt = $item->product_quantity;
    $product_link = JRoute::_('index.php?option=com_virtuemart&view=productdetails&virtuemart_category_id=' . $item->virtuemart_category_id . '&virtuemart_product_id=' . $item->virtuemart_product_id);
    $baseUrl = shopFunctionsF::getBaseUrl();
    // product link must be an absolute URL.
    $product_link = $baseUrl . $product_link;
    //$product_link =JURI::root().'index.php?option=com_virtuemart&view=productdetails&virtuemart_category_id=' . $item->virtuemart_category_id .'&virtuemart_product_id=' . $item->virtuemart_product_id;
    ?>
		<tr valign="top">
			<td align="left">
				<?php 
    echo $item->order_item_sku;
    ?>
			</td>
			<td align="left" colspan="2" >
				<a href="<?php 
    echo $product_link;
    ?>
"><?php 
开发者ID:srbsnkr,项目名称:sellingonlinemadesimple,代码行数:31,代码来源:invoice_items.php

示例2: nl2br

					<tr>
						<td >
							<?php 
if (!empty($this->mailbody)) {
    echo nl2br($this->mailbody);
} else {
    echo JText::sprintf('COM_VIRTUEMART_CART_NOTIFY_MAIL_HTML', $this->productName, $this->link);
}
?>
						</td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
	<?php 
// $uri    = JURI::getInstance();
// $prefix = $uri->toString(array('scheme', 'host', 'port'));
$link = JRoute::_('index.php?option=com_virtuemart', true, -1);
echo '<br/><br/>';
/* GENERAL FOOTER FOR ALL MAILS */
$link = shopFunctionsF::getBaseUrl() . JRoute::_('index.php?option=com_virtuemart', false, -1);
echo JText::_('COM_VIRTUEMART_MAIL_FOOTER') . '<a href="' . $link . '">' . $this->vendor->vendor_name . '</a>';
echo '<br/>';
echo $this->vendor->vendor_name . '<br />' . $this->vendor->vendor_phone . ' ' . $this->vendor->vendor_store_name . '<br /> ' . $this->vendor->vendor_store_desc . '<br />' . $this->vendor->vendor_legal_info;
?>
	</td></tr>
	</table>
</div>
</body>
</html>
开发者ID:anddm2001,项目名称:akvashop.ru,代码行数:31,代码来源:mail_html_notify.php

示例3:

		<?php 
echo JText::_('COM_VIRTUEMART_MAIL_SHOPPER_YOUR_PASSWORD');
?>
<br />
		<strong><?php 
echo $this->orderDetails['details']['BT']->order_pass;
?>
</strong>
	</td>
    <td width="40%">
    	<p>
 			<a class="default" title="<?php 
echo $this->vendor->vendor_store_name;
?>
" href="<?php 
echo shopFunctionsF::getBaseUrl() . JRoute::_('index.php?option=com_virtuemart&view=orders&layout=details&order_number=' . $this->orderDetails['details']['BT']->order_number . '&order_pass=' . $this->orderDetails['details']['BT']->order_pass);
?>
">
			<?php 
echo JText::_('COM_VIRTUEMART_MAIL_SHOPPER_YOUR_ORDER_LINK');
?>
</a>
		</p>
	</td>
  </tr>
  <tr>
    <td colspan="3"><p>
				<?php 
echo JText::sprintf('COM_VIRTUEMART_MAIL_SHOPPER_TOTAL_ORDER', $this->currency->priceDisplay($this->orderDetails['details']['BT']->order_total));
?>
</p></td>
开发者ID:srbsnkr,项目名称:sellingonlinemadesimple,代码行数:31,代码来源:mail_html_shopper.php


注:本文中的shopFunctionsF::getBaseUrl方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。