Exemplo n.º 1
0
 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
*/
/** ensure this file is being included by a parent file */
defined('_JEXEC') or die('Restricted access');
Tienda::load('TiendaHelperBase', 'helpers._base');
Tienda::load('TiendaSelect', 'library.select');
JTable::addIncludePath(JPATH_ADMINISTRATOR . '/components/com_tienda/tables');
$helper = TiendaHelperBase::getInstance();
$url = JRoute::_('index.php?option=com_tienda&view=products&task=setCurrency&return=' . base64_encode(JURI::getInstance()->toString()), false);
// Check the currently selected currency
$selected = TiendaHelperBase::getSessionVariable('currency_id', Tienda::getInstance()->get('default_currencyid', 1));
?>

<div id="currency">
    <form action="<?php 
echo $url;
?>
" method="post" name="currencySwitch">
        <?php 
echo JText::_('COM_TIENDA_SELECT_CURRENCY') . ': ';
?>
        <?php 
$attribs = array('onChange' => 'document.currencySwitch.submit(); ');
?>
        <?php 
echo TiendaSelect::currency($selected, 'currency_id', $attribs);
?>
 
    </form>
</div>
  
Exemplo n.º 2
0
echo $this->row->get('date_format', '%a, %d %b %Y, %I:%M%p');
?>
" type="text" size="40" />
                                                </td>
                                                <td><?php 
echo JText::_('COM_TIENDA_CONFIG_SET_DATE_FORMAT');
?>
                                                </td>
                                            </tr>
                                            <tr>
                                                <th style="width: 25%;"><?php 
echo JText::_('COM_TIENDA_SELECT_DEFAULT_CURRENCY_FOR_DB_VALUES');
?>
                                                </th>
                                                <td><?php 
echo TiendaSelect::currency($this->row->get('default_currencyid', '1'), 'default_currencyid');
?>
                                                </td>
                                                <td><?php 
echo JText::_('COM_TIENDA_CONFIG_DEFAULT_CURRENCY');
?>
                                                </td>
                                            </tr>
                                            <tr>
                                                <th style="width: 25%;"><?php 
echo JText::_('COM_TIENDA_AUTO_UPDATE_EXCHANGE_RATES');
?>
                                                </th>
                                                <td><?php 
echo TiendaSelect::btbooleanlist('currency_exchange_autoupdate', 'class="inputbox"', $this->row->get('currency_exchange_autoupdate', '1'));
?>
Exemplo n.º 3
0
" size="10" maxlength="250" />
                    </td>
                </tr>
                <tr>
                    <td class="key hasTip" title="<?php 
echo JText::_('COM_TIENDA_COUPON_CURRENCY') . '::' . JText::_('COM_TIENDA_COUPON_CURRENCY_TIP');
?>
" style="width: 125px; text-align: right;">
                        <?php 
echo JText::_('COM_TIENDA_CURRENCY');
?>
:
                    </td>
                    <td>
                        <?php 
echo TiendaSelect::currency(@$row->currency_id, 'currency_id');
?>
                    </td>
                </tr>
                <tr>
                    <td style="width: 125px; text-align: right;" class="key">
                        <?php 
echo JText::_('COM_TIENDA_VALUE_TYPE');
?>
:
                    </td>
                    <td>
                        <?php 
echo TiendaSelect::btbooleanlist('coupon_value_type', '', @$row->coupon_value_type, 'COM_TIENDA_PERCENTAGE', 'COM_TIENDA_FLAT_RATE');
?>
                    </td>
Exemplo n.º 4
0
echo JText::_('COM_TIENDA_GENERAL_INFORMATION');
?>
</th>
           </tr>
        </thead>
        <tbody>
            <tr>
                <th style="width: 100px;" class="key">
                     <?php 
echo JText::_('COM_TIENDA_ORDER_CURRENCY');
?>
:
                </th>
                <td>
                    <?php 
echo TiendaSelect::currency(@$row->order_currency_id, 'order_currency_id', '', 'order_currency_id', false);
?>
          
                </td>
            </tr>
            <tr>
                <th style="width: 100px;" class="key">
                     <?php 
echo JText::_('COM_TIENDA_CUSTOMER_INFORMATION');
?>
:
                </th>
                <td>
                    <?php 
echo $row->userinfo->name . ' [ ' . $row->user_id . ' ]';
?>