Example #1
0
 id="per_product">
                    <td style="width: 125px; text-align: right;" class="key">
                        <?php 
echo JText::_('COM_CITRUSCART_SELECT_PRODUCTS');
?>
:
                    </td>
                    <td>
                    	<?php 
if ($row['coupon_id']) {
    ?>
                        <?php 
    $select_url = "index.php?option=com_citruscart&controller=coupons&task=selectproducts&id=" . $row['coupon_id'] . "&tmpl=component&hidemainmenu=1";
    ?>
                    	<?php 
    echo CitruscartUrl::popup($select_url, JText::_('COM_CITRUSCART_SELECT_PRODUCTS'));
    ?>
                    	<?php 
} else {
    ?>
                    		<div class="note well">
                    		<?php 
    echo JText::_('COM_CITRUSCART_CLICK_THE_APPLY_BUTTON_TO_ADD_PRODUCTS_TO_THIS_COUPON');
    ?>
                			</div>
                    		<?php 
}
?>
                    </td>
                </tr>
                <tr>
Example #2
0
]
				</td>
				<td style="text-align: center;">

					<?php 
    if (!isset($item->product_check_inventory)) {
        echo JText::_('COM_CITRUSCART_CHECK_PRODUCT_INVENTORY_DISABLED');
    } else {
        ?>
	<span class="badge badge-warning"><?php 
        echo (int) $item->product_quantity;
        ?>
</span>
                    <br/>
                    [<?php 
        echo CitruscartUrl::popup("index.php?option=com_citruscart&controller=products&task=setquantities&id=" . $item->product_id . "&tmpl=component", JText::_('COM_CITRUSCART_SET_QUANTITIES'), array('update' => true));
        ?>
]

                    <?php 
    }
    ?>
				</td>
                <td style="text-align: center;">
                    <?php 
    echo CitruscartGrid::order($item->product_id);
    ?>
                    <?php 
    echo CitruscartGrid::ordering($item->product_id, $item->ordering);
    ?>
                </td>
Example #3
0
    $create_user_link = "index.php?option=com_users&task=user.add";
}
?>

<form action="<?php 
echo JRoute::_($form['action']);
?>
" method="post" class="adminform" name="adminForm" id="adminForm" enctype="multipart/form-data">

	<?php 
echo CitruscartGrid::pagetooltip($app->input->get('view'));
?>

    <?php 
$button = "<input type='button' class='btn btn-success pull-left' value='" . JText::_('COM_CITRUSCART_CREATE_NEW_USER') . "' />";
echo CitruscartUrl::popup($create_user_link, $button, array('update' => true));
?>

	<?php 
echo CitruscartGrid::searchform($state->filter, JText::_('COM_CITRUSCART_SEARCH'), JText::_('COM_CITRUSCART_RESET'));
?>

	<table class="table table-bordered">
		<thead>
            <tr>
                <th style="width: 5px;">
                	<?php 
echo JText::_('COM_CITRUSCART_NUM');
?>
                </th>
                <th style="width: 50px;">
Example #4
0
                        <br/>
                        <h6>
                        	<span id="product_price_<?php 
        echo $item->product_id;
        ?>
" class="product_price">
					    	<?php 
        echo CitruscartHelperProduct::dispayPriceWithTax($item->price, @$item->tax, @$this->show_tax);
        ?>
					    	 <!-- For UE States, we should let the admin choose to show (+19% vat) and (link to the shipping rates) -->
					    	<br />
					    	<?php 
        if (Citruscart::getInstance()->get('display_prices_with_shipping') && !empty($item->product_ships)) {
            ?>
					    	<?php 
            echo CitruscartUrl::popup(JRoute::_($this->shipping_cost_link . '&tmpl=component'), JText::_('COM_CITRUSCART_LINK_TO_SHIPPING_COST'));
            ?>
					    	<?php 
        }
        ?>
					   		 </span></h6>
               </li>
               <!-- manufacturers unorder list ends -->
            <?php 
    }
    ?>
        </div>
        <form action="<?php 
    echo JRoute::_($form['action'] . "&limitstart=" . $state->limitstart);
    ?>
" method="post" name="adminForm" enctype="multipart/form-data">
Example #5
0
</label>
        <textarea name="customer_note"></textarea>
    </fieldset>

    <?php 
if ($this->defines->get('require_terms', '0')) {
    $terms_article = $this->defines->get('article_terms');
    $terms_link = JRoute::_('index.php?option=com_content&view=article&id=' . $terms_article);
    ?>
        <fieldset>
        <label for="terms-conditions" class="checkbox">
            <input type="checkbox" name="terms-conditions" value="1" id="terms-conditions" />
            <?php 
    if ($terms_article) {
        if ($this->defines->get('require_terms_modal', '0')) {
            echo CitruscartUrl::popup($terms_link, JText::_('COM_CITRUSCART_ACCEPT_TERMS_AND_CONDITIONS'));
        } else {
            echo '<a href="' . $terms_link . '" target="_blank">' . JText::_('COM_CITRUSCART_ACCEPT_TERMS_AND_CONDITIONS') . '</a>';
        }
    } else {
        echo JText::_('COM_CITRUSCART_ACCEPT_TERMS_AND_CONDITIONS');
    }
    ?>
        </label>
        </fieldset>
        <?php 
}
?>
    <div id="opc-review-validation"></div>
    <a id="opc-review-button" class="btn btn-success btn-large"><?php 
echo JText::_('COM_CITRUSCART_PLACE_ORDER');
Example #6
0
    					</td>
    				</tr>
    				<tr>
    					<td style="width: 100px; text-align: right;" class="key">
    						<label for="category_full_image">
    						<?php 
echo JText::_('COM_CITRUSCART_CURRENT_IMAGE');
?>
:
    						</label>
    					</td>
    					<td>
    						<?php 
jimport('joomla.filesystem.file');
if (!empty($row->category_full_image) && JFile::exists(Citruscart::getPath('categories_images') . DS . $row->category_full_image)) {
    echo CitruscartUrl::popup(Citruscart::getClass('CitruscartHelperCategory', 'helpers.category')->getImage($row->category_id, '', '', 'full', true), CitruscartHelperCategory::getImage($row->category_id), array('update' => false, 'img' => true));
}
?>
    						<br />
    						<input type="text" name="category_full_image" id="category_full_image" size="48" maxlength="250" value="<?php 
echo $row->category_full_image;
?>
" />
    					</td>
    				</tr>
    				<tr>
    					<td style="width: 100px; text-align: right;" class="key">
    						<label for="category_full_image_new">
    						<?php 
echo JText::_('COM_CITRUSCART_UPLOAD_NEW_IMAGE');
?>
Example #7
0
    echo $item->link;
    ?>
">
                        <?php 
    echo $item->shipping_method_name;
    ?>
                    </a>
                    <div class="shipping_rates">
                        <?php 
    Citruscart::load('CitruscartUrl', 'library.url');
    ?>
                        <?php 
    Citruscart::load('CitruscartHelperShipping', 'helpers.shipping');
    ?>
                        <span style="float: right;">[<?php 
    echo CitruscartUrl::popup("index.php?option=com_citruscart&controller=shippingmethods&task=setrates&id=" . $item->shipping_method_id . "&tmpl=component", "Set Rates");
    ?>
]</span>
                        <?php 
    if ($shipping_method_type = CitruscartHelperShipping::getType($item->shipping_method_type)) {
        echo "<b>" . JText::_('COM_CITRUSCART_TYPE') . "</b>: " . $shipping_method_type->title;
    }
    if ($item->subtotal_minimum > '0') {
        echo "<br/><b>" . JText::_('COM_CITRUSCART_MINIMUM_ORDER_REQUIRED') . "</b>: " . CitruscartHelperBase::currency($item->subtotal_minimum);
    }
    if ($item->subtotal_maximum > '-1') {
        echo "<br/><b>" . JText::_('COM_CITRUSCART_SHIPPING_METHODS_SUBTOTAL_MAX') . "</b>: " . CitruscartHelperBase::currency($item->subtotal_maximum);
    }
    ?>
                    </div>
				</td>
Example #8
0
                    <?php 
    echo CitruscartGrid::ordering($item->tax_class_id, $item->ordering);
    ?>
                </td>
				<td style="text-align: center;">
					<?php 
    echo JText::_('COM_CITRUSCART_TAX_RATES_ASSIGNED');
    ?>
:
					<span class="badge badge-warning"><?php 
    echo $item->taxrates_assigned;
    ?>
</span>
					<br/>
					[<?php 
    echo CitruscartUrl::popup($item->link_taxrates, JText::_('COM_CITRUSCART_SET_TAX_RATES'), array('update' => true));
    ?>
]
				</td>
			</tr>
			<?php 
    $i = $i + 1;
    $k = 1 - $k;
    ?>
			<?php 
}
?>

			<?php 
if (!count($items)) {
    ?>
Example #9
0
            <div class="reset"></div>
            <div class="product_gallery">
                <div id="product_gallery_header" class="citruscart_header">
                    <span><?php 
    echo JText::_('COM_CITRUSCART_IMAGES');
    ?>
</span>
                </div>
                <?php 
    $uri = CitruscartHelperProduct::getUriFromPath($path);
    foreach ($images as $image) {
        ?>
                    <div class="subcategory">
                        <div class="subcategory_thumb">
                            <?php 
        echo CitruscartUrl::popup($uri . $image, '<img src="' . $uri . "thumbs/" . $image . '" />', array('update' => false, 'img' => true));
        ?>
                        </div>
                    </div>
                    <?php 
    }
    ?>
                <div class="reset"></div>
            </div>
            <?php 
}
?>

        <div class="reset"></div>

        <?php 
Example #10
0
	      	<?php 
    echo CitruscartSelect::booleans($item->is_blank, 'blank[' . $item->productattributeoption_id . ']', array('class' => 'input-mini'), null, false, 'Select State', 'Yes', 'No');
    ?>
				</td>
				<td>
					<input type="text" class="span1" name="ordering[<?php 
    echo $item->productattributeoption_id;
    ?>
]" value="<?php 
    echo $item->ordering;
    ?>
" class="input-mini" />
				</td>
				<td>
					[<?php 
    echo CitruscartUrl::popup("index.php?option=com_citruscart&controller=products&task=setattributeoptionvalues&id=" . $item->productattributeoption_id . "&tmpl=component", JText::_('COM_CITRUSCART_SET_VALUES'));
    ?>
]
				</td>
				<td>[<a  href="index.php?option=com_citruscart&controller=productattributeoptions&task=delete&cid[]=<?php 
    echo $item->productattributeoption_id;
    ?>
&return=<?php 
    echo base64_encode("index.php?option=com_citruscart&controller=products&task=setattributeoptions&id={$row->productattribute_id}&tmpl=component");
    ?>
">
						<small><?php 
    echo JText::_('COM_CITRUSCART_DELETE_OPTION');
    ?>
</small>
					</a>]
Example #11
0
    ?>
">
                        <?php 
    echo $item->shipping_method_name;
    ?>
                    </a>
                    <div class="shipping_rates">
                        <?php 
    Citruscart::load('CitruscartUrl', 'library.url');
    ?>
                        <?php 
    Citruscart::load('CitruscartHelperShipping', 'helpers.shipping');
    $id = $input->getInt('id', 0);
    ?>
                        <span style="float: right;">[<?php 
    echo CitruscartUrl::popup("index.php?option=com_citruscart&view=shipping&task=view&id={$id}&shippingTask=setRates&tmpl=component&sid={$item->shipping_method_id}", JText::_('Set Rates'));
    ?>
]</span>
                        <?php 
    if ($shipping_method_type = CitruscartHelperShipping::getType($item->shipping_method_type)) {
        echo "<b>" . JText::_('COM_CITRUSCART_TYPE') . "</b>: " . $shipping_method_type->title;
    }
    if ($item->subtotal_minimum > '0') {
        echo "<br/><b>" . JText::_('COM_CITRUSCART_MINIMUM_ORDER_REQUIRED') . "</b>: " . CitruscartHelperBase::currency($item->subtotal_minimum);
    }
    if ($item->subtotal_maximum > '-1') {
        echo "<br/><b>" . JText::_('COM_CITRUSCART_SHIPPING_METHODS_SUBTOTAL_MAX') . "</b>: " . CitruscartHelperBase::currency($item->subtotal_maximum);
    }
    ?>
                    </div>
				</td>
Example #12
0
</div>

<?php 
if ($menu = CitruscartMenu::getInstance()) {
    $menu->display();
}
?>
<div style="float: right;">
<?php 
if ($row->user_id > 0) {
    $url = JRoute::_("index.php?option=com_citruscart&view=orders&task=print&tmpl=component&id=" . $row->order_id);
} else {
    $url = JRoute::_("index.php?option=com_citruscart&view=orders&task=print&tmpl=component&id=" . $row->order_id) . '&h=' . $row->order_hash;
}
$text = JText::_('COM_CITRUSCART_PRINT_INVOICE');
echo CitruscartUrl::popup($url, $text);
?>
</div>
<?php 
echo "<< <a href='" . JRoute::_("index.php?option=com_citruscart&view=orders") . "'>" . JText::_('COM_CITRUSCART_RETURN_TO_LIST') . "</a>";
?>

<?php 
// fire plugin event here to enable extending the form
JDispatcher::getInstance()->trigger('onBeforeDisplayOrderView', array($row));
?>

<div id="order_info">
	<h3>
	<?php 
echo JText::_('COM_CITRUSCART_ORDER_INFORMATION');
Example #13
0
    ?>
');
    </script>
    <?php 
}
?>
<div id="gallery">
	<table border="0">
		<tr>

			<?php 
foreach ($images as $i) {
    ?>
				<td>
				<?php 
    echo CitruscartUrl::popup($path . $i, '<img src="' . $path . "thumbs/" . $i . '" style="vertical-align: bottom;" />', array('update' => false, 'img' => true));
    ?>
				</td>
				<?php 
}
?>

	</tr>
	<tr>

		<?php 
foreach ($images as $i) {
    ?>
		<td>
			<a href="index.php?option=com_citruscart&controller=products&task=deleteImage&product_id=<?php 
    echo $product_id;
Example #14
0
								</div>
		                      <?php 
if (version_compare(JVERSION, '1.6.0', 'ge')) {
    // Joomla! 1.6+ code here
    $url = $this->defines->get("user_edit_url", "index.php?option=com_users&task=user.edit&id=");
} else {
    // Joomla! 1.5 code here
    $url = $this->defines->get("user_edit_url", "index.php?option=com_users&view=user&task=edit&cid[]=");
}
//
$url .= $row->id;
$text = '<button class="btn btn-primary" >' . JText::_('COM_CITRUSCART_EDIT_USER') . '</button>';
?>
		                        
		                        <div ><?php 
echo CitruscartUrl::popup($url, $text, array('update' => true));
?>
</div>
		                    </td>  
						</tr>
						<tr>
							<td align="right" class="key" key">
		                        <label for="email">
		                        	<?php 
echo JText::_('COM_CITRUSCART_EMAIL');
?>
:
		                        </label>
	                    	</td>
	                    	<td>
	                        	<div class="name"><?php 
Example #15
0
    } else {
        // display lightbox link to manage quantities
        ?>
            <tr>
                <td class="dsc-key"><?php 
        echo JText::_('COM_CITRUSCART_PRODUCT_QUANTITIES');
        ?>
:</td>
                <td><?php 
        echo $row->product_quantity;
        echo "<br/>";
        Citruscart::load('CitruscartUrl', 'library.url');
        $options = array('update' => true);
        ?>
 [<?php 
        echo CitruscartUrl::popup("index.php?option=com_citruscart&view=products&task=setquantities&id=" . $row->product_id . "&tmpl=component", JText::_('COM_CITRUSCART_SET_QUANTITIES'), $options);
        ?>
]</td>
            </tr>
            <?php 
    }
}
?>
            <tr>
                <td title="<?php 
echo JText::_('COM_CITRUSCART_PURCHASE_QUANTITY_RESTRICTION') . '::' . JText::_('COM_CITRUSCART_PURCHASE_QUANTITY_RESTRICTION_TIP');
?>
" class="dsc-key hasTip"><?php 
echo JText::_('COM_CITRUSCART_PURCHASE_QUANTITY_RESTRICTION');
?>
:</td>
Example #16
0
<table>
<tr>
	<td style="width: 70%; vertical-align: top;">

        <!-- Start Products in Order section -->
        <table style="width: 100%;">
            <thead>
                <tr>
                    <th style="text-align: left;">
                       <?php 
echo JText::_('COM_CITRUSCART_PRODUCTS_IN_ORDER');
?>
                    </th>
                    <th style="text-align: center; width: 20%;" >
                       <?php 
echo CitruscartUrl::popup("index.php?option=com_citruscart&controller=orders&task=selectproducts&tmpl=component", JText::_('COM_CITRUSCART_ADD_PRODUCTS_TO_ORDER'));
?>
                    </th>
                </tr>
            </thead>
            <tbody>
            <tr>
                <td colspan="2">
	                <div id="order_products_div">
	                    <?php 
include "orderproducts.php";
?>
	                </div>
                </td>
            </tr>
            </tbody>
Example #17
0
}
?>
         </div>
         <!-- row-fluid div ends -->
         <!-- review div starts -->
         <?php 
if ($this->defines->get('ask_question_enable', '1')) {
    ?>
         <div id="product_questions"  class="pull-right">
            <?php 
    $uri = JFactory::getURI();
    $return_link = base64_encode($uri->__toString());
    $asklink = "index.php?option=com_citruscart&view=products&task=askquestion&id={$item->product_id}&return=" . $return_link;
    if ($this->defines->get('ask_question_modal', '1')) {
        $height = $this->defines->get('ask_question_showcaptcha', '1') ? '570' : '440';
        $asktxt = CitruscartUrl::popup("{$asklink}.&tmpl=component", JText::_('COM_CITRUSCART_ASK_A_QUESTION_ABOUT_THIS_PRODUCT'), array('id' => 'askQuestion', 'width' => '690', 'height' => "{$height}"));
    } else {
        $asktxt = "<a href='{$asklink}'>";
        $asktxt .= JText::_('COM_CITRUSCART_ASK_A_QUESTION_ABOUT_THIS_PRODUCT');
        $asktxt .= "</a>";
    }
    ?>
            [<?php 
    echo $asktxt;
    ?>
]
         </div>
         <?php 
}
?>
         <?php 
Example #18
0
        <h3>
            <?php 
echo JText::_('COM_CITRUSCART_SELECT_SHIPPING_AND_BILLING_ADDRESSES');
?>
        </h3>

        <table>
        <tr>
            <td colspan="2">
                <div class='note'>
	                <?php 
$text = JText::_('COM_CITRUSCART_CLICK_HERE_TO_MANAGE_YOUR_STORED_ADDRESSES') . ".";
?>
	                <?php 
echo CitruscartUrl::popup("index.php?option=com_citruscart&view=addresses&tmpl=component", $text, array('update' => true));
?>
                    <?php 
echo JText::_('COM_CITRUSCART_CHECKOUT_MANAGE_ADDRESSES_INSTRUCTIONS');
?>
                </div>
            </td>
        </tr>

        <tr>
            <td style="text-align: left;">
            	<div id="billingAddress">
                <!--    BILLING ADDRESS   -->
                <h4 id='billing_address_header' class="address_header">
                    <?php 
echo JText::_('COM_CITRUSCART_BILLING_ADDRESS');
Example #19
0
                		<?php 
        echo JText::_('COM_CITRUSCART_SHIPPINGS_ASSIGNED');
        ?>
                		<?php 
        $text = JText::_('COM_CITRUSCART_SELECT_SHIPPINGS');
        ?>
                	<?php 
    }
    ?>
:
                    <?php 
    echo CitruscartHelperPlugin::countPlgtoGeozone($item);
    ?>
                    <br/>
                    [<?php 
    echo CitruscartUrl::popup($item->link_plugins, $text, array('update' => true));
    ?>
]
                </td>
                <td style="text-align: center;">
                    <span class="badge badge-success"><?php 
    echo $item->geozonetype_name;
    ?>
</span>
                </td>
            </tr>
            <?php 
    $i = $i + 1;
    $k = 1 - $k;
    ?>
            <?php 
Example #20
0
    ?>
				</td>
                <td style="text-align: center;">
                    <?php 
    Citruscart::load('CitruscartUrl', 'library.url');
    ?>
                    <label class="label label-warning"><?php 
    echo $item->products_count . " " . JText::_('COM_CITRUSCART_PRODUCTS');
    ?>
</label>
                    <br/>
                    <?php 
    $select_url = "index.php?option=com_citruscart&controller=categories&task=selectproducts&id=" . $item->category_id . "&tmpl=component";
    ?>
                    [<?php 
    echo CitruscartUrl::popup($select_url, JText::_('COM_CITRUSCART_SELECT_PRODUCTS'), array('update' => true));
    ?>
]
                </td>
				<td style="text-align: center;">
					<?php 
    echo CitruscartGrid::order($item->category_id);
    ?>
					<?php 
    echo CitruscartGrid::ordering($item->category_id, $item->ordering);
    ?>
				</td>
				<td style="text-align: center;">
					<?php 
    // echo CitruscartGrid::enable($item->category_enabled, $i, 'category_enabled.' );
    ?>
Example #21
0
echo CitruscartSelect::btbooleanlist('manufacturer_enabled', '', $row->manufacturer_enabled);
?>
					</td>
				</tr>
				<tr>
					<td style="width: 100px; text-align: right;" class="key">
						<?php 
echo JText::_('COM_CITRUSCART_CURRENT_IMAGE');
?>
:
					</td>
					<td>
						<?php 
jimport('joomla.filesystem.file');
if (!empty($row->manufacturer_image) && JFile::exists(Citruscart::getPath('manufacturers_images') . DS . $row->manufacturer_image)) {
    echo CitruscartUrl::popup(CitruscartHelperManufacturer::getImage($row->manufacturer_id, '', '', 'full', true), CitruscartHelperManufacturer::getImage($row->manufacturer_id), array('update' => false, 'img' => true));
}
?>
						<br />
						<input type="text" name="manufacturer_image" id="manufacturer_image" value="<?php 
echo $row->manufacturer_image;
?>
" size="48" maxlength="250" />
					</td>
				</tr>
				<tr>
					<td style="width: 100px; text-align: right;" class="key">
						<?php 
echo JText::_('COM_CITRUSCART_UPLOAD_NEW_IMAGE');
?>
:
if (empty($row->product_id)) {
    // doing a new product, so display a note
    ?>
                    <div class="note well">
                        <?php 
    echo JText::_('COM_CITRUSCART_CLICK_APPLY_TO_BE_ABLE_TO_ADD_ISSUES_TO_THE_PRODUCT');
    ?>
                    </div> <?php 
} else {
    Citruscart::load('CitruscartHelperSubscription', 'helpers.subscription');
    $next_issue = CitruscartHelperSubscription::getMarginalIssue($row->product_id);
    $last_issue = CitruscartHelperSubscription::getMarginalIssue($row->product_id, 'DESC');
    $num_issues = CitruscartHelperSubscription::getNumberIssues($row->product_id);
    ?>
 [<?php 
    echo CitruscartUrl::popup("index.php?option=com_citruscart&view=products&task=setissues&id=" . $row->product_id . "&tmpl=component", JText::_('COM_CITRUSCART_SET_ISSUES'));
    ?>
]<br /> <?php 
    if (isset($next_issue)) {
        echo '<b>' . JText::_('COM_CITRUSCART_NEXT_ISSUE_PUBLISHED') . ':</b> ' . JHTML::_('date', $next_issue->publishing_date, JText::_('DATE_FORMAT_LC4')) . '<br />';
    }
    if (isset($last_issue)) {
        echo '<b>' . JText::_('COM_CITRUSCART_LAST_ISSUE_PUBLISHED') . ':</b> ' . JHTML::_('date', $last_issue->publishing_date, JText::_('DATE_FORMAT_LC4')) . '<br />';
    }
    echo '<b>' . JText::_('COM_CITRUSCART_ISSUES_LEFT') . ':</b> ' . $num_issues;
    ?>
<br /> <?php 
}
?>
                </td>
            </tr>
Example #23
0
?>
<a name="citruscart-method"></a>

<div id="citruscart_checkout_pane">
<a name="citruscartRegistration" id="citruscartRegistration"></a>

<?php 
// login link
if (!$this->user->id) {
    ?>
	<div class="citruscart_checkout_method">
		<?php 
    $uri = JFactory::getURI();
    $return_link = base64_encode($uri->__toString());
    $asklink = "index.php?option=com_citruscart&view=checkout&task=registrationLink&tmpl=component&return=" . $return_link;
    $asktxt = CitruscartUrl::popup("{$asklink}.&tmpl=component", JText::_('COM_CITRUSCART_CLICK_HERE_TO_LOGIN'), array('width' => '490', 'height' => '320'));
    $asktxt = "<a class=\"citruscart-modal\" href='{$asklink}'>";
    $asktxt .= JText::_('COM_CITRUSCART_CLICK_HERE_TO_LOGIN');
    $asktxt .= "</a>";
    ?>
		[<?php 
    echo $asktxt;
    ?>
]
	</div>
<?php 
}
?>

<?php 
$form['action'] = 'index.php?option=com_citruscart&view=checkout';
Example #24
0
'" value="<?php 
echo JText::_('COM_CITRUSCART_EDIT_ADDRESSES');
?>
"/>
            </td>
            <td nowrap="nowrap" style="text-align: right; padding: 0px 5px;">
                <input class="btn btn-success" value="<?php 
echo JText::_('COM_CITRUSCART_RESEND_EMAIL_INVOICE');
?>
" onclick="document.getElementById('task').value='resend_email'; this.form.submit();" style="float: right;" type="button" />
            </td>
            <td nowrap="nowrap" style="text-align: right; padding: 0px 5px;">
                <?php 
$url = "index.php?option=com_citruscart&view=orders&task=print&tmpl=component&id=" . $row->order_id;
$text = JText::_('COM_CITRUSCART_PRINT_INVOICE');
echo CitruscartUrl::popup($url, $text, array('class' => 'btn btn-warning'));
?>
            </td>

        </tr>
    </table>

    <?php 
// fire plugin event here to enable extending the form
JDispatcher::getInstance()->trigger('onBeforeDisplayOrderView', array($row));
?>

	<table style="width: 100%;">
	<tr>
		<td style="width: 50%; vertical-align: top;">
Example #25
0
				<tr>
					<td width="100" align="right" class="key">
						<label for="eaventity_id">
						<?php 
echo JText::_('COM_CITRUSCART_ENTITY');
?>
:
						</label>
					</td>
					<td>
						<?php 
if ($row['eaventity_type']) {
    $allowed_types = array('products');
    if (in_array($row['eaventity_type'], $allowed_types)) {
        $url = JRoute::_("index.php?option=com_citruscart&controller=eavattributes&task=selectentities&tmpl=component&eaventity_type=" . $row['eaventity_type'] . "&id=" . $row['eavattribute_id']);
        echo CitruscartUrl::popup($url, JText::_('COM_CITRUSCART_SELECT_ENTITIES'));
    }
} else {
    ?>
							<div class="note well">
								<?php 
    echo JText::_('COM_CITRUSCART_CLICK_APPLY_TO_ADD_A_LINK_TO_AN_ENTITY_FOR_THIS_PRODUCT');
    ?>
							</div>
						<?php 
}
?>
					</td>
				</tr>
				<tr>
					<td width="100" align="right" class="key">
    // display lightbox link to manage categories
    ?>
    <tr>
        <td class="dsc-key"><?php 
    echo JText::_('COM_CITRUSCART_CATEGORIES');
    ?>
:</td>
        <td><?php 
    Citruscart::load('CitruscartHelperCategory', 'helpers.category');
    ?>
 <?php 
    Citruscart::load('CitruscartUrl', 'library.url');
    $options = array('update' => true);
    ?>
 [<?php 
    echo CitruscartUrl::popup("index.php?option=com_citruscart&view=products&task=selectcategories&id=" . $row->product_id . "&tmpl=component", JText::_('COM_CITRUSCART_SELECT_CATEGORIES'), $options);
    ?>
] <?php 
    $categories = $helper_product->getCategories($row->product_id);
    ?>
            <div id="current_categories">
                <?php 
    if ($categories) {
        foreach ($categories as $category) {
            ?>
                [<a href="<?php 
            echo "index.php?option=com_citruscart&view=products&task=selected_disable&id=" . $row->product_id . "&cid[]=" . $category . "&return=" . base64_encode("index.php?option=com_citruscart&view=products&task=edit&id=" . $row->product_id);
            ?>
"> <?php 
            echo JText::_('COM_CITRUSCART_REMOVE');
            ?>