This file contains 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
{var $key = $table ~ $delimeter ~ $filter} | |
<input type="hidden" name="{$filter}[]" value="" /> | |
<label for="mse2_{$key}_{$idx}" class="checkbox-label {$disabled}"> | |
<input type="checkbox" name="{$filter}[]" id="mse2_{$key}_{$idx}" value="{$value}" {$checked} {$disabled} | |
{('fi.' ~ $filter) | placeholder | FormItIsChecked : $value}> | |
<span class="checkmark"></span> | |
{$title} | |
</label>{*$num*} |
This file contains 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
/* | |
<input type="hidden" name="{$formID}_ip" value="{'!getIP' | snippet}" /> | |
*/ | |
<?php | |
if (!function_exists('getIp')) { | |
function getIp() { | |
$keys = [ | |
'HTTP_CLIENT_IP', | |
'HTTP_X_FORWARDED_FOR', | |
'REMOTE_ADDR' |
This file contains 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
<div class="mt-textbox"> | |
<p>Showing | |
<strong id="START">{$_modx->getPlaceholder('mse2_start_page')}</strong> – | |
<strong id="END">{$_modx->getPlaceholder('mf_limit')}</strong> of | |
<strong>{$_modx->getPlaceholder('mf_total')}</strong> results</p> | |
</div> | |
<script> | |
$(document).on('mse2_load', function(e, data) { | |
let page = data.data.page; |
This file contains 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
<script> | |
$(document).ready(function() { | |
miniShop2.Callbacks.add('Order.getcost.response.success', 'Order_submit_response_success', function(responce) { | |
var cost = responce.data['cost'], | |
min_price = {'price_config' | config}; | |
if (cost < min_price) { | |
miniShop2.Callbacks.add('Order.submit.before', 'Order_submit_before', function() { | |
miniShop2.Message.error('Недостаточная сумма заказа, заказ отправляется от ' + min_price + ' {'ms2_frontend_currency' | lexicon}!'); | |
$('#error_message').text('Недостаточная сумма заказа, заказ отправляется от ' + min_price + ' {'ms2_frontend_currency' | lexicon}!'); | |
return false; |
This file contains 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
{'!msProducts' | snippet : [ | |
'parents'=>$_modx->resource.id, | |
'leftJoin' => '{ "images": { "class":"msProductFile","alias":"images", "on": "images.product_id = msProduct.id AND images.path LIKE \'%/small/\'" }}', | |
'select' => '{ "images":"GROUP_CONCAT(images.url SEPARATOR \';;\') as images"}', | |
'limit'=>0, | |
'sortby'=>'menuindex', | |
'sortdir'=>'ASC', | |
'showLog'=>0, | |
'tpl'=>'@FILE chunks/item/product.tpl' | |
]} |
This file contains 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
<div class="mt-product1 mt-paddingbottom20 ms2_product"> | |
<form method="post" class="ms2_form"> | |
<input type="hidden" name="id" value="{$id}"> | |
<input type="hidden" name="count" value="1"> | |
<input type="hidden" name="options" value="[]"> | |
<div class="box"> | |
<div class="b1"> | |
<div class="b2"> | |
<a href="{$id | url}"> | |
{if $thumb?} |
This file contains 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).on('af_complete', function (event, response) { | |
$('#getAQuoteModal').modal('hide'); | |
if (response.success) { | |
$('#thanks').modal('show'); | |
let form = $(response.form[0]); | |
form.attr('action', '-%thks'); | |
let url = window.location.href; |
This file contains 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
jQuery(window).on('load', function() { | |
"use strict"; | |
history.pushState(null, '', '/?msorder'); | |
}); |
This file contains 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 | |
// строка 32,38,39,40 создаем поля в системных и прописываем там идентификаторы | |
// ini_set('display_errors', 1); | |
// ini_set('error_reporting', -1); | |
require_once MODX_CORE_PATH . 'components/minishop2/model/minishop2/mspaymenthandler.class.php'; | |
class TinkoffCredit extends msPaymentHandler implements msPaymentInterface{ | |
public $demo; |
This file contains 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 | |
// Id корня, глубина, контекст | |
$child = $modx->getChildIds(11, 10, array('context' => 'web')); | |
$q = $modx->newQuery('Ticket'); | |
$q->where(array( | |
'id:IN' => $child, | |
'published' => true, | |
'deleted' => false, | |
'searchable' => true, | |
)); |