Ejemplo n.º 1
0
 * @copyright Copyright (c)2014-17 Ramesh Elamathi / J2Store.org
 * @license GNU GPL v3 or later
 */
// No direct access
defined('_JEXEC') or die;
//pricing options
$pricing_calculator = J2Html::select()->clearState()->type('genericlist')->name($this->form_prefix . '[pricing_calculator]')->value($this->variant->pricing_calculator)->setPlaceHolders(array('standard' => JText::_('COM_J2STORE_PRODUCT_PRICING_CALCULATOR_STANDARD')))->getHtml();
?>

<div class="j2store-product-pricing">
	<div class="control-group">
		<?php 
echo J2Html::label(JText::_('J2STORE_PRODUCT_REGULAR_PRICE'), 'price', array('class' => 'control-label'));
?>
		<?php 
echo J2Html::price($this->form_prefix . '[price]', $this->variant->price, array('class' => 'input'));
?>
	</div>
	<div class="control-group">
		<?php 
echo J2Html::label(JText::_('J2STORE_PRODUCT_SET_ADVANCED_PRICING'), 'sale_price', array('class' => 'control-label'));
?>
		<!-- Link to advanced pricing options. Opens as a popup. -->
		<?php 
echo J2StorePopup::popup("index.php?option=com_j2store&view=products&task=setproductprice&variant_id=" . $this->variant->j2store_variant_id . "&layout=productpricing&tmpl=component", JText::_("J2STORE_PRODUCT_SET_PRICES"), array('class' => 'btn btn-success'));
?>
	</div>
	<div class="control-group">
		<?php 
echo J2Html::label(JText::_('J2STORE_PRODUCT_PRICING_CALCULATOR'), 'price_calculator', array('class' => 'control-label'));
?>
Ejemplo n.º 2
0
    ?>
						<?php 
    echo JText::_('J2STORE_QUANTITY_AND_ABOVE');
    ?>
					</td>
					<td>
						<?php 
    echo JHtml::_('select.genericlist', $this->groups, 'customer_group_id', array(), 'value', 'text', '');
    ?>
						<?php 
    //echo JHtmlAccess::level('customer_group_id', '', '', false);
    ?>
					</td>
					<td>
						<?php 
    echo J2Html::price('price', '', array('class' => 'input-small '));
    ?>

					</td>
					<td>
						<button class="btn btn-primary"
							onclick="document.getElementById('task').value='createproductprice'; document.adminForm.submit();">
							<?php 
    echo JText::_('J2STORE_PRODUCT_CREATE_PRICE');
    ?>
						</button>
					</td>
				</tr>
			</tbody>
		</table>
									</div>
									<div class="control-group">
										<?php 
        echo J2Html::label(JText::_('J2STORE_PRODUCT_UPC'), 'upc', array('class' => 'control-label'));
        ?>
										<?php 
        echo J2Html::text($prefix . '[upc]', $this->variant->upc, array('class' => 'input-small', 'id' => 'upc_' . $this->variant->j2store_variant_id));
        ?>
									</div>
								</div>
								<div class="control-group">
									<?php 
        echo J2Html::label(JText::_('J2STORE_PRODUCT_REGULAR_PRICE'), 'price', array('class' => 'control-label'));
        ?>
									<?php 
        echo J2Html::price($prefix . '[price]', $this->variant->price, array('class' => 'input-small', 'id' => 'price_' . $this->variant->j2store_variant_id));
        ?>
								</div>

								<div class="control-group">
									<?php 
        echo J2Html::label(JText::_('J2STORE_PRODUCT_SET_ADVANCED_PRICING'), 'sale_price', array('class' => 'control-label'));
        ?>
									<?php 
        $url = "index.php?option=com_j2store&view=products&task=setproductprice&variant_id=" . $this->variant->j2store_variant_id . "&layout=productpricing&tmpl=component";
        ?>
									<?php 
        echo J2StorePopup::popup($url, JText::_("J2STORE_PRODUCT_SET_PRICES"), array('class' => 'btn btn-success btn-small'));
        ?>
								</div>
								<div class="control-group">