Artyom
Forum Replies Created
-
Forum: Plugins
In reply to: [Geolocation IP Detection] How does the plugin work with FastCGI cache?I added this script to js file:
jQuery(document).ready(function($) { $.ajax({ url: '/wp-admin/admin-ajax.php', method: 'GET', data: { action: 'geoip_detect2_get_info_from_current_ip', }, success: function(response) { var country = response.country.names.en; var isoCode = response.country.iso_code; console.log('Country: ' + country); console.log('ISO Code: ' + isoCode); // Make an AJAX request to a separate PHP script $.ajax({ url: '/wp-admin/admin-ajax.php', method: 'POST', data: { url: '/wp-content/themes/bethub/inc/product_layout/side_block.php', country: country, isoCode: isoCode } }); }, error: function(xhr, status, error) { // Handle any errors that occur during the AJAX request console.error(error); } }); });
In
side_block.php
I am calling values:$country = $_POST['country']; $isoCode = $_POST['isoCode']; echo 'Values received: ' . $country . ', ' . $isoCode;
But values are empty. What am I doing wrong?
- This reply was modified 1 year, 5 months ago by Artyom.
Forum: Plugins
In reply to: [Geolocation IP Detection] How does the plugin work with FastCGI cache?Maybe there is a function similar to
geoip_detect2_get_info_from_current_ip
with ajax?To clarify, I want to swap the string in row with the columns in the chart.
Forum: Plugins
In reply to: [Comments - wpDiscuz] Merge comment formStandard wp comments form working right, but with redirect after submit button (without ajax)
Forum: Plugins
In reply to: [Comments - wpDiscuz] Merge comment formThanks you for answer. But I’m not sure I get it. I added this function woo_comments(); in functions.php. And call in product template. And added
<?php add_action('wp_enqueue_scripts', 'woo_comments', 5); ?>
in product template. No result.Forum: Plugins
In reply to: [Comments - wpDiscuz] Merge comment formHey! Its almost working.
I added comment form from the post but when I adding new comment from product page to this form, comment not adding to post ID. Comment still adding to product page (but I got rid of woo-tab). Hope I clear explain. Maybe need to disable comment form on product page? But when I uncheck product in the wpDiscuz form or in the Woocommerce->product->review form not displaying.function woo_comments(){ global $obzor_id; $args = array( 'p' => $obzor_id // ID ); $qry = new WP_Query($args); if ($qry->have_posts()) { while ($qry->have_posts()) { $qry->the_post(); comments_template(); } } wp_reset_postdata(); }
- This reply was modified 3 years, 5 months ago by Artyom.
Forum: Plugins
In reply to: [Cyr-To-Lat] Как убрать кавычки?Спасибо!!!
Forum: Plugins
In reply to: [Cyr-To-Lat] Как убрать кавычки?Язык сайта русский. В тайтл в вукомерц часто приходится вставлять двойные кавычки ” . И транслитерация происходит вместе с ними. Как их убрать от туда, не редактируя вручную?
Hi @wpmudevsupport12 There is conflict with Popup Maker Plugin for some reason
Forum: Plugins
In reply to: [Cyr-To-Lat] Problem after update to 4.5.1Тоже самое
Forum: Plugins
In reply to: [Comments - wpDiscuz] Woocommerce compatibilityThank you for quick reply @gvectorssupport. Too bad. I hope at further version you will implement this feature. Because other reviews plugin already have reply button.
- This reply was modified 4 years, 4 months ago by Artyom.
Forum: Plugins
In reply to: [Autoptimize] Conflict with FacetwpWorking! Thank you for help and plugin!
Forum: Plugins
In reply to: [Autoptimize] Conflict with FacetwpYes. Thank you. Its working for “Tip” attribute. How can enable for all others attributes?
- This reply was modified 4 years, 4 months ago by Artyom.
Forum: Plugins
In reply to: [Autoptimize] Conflict with FacetwpYes. You can check it. Just select any value at right sidebar.
Any enabled option conflicting with facetwp. No matter js or css.- This reply was modified 4 years, 4 months ago by Artyom.
Forum: Plugins
In reply to: [Autoptimize] FacetWP 3.4.5 & Autoptimize 2.6.1 ConflictI have similar issue too with facetwp.
If any options enabled css or js its showing at console:Uncaught SyntaxError: Unexpected token in JSON at position 122523 at JSON.parse (<anonymous>) at Function.n.parseJSON (jquery.js?ver=1.12.4-wp:4) at Function.a.parseJSON (jquery-migrate.min.js?ver=1.4.1:2) at Object.success (front.min.js?ver=3.5.8:1) at i (jquery.js?ver=1.12.4-wp:2) at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4-wp:2) at x (jquery.js?ver=1.12.4-wp:4) at XMLHttpRequest.c (jquery.js?ver=1.12.4-wp:4)
JS excluded: wp-includes/js/dist/,wp-includes/js/tinymce/,jquery.js, /facetwp/, jquery-migrate.min.js,