}
echo '</table>';
?>
<br />
<div>
    <?php echo $VM_LANG->_('PHPSHOP_CHECKOUT_CUSTOMER_NOTE') ?>:<br />
    <textarea title="<?php echo $VM_LANG->_('PHPSHOP_CHECKOUT_CUSTOMER_NOTE') ?>" cols="50" rows="5" name="customer_note"></textarea>
    <br /><br />
    <?php
    if (PSHOP_AGREE_TO_TOS_ONORDER == '1') { ?>
        <br />
      	<input type="checkbox" name="agreed" value="1" class="inputbox" />&nbsp;&nbsp;
      	<?php 
      	$link = $mosConfig_live_site .'/index2.php?option=com_virtuemart&amp;page=shop.tos&amp;pop=1&amp;Itemid='. $Itemid;
		$text = $VM_LANG->_('PHPSHOP_I_AGREE_TO_TOS');
		echo vmPopupLink( $link, $text );
        echo '<br />';
    }
    ?>
</div>
<?php
if( VM_ONCHECKOUT_SHOW_LEGALINFO == '1' ) {
	$link =  sefRelToAbs('index2.php?option=com_content&amp;task=view&amp;id='.VM_ONCHECKOUT_LEGALINFO_LINK );
	$jslink = "window.open('$link', 'win2', 'status=no,toolbar=no,scrollbars=yes,titlebar=no,menubar=no,resizable=yes,width=640,height=480,directories=no,location=no'); return false;";
		if( @VM_ONCHECKOUT_LEGALINFO_SHORTTEXT=='' || !defined('VM_ONCHECKOUT_LEGALINFO_SHORTTEXT')) {
		$text = $VM_LANG->_('VM_LEGALINFO_SHORTTEXT');
	} else {
		$text = VM_ONCHECKOUT_LEGALINFO_SHORTTEXT;
	}
	?>
    <div class="legalinfo"><?php
Exemple #2
0
 /**
  * Builds the "more images" link
  *
  * @param array $images
  */
 function vmMoreImagesLink($images)
 {
     global $mosConfig_live_site, $VM_LANG, $sess;
     /* Build the JavaScript Link */
     $url = $sess->url("index2.php?page=shop.view_images&amp;flypage=" . @$_REQUEST['flypage'] . "&amp;product_id=" . @$_REQUEST['product_id'] . "&amp;category_id=" . @$_REQUEST['category_id'] . "&amp;pop=1");
     $text = $VM_LANG->_('PHPSHOP_MORE_IMAGES') . '(' . count($images) . ')';
     $image = vmCommonHTML::imageTag(VM_THEMEURL . 'images/more_images.png', $text, '', '16', '16');
     return vmPopupLink($url, $image . '<br />' . $text, 640, 550, '_blank', '', 'screenX=100,screenY=100');
 }
$product_reviews = $product_reviewform = "";
/* LIST ALL REVIEWS **/
if (PSHOP_ALLOW_REVIEWS == '1') {
    /*** Show all reviews available ***/
    $product_reviews = ps_reviews::product_reviews($product_id);
    /*** Show a form for writing a review ***/
    if ($auth['user_id'] > 0) {
        $product_reviewform = ps_reviews::reviewform($product_id);
    }
}
/* LINK TO VENDOR-INFO POP-UP **/
$vend_id = $ps_product->get_vendor_id($product_id);
$vend_name = $ps_product->get_vendorname($product_id);
$link = "{$mosConfig_live_site}/index2.php?page=shop.infopage&amp;vendor_id={$vend_id}&amp;output=lite&amp;option=com_virtuemart&amp;Itemid=" . $Itemid;
$text = $VM_LANG->_('PHPSHOP_VENDOR_FORM_INFO_LBL');
$vendor_link = vmPopupLink($link, $text);
// Avoid JavaScript on PDF Output
if (@$_REQUEST['output'] == "pdf") {
    $vendor_link = "<a href=\"{$link}\" target=\"_blank\" title=\"{$text}\">{$text}</a>";
}
if ($product_parent_id != 0 && !$ps_product_type->product_in_product_type($product_id)) {
    $product_type = $ps_product_type->list_product_type($product_parent_id);
} else {
    $product_type = $ps_product_type->list_product_type($product_id);
}
$recent_products = $ps_product->recentProducts($product_id, $tpl->get_cfg('showRecent', 5));
/**
* This has changed since VM 1.1.0  
* Now we have a template object that can use all variables 
* that we assign here.
* 
Exemple #4
0
    function PrintIcon($link = '', $use_icon = true, $add_text = '')
    {
        global $VM_LANG, $mosConfig_live_site, $mosConfig_absolute_path, $cur_template, $Itemid;
        if (@VM_SHOW_PRINTICON == '1') {
            if (!$link) {
                $query_string = str_replace('only_page=1', 'only_page=0', vmAmpReplace(vmGet($_SERVER, 'QUERY_STRING')));
                $link = 'index2.php?' . $query_string . '&amp;pop=1' . (vmIsJoomla('1.5') ? '&amp;tmpl=component' : '');
            }
            // checks template image directory for image, if non found default are loaded
            if ($use_icon) {
                $text = vmCommonHTML::ImageCheck('printButton.png', '/images/M_images/', NULL, NULL, $VM_LANG->_('CMN_PRINT'), $VM_LANG->_('CMN_PRINT'));
                $text .= shopMakeHtmlSafe($add_text);
            } else {
                $text = '|&nbsp;' . $VM_LANG->_('CMN_PRINT') . '&nbsp;|';
            }
            $isPopup = vmGet($_GET, 'pop');
            if ($isPopup) {
                // Print Preview button - used when viewing page
                $html = '<span class="vmNoPrint">
				<a href="javascript:void(0)" onclick="javascript:window.print(); return false;" title="' . $VM_LANG->_('CMN_PRINT') . '">
				' . $text . '
				</a></span>';
                return $html;
            } else {
                // Print Button - used in pop-up window
                return vmPopupLink($link, $text, 640, 480, '_blank', $VM_LANG->_('CMN_PRINT'));
            }
        }
    }
     $tmpcell .= $sess->url($_SERVER['PHP_SELF'] . "?page={$modulename}.product_list&product_parent_id=" . $db->f("product_id"));
     $tmpcell .= "\">[ " . $VM_LANG->_('PHPSHOP_PRODUCT_FORM_ITEM_INFO_LBL') . " ]</a>";
 }
 $listObj->addCell($tmpcell);
 // Product Media Link
 $numFiles = ps_product_files::countFilesForProduct($db->f('product_id'));
 if ($db->f('product_full_image')) {
     $numFiles++;
 }
 if ($db->f('product_thumb_image')) {
     $numFiles++;
 }
 $link = $sess->url($_SERVER['PHP_SELF'] . '?page=product.file_list&product_id=' . $db->f('product_id') . '&no_menu=1');
 $link = defined('_VM_IS_BACKEND') ? str_replace('index2.php', 'index3.php', str_replace('index.php', 'index3.php', $link)) : str_replace('index.php', 'index2.php', $link);
 $text = '<img src="' . $mosConfig_live_site . '/includes/js/ThemeOffice/media.png" align="middle" border="0" />&nbsp;(' . $numFiles . ')';
 $tmpcell = vmPopupLink($link, $text, 800, 540, '_blank', '', 'screenX=100,screenY=100');
 $listObj->addCell($tmpcell);
 // The product sku
 $listObj->addCell($db->f("product_sku"));
 // The product Price
 $price = $ps_product->getPriceByShopperGroup($db->f('product_id'), '');
 $tmp_cell = '<span class="editable priceform">' . $GLOBALS['CURRENCY_DISPLAY']->getValue($price['product_price']) . ' ' . $price['product_currency'];
 $tmp_cell .= '&nbsp;&nbsp;&nbsp;</span>';
 $listObj->addCell($tmp_cell, 'id="' . $db->f('product_id') . '" onclick="showPriceForm(this.id)" title="' . $VM_LANG->_('PHPSHOP_PRICE_FORM_LBL') . '"');
 // The Categories or the parent product's name
 $tmpcell = "";
 if (empty($product_parent_id)) {
     $db_cat->query("SELECT #__{vm}_category.category_id, category_name FROM #__{vm}_category,#__{vm}_product_category_xref\n\t\t\t\t\t\t\tWHERE #__{vm}_category.category_id=#__{vm}_product_category_xref.category_id\n\t\t\t\t\t\t\tAND #__{vm}_product_category_xref.product_id='" . $db->f("product_id") . "'");
     while ($db_cat->next_record()) {
         $tmpcell .= $db_cat->f("category_name") . "<br/>";
     }