This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.addEventListener("DOMContentLoaded", function(){ | |
var $=jQuery ; | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$str = ucfirst( $str ) ; | |
// ============ | |
/** | |
* Для керилицы | |
*/ | |
static function mb_ucasefirst($str) | |
{ | |
$str[0] = mb_strtoupper($str[0]); | |
return $str; | |
}#END FUNCTION |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Получить параметры способа оплаты | |
$paymentmethodModel = VmModel::getModel('paymentmethod'); | |
$paymentmethodData = $paymentmethodModel->getPayment($this->cart->virtuemart_paymentmethod_id) ; | |
if( isset ( $paymentmethodData->cost_percent_total ) ){ | |
$DATA->SUBTOTAL->PAYMENT_PARAM_DISCOUNT = $paymentmethodData->cost_percent_total ; | |
}else{ | |
$DATA->SUBTOTAL->PAYMENT_PARAM_DISCOUNT = false ; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// chrome.tabs.onUpdated | |
// Добавить слушателя события загрузки владки браузера | |
// info :{ | |
// status : "loading" || "complete" , | |
// favIconUrl : - is favIcon Url ( string ) , | |
// title : is - title txt ( string ) , | |
// } | |
chrome.tabs.onUpdated.addListener(function (tabId , info) { | |
console.log (info ) ; | |
if (info.status === 'complete') { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
plgVmConfirmedOrder ( $cart , $orderDetails ) // После создания заказа |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
echo JRoute::_('index.php?option=com_virtuemart&view=orders&layout=list' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function onBeforeCompileHead() { | |
if (!class_exists( 'VmConfig' )) require(JPATH_ROOT .'/administrator/components/com_virtuemart/helpers/config.php'); | |
VmConfig::loadConfig(); | |
$doc = JFactory::getDocument(); | |
$headData = $doc->getHeadData(); | |
unset ( $headData['styleSheets']['/components/com_virtuemart/assets/css/jquery.fancybox-1.3.4.css?vmver='.VM_JS_VER] ); | |
unset ( $headData['scripts']['/templates/gk_storefront/js/fancybox/jquery.fancybox-1.3.4.pack.js?vmver='.VM_JS_VER] ); | |
$doc->setHeadData($headData); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (!class_exists( 'VmConfig' )) require(JPATH_ROOT .'/administrator/components/com_virtuemart/helpers/config.php'); | |
VmConfig::loadConfig(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(!class_exists('VirtueMartCart')) require(VMPATH_SITE.DS.'helpers'.DS.'cart.php'); | |
$cart = VirtueMartCart::getCart(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$user = JFactory::getUser($uid) ; | |
// Авторизация пользователя | |
$user = JUser::getInstance( $uid ); |