DELETE
FROM `salesrule_coupon`
LEFT JOIN `salesrule_coupon` AS `t`
ON `t`.`code` = `salesrule_coupon`.`code` AND `t`.`coupon_id` < `salesrule_coupon`.`coupon_id`
WHERE `t`.`coupon_id` IS NOT NULL
jQuery(document).ready(function($){
$.fn.textToggle = function(cls, str) {
return this.each(function(i) {
$(this).click(function() {
var c = 0, el = $(cls).eq(i), arr = [str,el.text()];
return function() {
el.text(arr[c++ % arr.length]);
}
}());
})
};
$(function(){
$('.sh_nmr').textToggle(".sh_nmr","").click(function(e){e.stopPropagation();}).click();
$('.sh_nmr').textToggle(".num_hide","ХХХ").click(function(e){e.stopPropagation();}).click();
$('.click_number_header').on("click" , () => ga('send', 'event', 'click_telephone3', 'click', 'Click number header'));
});
});
<div class="click_number_header" >093-078-24<span class="num_hide">-55</span> <span class="sh_nmr" style = "font-size: 60%; text-decoration: underline;">показать</span></div>
<div class="click_number_header">003-078-88<span class="num_hide">-85</span> <span class="sh_nmr" style = "font-size: 60%; text-decoration: underline;">показать</span></div>
jQuery(document).ready(function($){
$.fn.textToggle = function(cls, str) {
return this.each(function(i) {
$(this).click(function() {
var c = 0, el = $(cls).eq(i), arr = [str,el.text()];
return function() {
el.text(arr[c++ % arr.length]);
}
}());
})
};
$(function(){
$('.sh_nmr').textToggle(".sh_nmr","").click();
$('.sh_nmr').textToggle(".num_hide","ХХХ").click();
});
$('.click_number_header').on("click" , () => ga('send', 'event', 'click_number_header321', 'click', 'Click number header'));
});
Для мадженты есть di.xml файл для этих целей, там пишешь какой на какой класс подменяется, а как в WP я не понимаю :(