Example #1
0
<?php if( !defined( '_VALID_MOS' ) && !defined( '_JEXEC' ) ) die( 'Direct Access to '.basename(__FILE__).' is not allowed.' ); ?>

<?php
// User is not allowed to see a price or there is no price
if( !$auth['show_prices'] || !isset($price_info["product_price_id"] )) {
 
 $link = $sess->url( $_SERVER['PHP_SELF'].'?page=shop.ask&amp;product_id='.$product_id.'&amp;subject='. urlencode( $VM_LANG->_('PHPSHOP_PRODUCT_CALL').": $product_name") );
 echo vmCommonHTML::hyperLink( $link, $VM_LANG->_('PHPSHOP_PRODUCT_CALL') );
}
?>

<?php
if( !empty( $price_info["product_price_id"] )) { ?>
<span class="product-Old-Price">
  <?php echo $CURRENCY_DISPLAY->getFullValue($undiscounted_price); ?>
 </span>

<?php
}
echo $price_table;
?>

<?php
// DISCOUNT: Show old price!
if(!empty($discount_info["amount"])) {
 ?>
  <span class="productPrice">
  <?php echo $CURRENCY_DISPLAY->getFullValue($base_price) ?>
  <?php echo $text_including_tax ?>
 </span>
 <?php
Example #2
0
 function getGreyboxPopUpLink($url, $text, $target = '_blank', $title = '', $attributes = '', $height = 500, $width = 600, $no_js_url = '')
 {
     vmCommonHTML::loadGreybox();
     if ($no_js_url == '') {
         $no_js_url = $url;
     }
     $link = vmCommonHTML::hyperLink($no_js_url, $text, $target, $title, $attributes . ' onclick="try{ if( !parent.GB ) return GB_showCenter(\'' . $title . '\', \'' . $url . '\', ' . $height . ', ' . $width . ');} catch(e) { }"');
     return $link;
 }
Example #3
0
    <tr>
        <td class="labelcell"><?php 
echo $VM_LANG->_('VM_SELECT_THEME');
?>
</td>
        <td>
        <?php 
echo ps_html::list_themes('conf_THEME', basename(VM_THEMEURL));
if ($vmLayout == 'standard') {
    $link = $sess->url($_SERVER['PHP_SELF'] . '?page=admin.theme_config_form&amp;theme=' . basename(VM_THEMEURL));
    $text = $VM_LANG->_('PHPSHOP_CONFIG');
    echo vmCommonHTML::hyperlink($link, $VM_LANG->_('PHPSHOP_CONFIG'));
} else {
    $link = $sess->url($_SERVER['PHP_SELF'] . '?page=admin.theme_config_form&amp;theme=' . basename(VM_THEMEURL) . '&amp;no_menu=1');
    $text = $VM_LANG->_('PHPSHOP_CONFIG');
    echo vmCommonHTML::hyperLink($link, $text, '', 'Edit: ' . $text, 'onclick="parent.addSimplePanel( \'' . $db->getEscaped($text) . '\', \'' . $link . '\' );return false;"');
}
?>
        </td>
        <td><?php 
echo vmToolTip($VM_LANG->_('VM_SELECT_THEME_TIP'));
?>
</td>
    </tr> 
  
    <tr>
        <td class="labelcell"><?php 
echo $VM_LANG->_('PHPSHOP_ADMIN_CFG_PRODUCTS_PER_ROW');
?>
</td>
        <td>
while ($db->next_record()) {
    $listObj->newRow();
    // The row number
    $listObj->addCell($pageNav->rowNumber($i));
    // The product name and link
    $link = $_SERVER['PHP_SELF'] . "?page={$modulename}.product_form&limitstart={$limitstart}&keyword=" . urlencode($keyword) . "&product_id=" . $db->f("product_id") . "&product_parent_id=" . $product_parent_id;
    if ($vmLayout != 'standard') {
        $link .= "&no_menu=1&tmpl=component";
        $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);
    }
    $link = $sess->url($link);
    $text = shopMakeHtmlSafe($db->f("product_name"));
    if ($vmLayout == 'standard') {
        $tmpcell = vmCommonHTML::hyperLink($link, $text, '', 'Edit: ' . $text);
    } else {
        $tmpcell = vmCommonHTML::hyperLink($link, $text, '', 'Edit: ' . $text, 'onclick="parent.addSimplePanel( \'' . $db->getEscaped($db->f("product_name")) . '\', \'' . $link . '\' );return false;"');
    }
    $listObj->addCell($tmpcell);
    $listObj->addCell($db->f("product_sku"));
    $listObj->addCell($db->f("product_in_stock"));
    $price = $ps_product->get_price($db->f("product_id"));
    if ($price) {
        if (!empty($price["item"])) {
            $tmp_cell = $price["product_price"];
        } else {
            $tmp_cell = "none";
        }
    } else {
        $tmp_cell = "none";
    }
    $listObj->addCell($tmp_cell);