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
SELECT | |
MIN(`price_tmp`) AS `p_min`, | |
MAX(`price_tmp`) AS `p_max` | |
FROM | |
( | |
SELECT | |
CASE WHEN cena1 IS NOT NULL THEN cena1 WHEN opt IS NOT NULL THEN opt ELSE price_tmp END AS price_tmp | |
FROM | |
( | |
SELECT |
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 | |
/* | |
* тестова функція WC для відображення адреси замовлення | |
* | |
*/ | |
function tscf_wc_shipping_address_function($list, $order_id){ | |
$order = wc_get_order( $order_id); |
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
<?xml version="1.0"?> | |
<feed xmlns:g="http://base.google.com/ns/1.0" xmlns="http://www.w3.org/2005/Atom"> | |
<title>Оздоровча cкандінавская ходьба</title> | |
<link href="[[~1?scheme=`full`]]uk" rel="alternate" type="text/html"/> | |
<description>[[*description:cdata]]</description> | |
[[!msProducts? | |
&includeContent=`1` | |
&parents=`89` | |
&limit=`999` | |
&includeTVs=`img` |
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 | |
// если на этой странице контент не является объектом "Article", то завершаем работу (на сайте статьи имеют шаблон с id = 2) | |
if ($modx->resource->get('template') !== 7) { | |
return; | |
} | |
// URL сайта | |
$siteUrl = $modx->getOption('site_url'); //$modx->getOption('http_host'); //$modx->getOption('site_url'); | |
// id страницы | |
$id = $modx->resource->get('id'); |
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 type="application/ld+json"> | |
{ | |
"@context": "https://schema.org/", | |
"@type": "Product", | |
"name": "[[*pagetitle]]", | |
"image": "[[*image]]", | |
"description": "[[*introtext:strip_tags:escape:notags]]", | |
"sku": "[[+id]]", | |
"brand": { | |
"@type": "Brand", |
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 | |
/** | |
* Send message from change status | |
*/ | |
add_action('woocommerce_order_status_changed',function ( $order_id, $old_status, $new_status, $order){ | |
global $Telsender; | |
if ($new_status == 'processing'){ | |
$text = sprintf('%s - order_status_changed',$new_status); | |
$Telsender->telegram->SendMesage($text); |
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 | |
/** | |
* Telsender WC status name | |
* @param $list | |
* @param $order_id | |
* @return mixed | |
*/ | |
function telsender_status_translate($list, $order_id){ | |
$order = wc_get_order( $order_id ); |
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
[data-seo-name="3-shirina-sm"], | |
[data-seo-name="9-dovzhina-sm"] { | |
display: inline-flex; | |
width: 49%; | |
flex-direction: row-reverse; | |
flex-wrap: wrap; | |
padding: 5px!important; | |
} | |
[data-seo-name="3-shirina-sm"] .mfilter-heading-text, |
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 | |
function tsm_get_extended_valid_elements() { | |
$elements = array( | |
'@' => array( | |
'id', | |
'class', | |
'style', | |
'title', | |
'itemscope', | |
'itemtype', |
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
/** | |
* @param $list | |
* @param $order_id | |
* @return mixed | |
*/ | |
function user_data_function($list, $order_id){ | |
$user_id = get_current_user_id(); | |
if ($user_id){ |
NewerOlder