Sn00z389
Forum Replies Created
-
Yes, it is a big issue, because it doesn’t read the translations in the /languages/woocommerce/ folder but only in /languages/plugins/ folder.
The problem is that with every update woocommerce updates it’s translations inside of the /languages/plugins/ and you need to overwrite them manually with your /languages/woocommerce/ and delete all of the other translations it downloaded, which is frustrating.
Forum: Plugins
In reply to: [LiteSpeed Cache] Bad request with cachingThank you! Done, now we will wait to see if it fix the issue ??
Forum: Plugins
In reply to: [LiteSpeed Cache] Bad request with cachingI am not very sure what am i looking for but can this be it:
class Ajax
{
public const NONCE = "wckalkulator-ajax-nonce";Forum: Plugins
In reply to: [LiteSpeed Cache] Bad request with cachingvar data = 'action=wckalkulator_fieldset_post_type_toggle_publish' +
'&_wck_ajax_nonce=' + wck_ajax_fieldset._wck_ajax_nonce +
'&post_id=' + $(this).data("post-id");function calculatePrice() {
if (shouldCalculatePrice) {
var data = $(_form).serialize().replace('add-to-cart', 'atc') + '&action=wckalkulator_calculate_price' + '&_wck_ajax_nonce=' + wck_ajax_object._wck_ajax_nonce;
$.each($(_form + " input[type=file].wck_imageupload:enabled"), function () {
data += "&" + $(this).attr("name") + "=" + (($(this)[0].files.length === 1) ? $(this)[0].files[0].size : 0);
});
$("form.cart [name^=wck]:disabled").each(function(){
data += "&" + $(this).attr("name") + "=0";
});
$.post(wck_ajax_object.ajax_url, data, function (response) {
if (response) {
$("#wckalkulator-price").html(response);
}
});
}
}Forum: Plugins
In reply to: [LiteSpeed Cache] Bad request with cachingDoes this help:
public static function wckalkulator_calculate_price()
{
if (!wp_verify_nonce($_POST['_wck_ajax_nonce'], Ajax::NONCE) || !isset($_POST["_wck_product_id"]) || !isset($_POST["_wck_hash"])) {
wp_die('Bad request!');
}
if (wp_hash($_POST["_wck_product_id"]) !== $_POST["_wck_hash"]) {
wp_die('Bad hash!');
}public static function enqueue_scripts()
{
$fieldset = FieldsetProduct::getInstance();
if ($fieldset->has_fieldset('current')/* && $fieldset->has_expression('current')*/) {
$fieldset->init();
$formula_parameters = $fieldset->set_additional_input_variables(true);
wp_enqueue_script(
'wck-ajax-script',
Plugin::url() . '/assets/js/wckalkulator.min.js',
['jquery'],
Plugin::VERSION
);
wp_add_inline_script(
'wck-ajax-script',
'var wck_ajax_object = ' . wp_json_encode(
array(
'ajax_url' => admin_url('admin-ajax.php'),
'_wck_ajax_nonce' => wp_create_nonce(Ajax::NONCE),
'_wck_has_expression' => $fieldset->has_expression('current') ? '1' : '0',
'_wck_i18n_required' => __('You should check at least one option.', 'wc-kalkulator'),
'_wck_i18n_maxfilesize' => __('This file is too big!', 'wc-kalkulator'),
'form' => Settings::get('form_css_selector'),
'_wck_visibility_rules' => $fieldset->visibility_rules(),
'_wck_additional_parameters' => ($formula_parameters)
)
) . ';'
);
$fieldset->js_api();
}
}Forum: Plugins
In reply to: [LiteSpeed Cache] Bad request with cachingWell maybe it is only _wck_ajax_nonce
I think this is it:
'_wck_ajax_nonce' => wp_create_nonce(Ajax::NONCE),
Forum: Plugins
In reply to: [LiteSpeed Cache] Bad request with cachingHi it seems that the nonce name is this: wck_ajax_object._wck_ajax_nonce
Best Regards,
I also talked with Litespeed support and they asked what is the nonce name you used in the plugin??
I found the solution to this problem. For anyone using Woodmart theme. If you want to use the plugin you need to disable the sticky add to cart option on the product page, since it makes a conflict and the price is not being calculated correctly.
It will be great if the plugin dev removes the issue and we are able to use the plugin with the sticky add to cart in future.
Best Regards,
Forum: Plugins
In reply to: [WooCommerce] Order attribution origin unknownSame problem with all of my websites. When updated to WC 8.7 origin becomes Unknown. When rollback to 8.6.1 everything goes to normal. So this must be an issue with WC 8.7
Best Regards
Forum: Plugins
In reply to: [Currency Switcher for WooCommerce] HPOS SupportYes, still it says HPOS incompatible when I try to enable the HPOS.
If it is compatible you need to declare it in the plugin code, so that the warning goes away.
- This reply was modified 1 year, 2 months ago by Sn00z389.
Hi,
removing everything being blocked from robots.txt, except the /wp-admin/ resolved the problem.
Google was able to crawl the URLs and set the correct canonical path. Errors in GSC disappeared!
Forum: Plugins
In reply to: [Yoast SEO] Canonical for add-to-cart and wishlist linksHi,
removing everything being blocked from robots.txt, except the /wp-admin/ resolved the problem.
Google was able to crawl the URLs and set the correct canonical path. Errors in GSC disappeared!
Forum: Plugins
In reply to: [Yoast SEO] Canonical for add-to-cart and wishlist linksThank you! I have removed the directives from Robots.txt and now I am waiting to see if Google will be able to determine the right canonization of the URLs.
I will update when I see the result.
Hi, yes, I have removed these lines because I red that Google cannot canonize the URLs when they are unable to crawl them.
Now I will wait to see if this is true.
I will let you know after the process is finished.
Best Regards