示例#1
0
        echo $item->wishlistitem_id;
        ?>
">
                    <td>
                        <a class="delete-wishlistitem btn btn-danger" href="javascript:void(0);" data-wishlistitem_id="<?php 
        echo $item->wishlistitem_id;
        ?>
">
                            <?php 
        echo JText::_("COM_CITRUSCART_DELETE_WISHLISTITEM");
        ?>
                        </a>
                    </td>
                    <td class="product_thumb_container">
                        <?php 
        $product_image = CitruscartHelperProduct::getImage($item->product_id, '', '', 'full', true, false, array(), true);
        ?>
                        <?php 
        if ($product_image) {
            ?>
                        <div class="dsc-wrap product_thumb frame">
                            <div class="frame-inner">
                                <a href="<?php 
            echo $link;
            ?>
">
                	            <img src="<?php 
            echo $product_image;
            ?>
" />
                	            </a>
示例#2
0
-------------------------------------------------------------------------*/
/** ensure this file is being included by a parent file */
defined('_JEXEC') or die('Restricted access');
JHtml::_('script', 'media/citruscart/js/citruscart.js', false, false);
JHtml::_('stylesheet', 'media/citruscart/css/pos.css');
$state = @$this->state;
$row = @$this->product;
Citruscart::load('CitruscartHelperProduct', 'helpers.product');
?>
<form action="index.php?option=com_citruscart&view=pos&tmpl=component" method="post" name="adminForm" enctype="multipart/form-data">

    <table class="table table-striped table-bordered">
    	<tr>
    		<td>
    			<?php 
echo CitruscartHelperProduct::getImage($row->product_id, 'id', $row->product_name, 'full', false, false, array('width' => 150));
?>
    		</td>
    		<td>
    			<h3><?php 
echo $row->product_name;
?>
</h3>
                <p><?php 
echo $row->product_description_short;
?>
</p>
            </td>
            <td>
	           	<div id="product_buy">
          			<?php 
示例#3
0
    <?php 
if (!empty($items)) {
    ?>
        <div id="citruscart_products" style="display:inline-flex;">
         <ul id="citruscart_manufacturer_list">
            <?php 
    foreach ($items as $item) {
        ?>
            <!-- manufacturers unorder list ends -->
            	<li class="citruscart_manufacturer_main_list">
     	                <a href="<?php 
        echo JRoute::_($item->link . "&filter_category=" . $this->cat->category_id . "&Itemid=" . $item->itemid);
        ?>
">
              	            <?php 
        echo CitruscartHelperProduct::getImage($item->product_id);
        ?>
           	            </a>
					<br/>
                    <?php 
        if (Citruscart::getInstance()->get('product_review_enable', '0')) {
            ?>

                       <?php 
            echo CitruscartHelperProduct::getRatingImage($item->product_rating);
            ?>
                       <?php 
            if (!empty($item->product_comments)) {
                ?>
                       <span class="product_comments_count">(<?php 
                echo $item->product_comments;
示例#4
0
">
                    <td style="width: 20px; text-align: center;">
                        <input type="checkbox" id="cb<?php 
        echo $i;
        ?>
" name="cid[<?php 
        echo $item->cart_id;
        ?>
]" value="<?php 
        echo $item->product_id;
        ?>
" onclick="isChecked(this.checked);" />
                    </td>
                    <td style="text-align: center; width: 50px;">
                        <?php 
        echo CitruscartHelperProduct::getImage($item->product_id, 'id', $item->product_name, 'full', false, false, array('width' => 48));
        ?>
                    </td>
                    <td>
                        <a href="<?php 
        echo $link;
        ?>
">
                            <?php 
        echo $item->product_name;
        ?>
                        </a>
                        <br/>

                        <?php 
        if (!empty($item->attributes_names)) {
示例#5
0
  # Technical Support:  Forum - http://citruscart.com/forum/index.html
  -------------------------------------------------------------------------*/
/** ensure this file is being included by a parent file */
defined('_JEXEC') or die('Restricted access');
JHTML::_('behavior.modal');
$doc = JFactory::getDocument();
$doc->addScript(JUri::root(true) . '/media/citruscart/js/jquery.zoom.js');
$doc->addStyleSheet(JUri::root(true) . '/media/citruscart/css/imagezoom.css');
JHtml::_('script', 'media/citruscart/js/citruscart.js', false, false);
JHtml::_('script', 'media/citruscart/js/common.js', false, false);
JHtml::_('script', 'media/citruscart/js/citruscart_inventory_check.js', false, false);
JHtml::_('stylesheet', 'media/citruscart/css/citruscart.css');
$state = $this->state;
$item = $this->row;
$product_image = CitruscartHelperProduct::getImage($item->product_id, '', '', 'full', true, false, array(), true);
$product_image_thumb = CitruscartHelperProduct::getImage($item->product_id, '', $item->product_name, 'full', false, false, array(), true);
$app = JFactory::getApplication();
?>
<div id="citruscart" class="dsc-wrap products view product-<?php 
echo $item->product_id;
?>
 <?php 
echo $item->product_classes;
?>
">
   <?php 
if ($this->defines->get('display_citruscart_pathway')) {
    ?>
   <div id='citruscart_breadcrumb'>
      <?php 
    echo CitruscartHelperCategory::getPathName($this->cat->category_id, 'links', true);
示例#6
0
            if ($params->get('display_image_link', '1') != '0') {
                ?>

				<a href="<?php 
                echo JRoute::_($product->link . "&Itemid=" . $product->itemid);
                ?>
" >
				<?php 
                echo CitruscartHelperProduct::getImage($product->product_id, 'id', $product->product_name, 'thumb', false, $resize, $options);
                ?>
				</a>
			<?php 
            } else {
                ?>
				<?php 
                echo CitruscartHelperProduct::getImage($product->product_id, 'id', $product->product_name, 'thumb', false, $resize, $options);
                ?>
			<?php 
            }
            ?>
		<?php 
        }
        ?>
		</span><!-- popular product images span ends -->		

		<!-- popular product options span starts --> 
		<span class="citruscart_popular_options">
		<?php 
        if ($params->get('display_title', '1') != '0') {
            ?>
	    <h5><a href="<?php 
# author   Citruscart Team  - Citruscart http://www.citruscart.com
# copyright Copyright (C) 2014 Citruscart.com All Rights Reserved.
# @license - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
# Websites: http://citruscart.com
# Technical Support:  Forum - http://citruscart.com/forum/index.html
-------------------------------------------------------------------------*/
/** ensure this file is being included by a parent file */
defined('_JEXEC') or die('Restricted access');
$app = JFactory::getApplication();
$gallery_data = $this->gallery_data;
$product_id = $app->input->getInt('id');
$doc = JFactory::getDocument();
$doc->addScript(JUri::root() . 'media/citruscart/js/jquery.zoom.js');
$doc->addStyleSheet(JUri::root(true) . '/media/citruscart/css/imagezoom.css');
$product_image = CitruscartHelperProduct::getImage($product_id, '', '', 'full', true, false, array(), true);
$product_image_thumb = CitruscartHelperProduct::getImage($product_id, '', '', 'thumb', true, false, array(), true);
?>

<?php 
if ($gallery_data->show_gallery) {
    ?>

<!--<div class="dsc-wrap product_gallery" id="product_gallery"> -->
	<!-- <div id="product_gallery_header" class="citruscart_header dsc-wrap">
		<span><?php 
    // echo JText::_('COM_CITRUSCART_IMAGES');
    ?>
 </span>
	</div> -->
	<?php 
    $i = 1;
示例#8
0
        ?>
				<td align="center" valign="top" class="border-left">
					<a title="<?php 
        echo JText::_('COM_CITRUSCART_REMOVE_PRODUCT_COMPARISON');
        ?>
" class="close-img" href="<?php 
        echo JRoute::_('index.php?index.php?option=com_citruscart&view=productcompare&task=remove&id=' . $item->productcompare_id);
        ?>
">
						<img src="<?php 
        echo Citruscart::getURL('images');
        ?>
closebox.gif">
					</a>
						<?php 
        echo CitruscartHelperProduct::getImage($item->product_id, '', $item->product_name);
        ?>
				</td>
						<?php 
    }
    ?>
			</tr>
			<tr valign="top"  class="row0">
				<td></td>
					<?php 
    foreach ($items as $item) {
        ?>
				<td align="center" class="border-left">
					<a href="<?php 
        echo JRoute::_('index.php?option=com_citruscart&view=products&task=view&id=' . $item->product_id);
        ?>
示例#9
0
 /**
  * Change the default image
  * @return unknown_type
  */
 function updateDefaultImage()
 {
     $app = JFactory::getApplication();
     $response = array();
     $response['default_image'] = '';
     $response['default_image_name'] = '';
     $product_id = $app->input->getInt('product_id');
     Citruscart::load('CitruscartUrl', 'library.url');
     Citruscart::load("CitruscartHelperProduct", 'helpers.product');
     $row = JTable::getInstance('Products', 'CitruscartTable');
     $row->load($product_id);
     $response['default_image'] = CitruscartHelperProduct::getImage($row->product_id, 'id', $row->product_name, 'full', false, false, array('height' => 80));
     $response['default_image_name'] = $row->product_full_image;
     echo json_encode($response);
     // Close the application.
     JFactory::getApplication()->close();
 }
示例#10
0
    ?>
                    </span>
                <?php 
}
?>
            </div>
        </div>

        <div class="product_image">
            <?php 
echo CitruscartUrl::popup(CitruscartHelperProduct::getImage($item->product_id, '', '', 'full', true), CitruscartHelperProduct::getImage($item->product_id), array('update' => false, 'img' => true));
?>
            <div>
            <?php 
if (isset($item->product_full_image)) {
    echo CitruscartUrl::popup(CitruscartHelperProduct::getImage($item->product_id, '', '', 'full', true), "View Larger", array('update' => false, 'img' => true));
}
?>
            </div>
        </div>

       <?php 
if ($this->product_description) {
    ?>
            <div class="reset"></div>

            <div id="product_description">
                <?php 
    if (Citruscart::getInstance()->get('display_product_description_header', '1')) {
        ?>
                    <div id="product_description_header" class="citruscart_header">
示例#11
0
    ?>
">
			<td style="text-align: center;">
			<a style="cursor: pointer;"
				onclick="<?php 
    echo $onclick;
    ?>
" href="javascript:void(0)"> <?php 
    echo $row->product_id;
    ?>
 </a>
			</td>
			<td>
			<?php 
    if (!empty($row->product_full_image)) {
        echo CitruscartHelperProduct::getImage($row->product_id, '', $row->product_name, 'thumb', false, false, array('width' => 60));
    }
    ?>
			</td>
			<td><a style="cursor: pointer;"
				onclick="<?php 
    echo $onclick;
    ?>
"> <?php 
    echo htmlspecialchars($row->product_name, ENT_QUOTES, 'UTF-8');
    ?>
			</a></td>
			<td style="text-align: center;"><a style="cursor: pointer;"
				onclick="<?php 
    echo $onclick;
    ?>