Esempio n. 1
0
    function fetchElement($name, $value, &$node, $control_name)
    {
        $output = '<span class="k2Note">' . JText::_('Click Apply to be able to create product attributes') . '</span>';
        $id = JRequest::getInt('cid');
        if ($id) {
            $K2Item = JTable::getInstance('K2Item', 'Table');
            $K2Item->load($id);
            $params = new K2Parameter($K2Item->plugins, JPATH_PLUGINS . '/k2/tienda.xml', 'tienda');
            $productID = $params->get('productID');
            if ($productID) {
                Tienda::load('TiendaUrl', 'library.url');
                Tienda::load("TiendaHelperProduct", 'helpers.product');
                $attributes = TiendaHelperProduct::getAttributes($productID);
                $output = '<div class="tiendaButton">' . TiendaUrl::popup("index.php?option=com_tienda&controller=products&task=setattributes&id=" . $productID . "&tmpl=component", JText::_('Set Attributes')) . '</div>';
                $output .= '<div>';
                foreach (@$attributes as $attribute) {
                    $output .= '
					<div>
						<span>' . $attribute->productattribute_name . '(' . $attribute->option_names_csv . ')</span>
						<div class="tiendaButton">' . TiendaUrl::popup("index.php?option=com_tienda&controller=products&task=setattributeoptions&id=" . $attribute->productattribute_id . "&tmpl=component", JText::_('Set Attribute Options')) . '</div>
						<div class="tiendaButton"><a href="' . "index.php?option=com_tienda&controller=productattributes&task=delete&cid[]=" . $attribute->productattribute_id . "&return=" . base64_encode("index.php?option=com_k2&view=item&cid=" . $id) . '">' . JText::_('Remove') . '</a></div>
					</div>';
                }
                $output .= '</div>';
            }
        }
        return $output;
    }
Esempio n. 2
0
    function fetchElement($name, $value, &$node, $control_name)
    {
        $output = '
		<input type="text" class="text_area" value="" id="pluginstiendaproductPrice" name="plugins[tiendaproductPrice]">
		<span class="k2Note">' . JText::_('Set Normal Price Now Special Prices Later') . '</span>
		';
        $id = JRequest::getInt('cid');
        if ($id) {
            $K2Item = JTable::getInstance('K2Item', 'Table');
            $K2Item->load($id);
            $params = new K2Parameter($K2Item->plugins, JPATH_PLUGINS . '/k2/tienda.xml', 'tienda');
            $productID = $params->get('productID');
            if ($productID) {
                Tienda::load('TiendaUrl', 'library.url');
                Tienda::load("TiendaHelperProduct", 'helpers.product');
                $prices = TiendaHelperProduct::getPrices($productID);
                if (count($prices)) {
                    $output = '<div class="tiendaButton">' . TiendaUrl::popup("index.php?option=com_tienda&controller=products&task=setprices&id=" . $productID . "&tmpl=component", JText::_('COM_TIENDA_SET_PRICES')) . '</div>';
                    $output .= '<div>';
                    foreach (@$prices as $price) {
                        $output .= '
						<div>
							<span>' . TiendaHelperBase::currency($price->product_price) . '</span>
							<div class="tiendaButton"><a href="' . $price->link_remove . '&return=' . base64_encode("index.php?option=com_k2&view=item&cid=" . $id) . '">' . JText::_('Remove') . '</a></div>
						</div>';
                    }
                    $output .= '</div>';
                }
            }
        }
        return $output;
    }
Esempio n. 3
0
    function fetchElement($name, $value, &$node, $control_name)
    {
        $output = '
		<span class="k2Note">' . JText::_('Click apply to be able to create product quantities') . '</span>
		';
        $id = JRequest::getInt('cid');
        if ($id) {
            $K2Item = JTable::getInstance('K2Item', 'Table');
            $K2Item->load($id);
            $params = new K2Parameter($K2Item->plugins, JPATH_PLUGINS . '/k2/tienda.xml', 'tienda');
            $productID = $params->get('productID');
            if ($productID) {
                $db = JFactory::getDBO();
                $query = "SELECT SUM(quantity) FROM #__tienda_productquantities WHERE product_id =" . (int) $productID;
                $db->setQuery($query);
                $quantities = $db->loadResult();
                Tienda::load('TiendaUrl', 'library.url');
                $output = '<span>' . $quantities . '</span><div class="tiendaButton">' . TiendaUrl::popup("index.php?option=com_tienda&controller=products&task=setquantities&id=" . $productID . "&tmpl=component", JText::_('COM_TIENDA_SET_QUANTITIES')) . '</div>';
            }
        }
        return $output;
    }
Esempio n. 4
0
    					</td>
    				</tr>
    				<tr>
    					<td style="width: 100px; text-align: right;" class="key">
    						<label for="category_full_image">
    						<?php 
echo JText::_('COM_TIENDA_CURRENT_IMAGE');
?>
:
    						</label>
    					</td>
    					<td>
    						<?php 
jimport('joomla.filesystem.file');
if (!empty($row->category_full_image) && JFile::exists(Tienda::getPath('categories_images') . DS . $row->category_full_image)) {
    echo TiendaUrl::popup(Tienda::getClass('TiendaHelperCategory', 'helpers.category')->getImage($row->category_id, '', '', 'full', true), TiendaHelperCategory::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_TIENDA_UPLOAD_NEW_IMAGE');
?>
Esempio n. 5
0
    ?>
    <!--base price-->
    <span id="product_price_<?php 
    echo $item->product_id;
    ?>
" class="product_price">
    	<?php 
    echo TiendaHelperProduct::dispayPriceWithTax($item->price, $vars->tax, $vars->show_tax);
    ?>
       	<!-- For UE States, we should let the admin choose to show (+19% vat) and (link to the shipping rates) -->       
    	<br />
    	<?php 
    if (Tienda::getInstance()->get('display_prices_with_shipping') && !empty($item->product_ships)) {
        ?>
    	<?php 
        echo TiendaUrl::popup(JRoute::_($vars->shipping_cost_link . '&tmpl=component'), JText::_('COM_TIENDA_LINK_TO_SHIPPING_COST'));
        ?>
    	<?php 
    }
    ?>
 
    </span>
    <?php 
}
?>
    
    <!--attribute options-->
    <div id='product_attributeoptions_<?php 
echo $item->product_id;
?>
' class="product_attributeoptions">
Esempio n. 6
0
}
?>

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

	<?php 
echo TiendaGrid::pagetooltip(JRequest::getVar('view'));
?>
	
   
    <?php 
$button = "<input type='button' class='btn btn-success pull-left' value='" . JText::_('COM_TIENDA_CREATE_NEW_USER') . "' />";
echo TiendaUrl::popup($create_user_link, $button, array('update' => true));
?>
     <?php 
echo TiendaGrid::searchform(@$state->filter, JText::_('COM_TIENDA_SEARCH'), JText::_('COM_TIENDA_RESET'));
?>
	

	<table class="table table-striped table-bordered" style="clear: both;">
		<thead>
            <tr>
                <th style="width: 5px;">
                	<?php 
echo JText::_('COM_TIENDA_NUM');
?>
                </th>
                <th style="width: 50px;">
Esempio n. 7
0
                		<?php 
        echo JText::_('COM_TIENDA_SHIPPINGS_ASSIGNED');
        ?>
                		<?php 
        $text = JText::_('COM_TIENDA_SELECT_SHIPPINGS');
        ?>
                	<?php 
    }
    ?>
:                	
                    <?php 
    echo TiendaHelperPlugin::countPlgtoGeozone($item);
    ?>
                    <br/>
                    [<?php 
    echo TiendaUrl::popup(@$item->link_plugins, $text, array('update' => true));
    ?>
]
                </td>
                <td style="text-align: center;">
                    <?php 
    echo $item->geozonetype_name;
    ?>
                </td>
            </tr>
            <?php 
    $i = $i + 1;
    $k = 1 - $k;
    ?>
            <?php 
}
Esempio n. 8
0
if (empty($row->product_id)) {
    // doing a new product, so display a note
    ?>
                    <div class="note well">
                        <?php 
    echo JText::_('COM_TIENDA_CLICK_APPLY_TO_BE_ABLE_TO_ADD_ISSUES_TO_THE_PRODUCT');
    ?>
                    </div> <?php 
} else {
    Tienda::load('TiendaHelperSubscription', 'helpers.subscription');
    $next_issue = TiendaHelperSubscription::getMarginalIssue($row->product_id);
    $last_issue = TiendaHelperSubscription::getMarginalIssue($row->product_id, 'DESC');
    $num_issues = TiendaHelperSubscription::getNumberIssues($row->product_id);
    ?>
 [<?php 
    echo TiendaUrl::popup("index.php?option=com_tienda&view=products&task=setissues&id=" . $row->product_id . "&tmpl=component", JText::_('COM_TIENDA_SET_ISSUES'));
    ?>
]<br /> <?php 
    if (isset($next_issue)) {
        echo '<b>' . JText::_('COM_TIENDA_NEXT_ISSUE_PUBLISHED') . ':</b> ' . JHTML::_('date', $next_issue->publishing_date, JText::_('DATE_FORMAT_LC4')) . '<br />';
    }
    if (isset($last_issue)) {
        echo '<b>' . JText::_('COM_TIENDA_LAST_ISSUE_PUBLISHED') . ':</b> ' . JHTML::_('date', $last_issue->publishing_date, JText::_('DATE_FORMAT_LC4')) . '<br />';
    }
    echo '<b>' . JText::_('COM_TIENDA_ISSUES_LEFT') . ':</b> ' . @$num_issues;
    ?>
<br /> <?php 
}
?>
                </td>
            </tr>
Esempio n. 9
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 TiendaUrl::popup($terms_link, JText::_('COM_TIENDA_ACCEPT_TERMS_AND_CONDITIONS'));
        } else {
            echo '<a href="' . $terms_link . '" target="_blank">' . JText::_('COM_TIENDA_ACCEPT_TERMS_AND_CONDITIONS') . '</a>';
        }
    } else {
        echo JText::_('COM_TIENDA_ACCEPT_TERMS_AND_CONDITIONS');
    }
    ?>
 
        </label>
        </fieldset>
        <?php 
}
?>

    <div id="opc-review-validation"></div>
Esempio n. 10
0
    // display lightbox link to manage categories
    ?>
    <tr>
        <td class="dsc-key"><?php 
    echo JText::_('COM_TIENDA_CATEGORIES');
    ?>
:</td>
        <td><?php 
    Tienda::load('TiendaHelperCategory', 'helpers.category');
    ?>
 <?php 
    Tienda::load('TiendaUrl', 'library.url');
    $options = array('update' => true);
    ?>
 [<?php 
    echo TiendaUrl::popup("index.php?option=com_tienda&view=products&task=selectcategories&id=" . $row->product_id . "&tmpl=component", JText::_('COM_TIENDA_SELECT_CATEGORIES'), $options);
    ?>
] <?php 
    $categories = $helper_product->getCategories($row->product_id);
    ?>
            <div id="current_categories">
                <?php 
    foreach (@$categories as $category) {
        ?>
                [<a href="<?php 
        echo "index.php?option=com_tienda&view=products&task=selected_disable&id=" . $row->product_id . "&cid[]=" . $category . "&return=" . base64_encode("index.php?option=com_tienda&view=products&task=edit&id=" . $row->product_id);
        ?>
"> <?php 
        echo JText::_('COM_TIENDA_REMOVE');
        ?>
                </a>]
Esempio n. 11
0
    echo $item->link;
    ?>
">
                        <?php 
    echo $item->shipping_method_name;
    ?>
                    </a>
                    <div class="shipping_rates">
                        <?php 
    Tienda::load('TiendaUrl', 'library.url');
    ?>
                        <?php 
    Tienda::load('TiendaHelperShipping', 'helpers.shipping');
    ?>
                        <span style="float: right;">[<?php 
    echo TiendaUrl::popup("index.php?option=com_tienda&controller=shippingmethods&task=setrates&id=" . $item->shipping_method_id . "&tmpl=component", "Set Rates");
    ?>
]</span>
                        <?php 
    if ($shipping_method_type = TiendaHelperShipping::getType($item->shipping_method_type)) {
        echo "<b>" . JText::_('COM_TIENDA_TYPE') . "</b>: " . $shipping_method_type->title;
    }
    if ($item->subtotal_minimum > '0') {
        echo "<br/><b>" . JText::_('COM_TIENDA_MINIMUM_ORDER_REQUIRED') . "</b>: " . TiendaHelperBase::currency($item->subtotal_minimum);
    }
    if ($item->subtotal_maximum > '-1') {
        echo "<br/><b>" . JText::_('COM_TIENDA_SHIPPING_METHODS_SUBTOTAL_MAX') . "</b>: " . TiendaHelperBase::currency($item->subtotal_maximum);
    }
    ?>
                    </div>
				</td>
Esempio n. 12
0
'>
				<td style="text-align: center;">
					<?php 
    echo TiendaGrid::checkedout($item, $i, 'productattribute_id');
    ?>
				</td>
				<td style="text-align: left;">
					<input type="text" name="name[<?php 
    echo $item->productattribute_id;
    ?>
]" value="<?php 
    echo $item->productattribute_name;
    ?>
" />
					[<?php 
    echo TiendaUrl::popup("index.php?option=com_tienda&controller=products&task=setattributeoptions&id=" . $item->productattribute_id . "&tmpl=component", JText::_('COM_TIENDA_SET_ATTRIBUTE_OPTIONS'));
    ?>
]
				</td>
				<td style="text-align: left;">
					<?php 
    if ($item->parent_productattributeoption_id) {
        Tienda::load('TiendaTableProductAttributeOptions', 'tables.productattributeoptions');
        $opt = JTable::getInstance('ProductAttributeOptions', 'TiendaTable');
        $opt->load($item->parent_productattributeoption_id);
        $attribute_id = $opt->productattribute_id;
    } else {
        $attribute_id = 0;
    }
    echo TiendaSelect::productattributes($attribute_id, $row->product_id, $item->productattribute_id, array('class' => 'inputbox', 'size' => '1'), null, $allowAny = true, $title = 'COM_TIENDA_NO_PARENT');
    ?>
Esempio n. 13
0
<div class="dsc-wrap product_gallery" id="product_gallery">
	<div id="product_gallery_header" class="tienda_header dsc-wrap">
		<span><?php 
    echo JText::_('COM_TIENDA_IMAGES');
    ?>
 </span>
	</div>
	<?php 
    $i = 1;
    foreach ($gallery_data->images as $image) {
        $src = $gallery_data->uri . $image;
        if (JFile::exists(Tienda::getPath('products_thumbs') . "/" . $image)) {
            $src = $gallery_data->uri . "thumbs/" . $image;
        }
        ?>
    	<div class="dsc-wrap product_gallery_thumb" id="product_gallery_thumb_<?php 
        echo $i;
        ?>
">
    	<?php 
        echo TiendaUrl::popup($gallery_data->uri . $image, '<img src="' . $src . '" alt="' . $gallery_data->product_name . '" />', array('update' => false, 'img' => true));
        ?>
    	</div>
    	<?php 
        $i++;
    }
    ?>
</div>
	<?php 
}
Esempio n. 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_TIENDA_EDIT_USER') . '</button>';
?>
		                        
		                        <div ><?php 
echo TiendaUrl::popup($url, $text, array('update' => true));
?>
</div>
		                    </td>  
						</tr>
						<tr>
							<td align="right" class="key" key">
		                        <label for="email">
		                        	<?php 
echo JText::_('COM_TIENDA_EMAIL');
?>
:
		                        </label>
	                    	</td>
	                    	<td>
	                        	<div class="name"><?php 
Esempio n. 15
0
            </div>              
        <?php 
}
?>
        
        <?php 
if ($this->defines->get('ask_question_enable', '1')) {
    ?>
        <div id="product_questions" class="dsc-wrap dsc-clear">
            <?php 
    $uri = JFactory::getURI();
    $return_link = base64_encode($uri->toString());
    $asklink = "index.php?option=com_tienda&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 = TiendaUrl::popup("{$asklink}.&tmpl=component", JText::_('COM_TIENDA_ASK_A_QUESTION_ABOUT_THIS_PRODUCT'), array('width' => '490', 'height' => "{$height}"));
    } else {
        $asktxt = "<a href='{$asklink}'>";
        $asktxt .= JText::_('COM_TIENDA_ASK_A_QUESTION_ABOUT_THIS_PRODUCT');
        $asktxt .= "</a>";
    }
    ?>
            [<?php 
    echo $asktxt;
    ?>
]
        </div>   
        <?php 
}
?>
        
Esempio n. 16
0
</div>

<?php 
if ($menu = TiendaMenu::getInstance()) {
    $menu->display();
}
?>
<div style="float: right;">
<?php 
if ($row->user_id > 0) {
    $url = JRoute::_("index.php?option=com_tienda&view=orders&task=print&tmpl=component&id=" . @$row->order_id);
} else {
    $url = JRoute::_("index.php?option=com_tienda&view=orders&task=print&tmpl=component&id=" . @$row->order_id) . '&h=' . $row->order_hash;
}
$text = JText::_('COM_TIENDA_PRINT_INVOICE');
echo TiendaUrl::popup($url, $text);
?>
</div>
<?php 
echo "<< <a href='" . JRoute::_("index.php?option=com_tienda&view=orders") . "'>" . JText::_('COM_TIENDA_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_TIENDA_ORDER_INFORMATION');
Esempio n. 17
0
				<tr>
					<td width="100" align="right" class="key">
						<label for="eaventity_id">
						<?php 
echo JText::_('COM_TIENDA_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_tienda&controller=eavattributes&task=selectentities&tmpl=component&eaventity_type=" . @$row->eaventity_type . "&id=" . @$row->eavattribute_id);
        echo TiendaUrl::popup($url, JText::_('COM_TIENDA_SELECT_ENTITIES'));
    }
} else {
    ?>
							<div class="note well">
								<?php 
    echo JText::_('COM_TIENDA_CLICK_APPLY_TO_ADD_A_LINK_TO_AN_ENTITY_FOR_THIS_PRODUCT');
    ?>
							</div>
						<?php 
}
?>
					</td>
				</tr>
				<tr>
					<td width="100" align="right" class="key">
Esempio n. 18
0
    foreach ($items as $item) {
        $qty = $qty + $item->orderitem_quantity;
    }
    $html .= '<span class="qty">' . $qty . '</span> ';
    $html .= $qty == 1 ? JText::_('COM_TIENDA_ITEM') : JText::_('COM_TIENDA_ITEMS');
} elseif ($display_null == '1') {
    $text = JText::_($null_text);
    $html .= $text;
}
$html .= '</span>';
$html .= '<span class="CartTotal">' . JText::_('COM_TIENDA_TOTAL') . ':<span>' . TiendaHelperBase::currency($orderTable->order_total) . '</span> ' . '</span> ';
$html .= '<span class="CartView">';
if ($params->get('display_lightbox') == '1') {
    $lightbox_attribs = array();
    $lightbox['update'] = false;
    if ($lightbox_width = Tienda::getInstance()->get('lightbox_width')) {
        $lightbox_attribs['width'] = $lightbox_width;
    }
    $html .= TiendaUrl::popup("index.php?option=com_tienda&view=carts&task=confirmAdd&tmpl=component", JText::_('COM_TIENDA_VIEW_YOUR_CART'), $lightbox_attribs);
} else {
    $html .= '<a id="cartLink" href="' . JRoute::_("index.php?option=com_tienda&view=carts") . '">' . JText::_('COM_TIENDA_VIEW_YOUR_CART') . '</a>';
}
$html .= '</span>';
$html .= '<span class="CartCheckout">' . '<a id="checkoutLink" href="' . JRoute::_("index.php?option=com_tienda&view=checkout") . '">' . JText::_('COM_TIENDA_CHECKOUT') . '</a>' . '</span>';
$html .= '<div class="reset"></div>';
if ($ajax) {
    $mainframe->setUserState('mod_usercart.isAjax', '0');
} else {
    $html .= '</div>';
}
echo $html;
Esempio n. 19
0
    } else {
        // display lightbox link to manage quantities
        ?>
            <tr>
                <td class="dsc-key"><?php 
        echo JText::_('COM_TIENDA_PRODUCT_QUANTITIES');
        ?>
:</td>
                <td><?php 
        echo $row->product_quantity;
        echo "<br/>";
        Tienda::load('TiendaUrl', 'library.url');
        $options = array('update' => true);
        ?>
 [<?php 
        echo TiendaUrl::popup("index.php?option=com_tienda&view=products&task=setquantities&id=" . $row->product_id . "&tmpl=component", JText::_('COM_TIENDA_SET_QUANTITIES'), $options);
        ?>
]</td>
            </tr>
            <?php 
    }
}
?>
            <tr>
                <td title="<?php 
echo JText::_('COM_TIENDA_PURCHASE_QUANTITY_RESTRICTION') . '::' . JText::_('COM_TIENDA_PURCHASE_QUANTITY_RESTRICTION_TIP');
?>
" class="dsc-key hasTip"><?php 
echo JText::_('COM_TIENDA_PURCHASE_QUANTITY_RESTRICTION');
?>
:</td>
Esempio n. 20
0
    ?>
');
    </script>
    <?php 
}
?>
<div id="gallery">
	<table border="0">
		<tr>
			
			<?php 
foreach ($images as $i) {
    ?>
				<td>
				<?php 
    echo TiendaUrl::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_tienda&controller=products&task=deleteImage&product_id=<?php 
    echo $product_id;
Esempio n. 21
0
    ?>
">
                        <?php 
    echo $item->shipping_method_name;
    ?>
                    </a>
                    <div class="shipping_rates">
                        <?php 
    Tienda::load('TiendaUrl', 'library.url');
    ?>
                        <?php 
    Tienda::load('TiendaHelperShipping', 'helpers.shipping');
    $id = JRequest::getInt('id', '0');
    ?>
                        <span style="float: right;">[<?php 
    echo TiendaUrl::popup("index.php?option=com_tienda&view=shipping&task=view&id={$id}&shippingTask=setRates&tmpl=component&sid={$item->shipping_method_id}", JText::_('Set Rates'));
    ?>
]</span>
                        <?php 
    if ($shipping_method_type = TiendaHelperShipping::getType($item->shipping_method_type)) {
        echo "<b>" . JText::_('COM_TIENDA_TYPE') . "</b>: " . $shipping_method_type->title;
    }
    if ($item->subtotal_minimum > '0') {
        echo "<br/><b>" . JText::_('COM_TIENDA_MINIMUM_ORDER_REQUIRED') . "</b>: " . TiendaHelperBase::currency($item->subtotal_minimum);
    }
    if ($item->subtotal_maximum > '-1') {
        echo "<br/><b>" . JText::_('COM_TIENDA_SHIPPING_METHODS_SUBTOTAL_MAX') . "</b>: " . TiendaHelperBase::currency($item->subtotal_maximum);
    }
    ?>
                    </div>
				</td>
Esempio n. 22
0
					</a>
				</td>
				<td style="text-align: left;">
						<?php 
    echo JText::_($item->eaventity_type);
    ?>
				</td>
				<td>
						<?php 
    echo $item->entity_count . ' ' . JText::_($item->eaventity_type);
    ?>
						<?php 
    $select_url = "index.php?option=com_tienda&controller=eavattributes&task=selectentities&tmpl=component&eaventity_type=" . @$item->eaventity_type . "&id=" . @$item->eavattribute_id;
    ?>
                    [<?php 
    echo TiendaUrl::popup($select_url, JText::_('COM_TIENDA_SELECT_ENTITIES'), array('update' => true));
    ?>
]				
				</td>
                <td style="text-align: center;">
                    <?php 
    echo TiendaGrid::order($item->eavattribute_id);
    ?>
                    <?php 
    echo TiendaGrid::ordering($item->eavattribute_id, $item->ordering);
    ?>
                </td>
                <td style="text-align: center;">
                    <?php 
    echo TiendaGrid::enable($item->enabled, $i, 'enabled.');
    ?>
Esempio n. 23
0
:</span>
				<input type="text" name="product_qty" value="1" size="5" />
			</div>

			<input type="hidden" name="product_id" value="<?php 
echo $product->product_id;
?>
" size="5" />
			<?php 
$url = "index.php?option=com_tienda&format=raw&controller=carts&task=addToCart&productid=" . $product->product_id;
?>
			<?php 
$onclick = 'tiendaDoTask(\'' . $url . '\', \'tiendaUserShoppingCart\', document.adminForm);';
?>
			<?php 
$text = "<img class='addcart' src='" . Tienda::getUrl('images') . "addcart.png' alt='" . JText::_('COM_TIENDA_ADD_TO_CART') . "' onclick=\"{$onclick}\" />";
?>
			<?php 
$lightbox_attribs = array();
$lightbox['update'] = false;
if ($lightbox_width = Tienda::getInstance()->get('lightbox_width')) {
    $lightbox_attribs['width'] = $lightbox_width;
}
?>
			<?php 
echo TiendaUrl::popup("index.php?option=com_tienda&view=carts&task=confirmAdd&tmpl=component", $text, $lightbox_attribs);
?>
		</form>
	</div>
</div>
Esempio n. 24
0
            <div class="reset"></div>
            <div class="product_gallery">
                <div id="product_gallery_header" class="tienda_header">
                    <span><?php 
        echo JText::_('COM_TIENDA_IMAGES');
        ?>
</span>
                </div>
                <?php 
        $uri = TiendaHelperProduct::getUriFromPath($path);
        foreach ($images as $image) {
            ?>
                    <div class="subcategory">
                        <div class="subcategory_thumb">
                            <?php 
            echo TiendaUrl::popup($uri . $image, '<img src="' . $uri . "thumbs/" . $image . '" />', array('update' => false, 'img' => true));
            ?>
                        </div>
                    </div>
                    <?php 
        }
        ?>
                <div class="reset"></div>
            </div>
            <?php 
    }
    ?>
        <?php 
}
?>
        <div class="reset"></div>
Esempio n. 25
0
        <h3>
            <?php 
echo JText::_('COM_TIENDA_SELECT_SHIPPING_AND_BILLING_ADDRESSES');
?>
        </h3>

        <table>
        <tr>
            <td colspan="2">
                <div class='note'>
	                <?php 
$text = JText::_('COM_TIENDA_CLICK_HERE_TO_MANAGE_YOUR_STORED_ADDRESSES') . ".";
?>
	                <?php 
echo TiendaUrl::popup("index.php?option=com_tienda&view=addresses&tmpl=component", $text, array('update' => true));
?>
                    <?php 
echo JText::_('COM_TIENDA_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_TIENDA_BILLING_ADDRESS');
Esempio n. 26
0
	      	<?php 
    echo TiendaSelect::booleans($item->is_blank, 'blank[' . $item->productattributeoption_id . ']', array('class' => 'inputbox', 'size' => '1'), null, false, 'Select State', 'Yes', 'No');
    ?>
				</td>
				<td style="text-align: center;">
					<input type="text" name="ordering[<?php 
    echo $item->productattributeoption_id;
    ?>
]" value="<?php 
    echo $item->ordering;
    ?>
" size="10" class="input-tiny" />
				</td>
				<td style="text-align: center;">
					[<?php 
    echo TiendaUrl::popup("index.php?option=com_tienda&controller=products&task=setattributeoptionvalues&id=" . $item->productattributeoption_id . "&tmpl=component", JText::_('COM_TIENDA_SET_VALUES'));
    ?>
]
				</td>
				<td style="text-align: center;">
					[<a href="index.php?option=com_tienda&controller=productattributeoptions&task=delete&cid[]=<?php 
    echo $item->productattributeoption_id;
    ?>
&return=<?php 
    echo base64_encode("index.php?option=com_tienda&controller=products&task=setattributeoptions&id={$row->productattribute_id}&tmpl=component");
    ?>
">
						<?php 
    echo JText::_('COM_TIENDA_DELETE_OPTION');
    ?>
	
Esempio n. 27
0
?>
<a name="tienda-method"></a> 

<div id="tienda_checkout_pane">
<a name="tiendaRegistration" id="tiendaRegistration"></a>

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

<form action="<?php 
echo JRoute::_(@$form['action']);
Esempio n. 28
0
 id="per_product">
                    <td style="width: 125px; text-align: right;" class="key">
                        <?php 
echo JText::_('COM_TIENDA_SELECT_PRODUCTS');
?>
:
                    </td>
                    <td>
                    	<?php 
if (@$row->coupon_id) {
    ?>
                        <?php 
    $select_url = "index.php?option=com_tienda&controller=coupons&task=selectproducts&id=" . $row->coupon_id . "&tmpl=component&hidemainmenu=1";
    ?>
                    	<?php 
    echo TiendaUrl::popup($select_url, JText::_('COM_TIENDA_SELECT_PRODUCTS'));
    ?>
                    	<?php 
} else {
    ?>
                    		<div class="note well">
                    		<?php 
    echo JText::_('COM_TIENDA_CLICK_THE_APPLY_BUTTON_TO_ADD_PRODUCTS_TO_THIS_COUPON');
    ?>
                			</div>
                    		<?php 
}
?>
                    </td>
                </tr>                                
                <tr>
Esempio n. 29
0
					[<?php 
    echo TiendaUrl::popup("index.php?option=com_tienda&controller=products&task=setprices&id=" . $item->product_id . "&tmpl=component", JText::_('COM_TIENDA_SET_PRICES'), array('update' => true));
    ?>
]
				</td>
				<td style="text-align: center;">
					
					<?php 
    if (!isset($item->product_check_inventory)) {
        echo JText::_('COM_TIENDA_CHECK_PRODUCT_INVENTORY_DISABLED');
    } else {
        echo (int) $item->product_quantity;
        ?>
                    <br/>
                    [<?php 
        echo TiendaUrl::popup("index.php?option=com_tienda&controller=products&task=setquantities&id=" . $item->product_id . "&tmpl=component", JText::_('COM_TIENDA_SET_QUANTITIES'), array('update' => true));
        ?>
]
                    
                    <?php 
    }
    ?>
				</td>
                <td style="text-align: center;">
                    <?php 
    echo TiendaGrid::order($item->product_id);
    ?>
                    <?php 
    echo TiendaGrid::ordering($item->product_id, $item->ordering);
    ?>
                </td>
Esempio n. 30
0
echo TiendaSelect::btbooleanlist('manufacturer_enabled', '', @$row->manufacturer_enabled);
?>
					</td>
				</tr>
				<tr>
					<td style="width: 100px; text-align: right;" class="key">
						<?php 
echo JText::_('COM_TIENDA_CURRENT_IMAGE');
?>
:
					</td>
					<td>
						<?php 
jimport('joomla.filesystem.file');
if (!empty($row->manufacturer_image) && JFile::exists(Tienda::getPath('manufacturers_images') . DS . $row->manufacturer_image)) {
    echo TiendaUrl::popup(TiendaHelperManufacturer::getImage($row->manufacturer_id, '', '', 'full', true), TiendaHelperManufacturer::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_TIENDA_UPLOAD_NEW_IMAGE');
?>
: