예제 #1
0
파일: order.php 프로젝트: Shtier/digicom
?>
		</tbody>
	</table>


	<a href="<?php 
echo JRoute::_("index.php?option=com_digicom&view=downloads");
?>
" class="btn btn-success">
		<i class="icon-out"></i><?php 
echo JText::_('COM_DIGICOM_GO_DOWNLOAD');
?>
	</a>

	<a class="btn btn-info" target="_blank" href="<?php 
echo JRoute::_("index.php?option=com_digicom&view=order&layout=invoice&id=" . $order->id . "&tmpl=component");
?>
">
		<i class="icon-printer"></i> <?php 
echo JText::_('COM_DIGICOM_ORDER_PRINT');
?>
	</a>

	<?php 
DigiComSiteHelperDigicom::loadModules('digicom_footer', 'xhtml');
?>

</div>

<?php 
echo DigiComSiteHelperDigiCom::powered_by();
예제 #2
0
파일: digicom.php 프로젝트: Shtier/digicom
    public function getProductsForm($catid, $replace)
    {
        $db = JFactory::getDbo();
        $configs = $this->getConfigs();
        $sql = 'SELECT
					`p`.*
				FROM
					`#__digicom_products` AS `p`
				WHERE
					p.access = 1 and p.published = 1 AND
					`p`.`catid`=' . $catid . '
				ORDER BY `p`.`name`';
        //echo $sql;die;
        $db->setQuery($sql);
        $items = $db->loadObjectList();
        $productfields = array();
        if (!count($items)) {
            return false;
        }
        $html = '<ul class="list-unstyled unstyled">';
        foreach ($items as $item) {
            $html .= '<li class="col-md-4 span4">';
            $productid = $item->id;
            $onsubmit = "";
            $html .= '
				<div class="thumbnail">
					<div class="caption">
						<h3>' . JHTML::_('string.truncate', $item->name, 18) . '</h3>
						<p data-toggle="tooltip" title="' . htmlentities($item->description) . '">
							' . JHTML::_('string.truncate', $item->description, 28) . '
						</p>
			';
            $link = JUri::root() . "index.php";
            $html .= "<form id=\"prform" . $item->id . "\" name=\"prform\" method=\"post\" action=\"{$link}\"" . $onsubmit . ">";
            if (isset($replace['align'])) {
                $align = " align='" . $replace['align'] . "' ";
            } else {
                $align = "";
            }
            $html .= "<input name=\"qty\" type=\"hidden\" value=\"1\">";
            $html .= "\r\n\t\t\t\t<input name=\"pid\" type=\"hidden\" id=\"product_id\" value=\"" . $item->id . "\">\r\n\t\t\t\t<input name=\"cid\" type=\"hidden\" value=\"" . $catid . "\">\r\n\t\t\t\t<input type=\"hidden\" name=\"view\" value=\"cart\"/>\r\n\t\t\t\t<input type=\"hidden\" name=\"task\" value=\"cart.add\"/>\r\n\t\t\t\t<input type=\"hidden\" name=\"option\" value=\"com_digicom\"/>\r\n\t\t\t\t<input type=\"hidden\" name=\"from_add_plugin\" value=\"1\"/>\r\n\t\t\t";
            $html .= '
					<button type="submit" role="button" name="Button" class="btn btn-default btn-block">
			';
            if ($item->price) {
                $html .= DigiComSiteHelperDigicom::format_price2($item->price, $configs->get('currency'), true, $configs) . ' | ';
            }
            $html .= '
						' . JText::_("PLG_CONTENT_DIGICOM_ADD_TO_CART_BTN_LBL") . '</button>
					</div>
				</div>
			';
            $html .= "</form>";
            $html .= '</li>';
        }
        $html .= '</ul>';
        return $html;
    }
예제 #3
0
파일: product.php 프로젝트: Shtier/digicom
    }
    ?>

						</div>
					</div>
					<?php 
}
?>

				</div>
			</div>
			<input type="hidden" name="option" value="com_digicom"/>
			<input type="hidden" name="view" value="cart"/>
			<input type="hidden" name="task" value="cart.add"/>
			<input type="hidden" name="pid" value="<?php 
echo $this->item->id;
?>
"/>
			<input type="hidden" name="cid" value="<?php 
echo $this->item->catid;
?>
"/>
		</form>


		<?php 
echo DigiComSiteHelperDigicom::powered_by();
?>
	</div>
</div>
예제 #4
0
파일: cart.php 프로젝트: Shtier/digicom
				<p><strong><?php 
        echo JText::_('COM_DIGICOM_PAYMENT_METHOD');
        ?>
</strong></p>
					<?php 
        $button_value = "COM_DIGICOM_CHECKOUT";
        $onclick = "if(jQuery('#processor').val() == ''){ ShowPaymentAlert(); return false; }";
        $onclick .= "jQuery('#returnpage').val('checkout'); jQuery('#type_button').val('checkout');";
        if ($user->id == 0 || $this->customer->_customer->country == "") {
            $button_value = "COM_DIGICOM_CONTINUE";
        }
        $onclick .= "jQuery('#cart_form').submit();";
        ?>

					<?php 
        echo DigiComSiteHelperDigicom::getPaymentPlugins($configs);
        ?>

					<div id="html-container"></div>
					<button type="button" class="btn btn-warning" style="float:right;margin-top:10px;" onclick="<?php 
        echo $onclick;
        ?>
 "><?php 
        echo JText::_($button_value);
        ?>
 <i class="ico-ok-sign"></i></button>
				</div>
			</div>
		<?php 
    }
    ?>