コード例 #1
0
ファイル: optionselectj3.php プロジェクト: A-Bush/pprod
 protected function _getCurrentOptions($product_id)
 {
     $html = '';
     $db = JFactory::getDBO();
     $query = $db->getQuery(true);
     $query->select('po.product_option_id, po.option_id, po.required, po.manage_stock, o.option_unique_name, o.option_name, o.type');
     $query->from('#__k2store_product_options AS po');
     $query->join('LEFT', '#__k2store_options AS o ON po.option_id = o.option_id');
     $query->where('po.product_id=' . $product_id);
     $query->order('po.product_option_id');
     $db->setQuery($query);
     $pa_options = $db->loadObjectList();
     if (count($pa_options)) {
         foreach ($pa_options as $pa_option) {
             //	$link = 'index.php?option=com_k2store&view=products&task=deleteoptions&product_id='.$product_id.'&cid[]='.$pa_option->product_option_id.'&return='.base64_encode("index.php?option=com_k2&view=item&cid=".$product_id);
             $values_lnk = $html .= '<tr id="pao_current_option_' . $pa_option->product_option_id . '">';
             $html .= '<td>';
             $html .= '<strong>' . $pa_option->option_name . '</strong>';
             $html .= '&nbsp;&nbsp;<small>(' . $pa_option->option_unique_name . ')</small>';
             $html .= '&nbsp;&nbsp;<br />';
             $html .= '<small>' . JText::_('K2STORE_OPTION_TYPE') . ':&nbsp;' . JText::_('K2STORE_' . JString::strtoupper($pa_option->type)) . '</small>';
             if ($pa_option->type == 'select' || $pa_option->type == 'radio' || $pa_option->type == 'checkbox') {
                 $html .= '&nbsp;&nbsp;<br />';
                 $html .= K2StorePopup::popup("index.php?option=com_k2store&view=products&task=setproductoptionvalues&product_option_id=" . $pa_option->product_option_id . "&tmpl=component", JText::_("K2STORE_OPTION_SET_PRICE"), array());
             }
             $html .= '</td>';
             $html .= '<td>';
             $html .= $this->_getOptionRequired($pa_option->product_option_id, $pa_option->required);
             $html .= '</td>';
             if (($pa_option->type == 'select' || $pa_option->type == 'radio') && K2STORE_PRO == 1) {
                 $html .= '<td>';
                 $html .= $this->_getOptionStockManagement($pa_option->product_option_id, $pa_option->manage_stock);
                 $html .= '</td>';
             } else {
                 $html .= '<td>---</td>';
             }
             $html .= '<td>';
             $html .= '<span class="optionRemove" onClick="removePAOption(' . $pa_option->product_option_id . ')">X</span>';
             $html .= '</td>';
         }
     }
     return $html;
 }
コード例 #2
0
ファイル: default.php プロジェクト: A-Bush/pprod
    ?>
][special_price]" value="<?php 
    echo $product->special_price;
    ?>
" /> </td>
					</div>
					<?php 
    if ($this->params->get('enable_inventory', 0)) {
        ?>

					<td>
						<?php 
        if ($product->manage_stock) {
            ?>
							<?php 
            echo K2StorePopup::popup("index.php?option=com_k2store&view=products&task=setquantities&tmpl=component&product_id={$product->id}", JText::_('K2STORE_SET_QUANTITY'), array(0));
            ?>
						<?php 
        } else {
            ?>
							<small>
							<?php 
            echo JText::_('K2STORE_PRODUCTS_STOCK_DISABLED');
            ?>
							</small>
						<?php 
        }
        ?>
					</td>
					<?php 
    }
コード例 #3
0
ファイル: view.php プロジェクト: A-Bush/pprod
</dd>
			<?php 
}
?>

		<?php 
echo $selectableBase->getFormatedCustomFields($row, 'customfields', 'payment');
?>

		<dt></dt>
		<dd>
		<br />
		<?php 
$log_url = "index.php?option=com_k2store&view=orders&task=viewtxnlog&tmpl=component&id=" . @$row->id;
echo '<span class="btn">';
echo K2StorePopup::popup($log_url, JText::_('K2STORE_ORDER_TRANSACTION_LOG'));
echo '</span>';
?>
			</dd>
		</dl>
			<?php 
if (isset($order->event->K2StoreBeforeShippingDisplay)) {
    ?>
					<?php 
    echo $order->event->K2StoreBeforeShippingDisplay;
    ?>
			<?php 
}
?>
		<?php 
if (isset($this->shipping_info->ordershipping_type)) {
コード例 #4
0
ファイル: default.php プロジェクト: A-Bush/pprod
				<td style="text-align: left;">
                    <a href="<?php 
    echo $item->link;
    ?>
">
                        <?php 
    echo $item->shipping_method_name;
    ?>
                    </a>
                    <div class="shipping_rates">
                      	<?php 
    $id = JFactory::getApplication()->input->getInt('id', '0');
    ?>
                        <span style="float: right;">
                        [<?php 
    echo K2StorePopup::popup("index.php?option=com_k2store&view=shipping&task=view&id={$id}&shippingTask=setRates&tmpl=component&sid={$item->shipping_method_id}", JText::_('K2STORE_SHIPM_SET_RATES'));
    ?>
                      	 ]</span>
                        <?php 
    if ($shipping_method_type = K2StoreShipping::getType($item->shipping_method_type)) {
        echo "<b>" . JText::_('K2STORE_STANDARD_SHIPPING_TYPE') . "</b>: " . $shipping_method_type->title;
    }
    if ($item->subtotal_minimum > '0') {
        echo "<br/><b>" . JText::_('K2STORE_SHIPPING_METHODS_MINIMUM_SUBTOTAL_REQUIRED') . "</b>: " . K2StorePrices::number($item->subtotal_minimum);
    }
    if ($item->subtotal_maximum > '-1') {
        echo "<br/><b>" . JText::_('K2STORE_SHIPPING_METHODS_SUBTOTAL_MAX') . "</b>: " . K2StorePrices::number($item->subtotal_maximum);
    }
    ?>
                    </div>
				</td>
コード例 #5
0
ファイル: default.php プロジェクト: A-Bush/pprod
				</a>
				</span>
				<br/>
				<b><?php 
    echo JText::_('K2STORE_SHIPM_TYPE');
    ?>
</b>:
				<?php 
    $model = $this->getModel('shippingmethods');
    $row->shipping_method_type = $model->getShippingMethodType($row->shipping_method_type);
    echo $this->escape($row->shipping_method_type);
    ?>

				<span style="float:right">
					[<?php 
    echo K2StorePopup::popup("index.php?option=com_k2store&view=shippingmethods&task=setrates&id=" . $row->id . "&tmpl=component", JText::_("K2STORE_SHIPM_SET_RATES"));
    ?>
]
				</span>
			</td>

			<td align="center">
				<?php 
    echo $published;
    ?>
			</td>

		</tr>
		<?php 
    $k = 1 - $k;
}