I hope you’re doing well.
I need your assistance in disabling plugin settings and requirement checks. I’ve already applied the following conditions to my product fields:
Currently, the following condition works well when selecting a simple product:
However, when selecting a variable product, the validation conflict persists.
Is there a way to ensure that if the product ID is 12345, The plugin won’t load, or will it be disabled/inactive for that specific product?
Your help with this would be greatly appreciated.
Thank you!
]]>They suspect the potential hacking situation is what happened to their sites from before. Some hacker trying to use the site to get Bitcoin money, and I want to make sure I do what I can to keep their sites protected. I’ve done what I know to the best of my current knowledge:
Wordfence (free), reCaptchv3, and SSL.
They are using Cpanel for hosting, which I know nothing about at the moment but in some research I did I understand there is a way that Cpanel can be further secured?
I’m a bit nervous that hacking could take place at a server level such as phishing files, but I do not know how to protect from something like that.
Are there any recommended articles or courses or any advice or tips on how to prevent hacking at a server level from happening? And how could I look into stopping the emails?
Thanks!
I would like to disable the option for customers to cancel orders through the /my-account/
page. I want to restrict this functionality to improve our order management process.
I am looking for a solution to disable the cancel order option specifically in the customer’s account area.
Thanks,
Group of Oceninfo
I hope this message finds you well. I am utilizing the pro version of this plugin and has successfully implemented a currency switcher on the checkout page using the following code placed within the functions.php
file. The setup is functioning seamlessly on the /checkout/
page:
// Add a custom select field in checkout
add_action('woocommerce_before_checkout_billing_form', 'add_custom_checkout_select_field');
function add_custom_checkout_select_field( $checkout ) {
// Here set in the function your product category term ID, slugs, names or array
if ( ! has_product_category_in_cart( 'concierge' ) && shortcode_exists( 'woocs' ) ) {
echo '<label for="payment_option" class="payment_option">'.__('Preferred currency').'</label>';
echo '<div class="own">' . do_shortcode('[woocs]') . '</div>';
}
}
// Custom Checkout fields validation
add_action('woocommerce_checkout_process', 'custom_checkout_select_field_validation');
function custom_checkout_select_field_validation() {
if ( isset($_POST['payopt']) && empty($_POST['payopt']) )
wc_add_notice( '<strong>Please select a currency</strong>', 'error' );
}
// Reset currency selector if it's not checkout
add_filter('wp_head',function(){
if(!is_checkout()){
global $WOOCS;
$WOOCS->reset_currency();
}
});
However, the website is not a standard WooCommerce setup. The single product page has been customized, incorporating a third-party gadget that dynamically updates prices akin to the hotel industry. Upon adding a product to the cart, it defaults to USD due to WooCommerce settings, whereas their gadget provides a currency switcher functionality.
To address this, I’ve implemented cookies with the name “Usr5electedCurr3ncy” to store the selected currency from third-party gadget. The challenge arises when attempting to read this cookie value and pass it to the Woocs gadget on the checkout page. The JavaScript code below is intended to select the currency based on the cookie value. Yet, it only sets but doesn’t switch the Woocs currency selector as intended. Manually selecting a currency from the dropdown works seamlessly.
document.addEventListener('DOMContentLoaded', function() {
const selectElement = document.querySelector('select[name="woocommerce-currency-switcher"]');
// Function to get the value of the specified cookie
function getCookie(name) {
const cookies = document.cookie.split('; ');
for (let i = 0; i < cookies.length; i++) {
const cookie = cookies[i].split('=');
if (cookie[0] === name) {
return cookie[1];
}
}
return null;
}
// Get the value of 'Usr5electedCurr3ncy' cookie
const selectedCurrency = getCookie('Usr5electedCurr3ncy');
if (selectedCurrency) {
// Loop through options to find and select the matching currency
for (let i = 0; i < selectElement.options.length; i++) {
if (selectElement.options[i].value === selectedCurrency) {
selectElement.value = selectedCurrency;
break;
}
}
}
});
I seek your expertise in resolving this issue. I aim to set the currency based on the cookie and enable the switch in checkout information, allowing customers to transact in their selected currency rather than defaulting to USD. Your guidance in this matter would be greatly appreciated.
Thank you for your time and assistance.
]]>A client of mine came to me reporting that there is a random page on their website (as provided in the link). As you can see, this site is not Spanish, nor does it relate to augers.
I’ve checked every file, and every post, and it does not exist.
However, it does exist in the “redirection” tables (*_404 and *_logs).
I can only assume there is a vulnerability with this plugin, Version 5.2.3.
]]>Does this sound like the kind of hack that might have originated here? If it might have what should I do? Am thinking of deleting blogs and account.
Thanks for reading this,
Russell
I would like to overwrite line 155 Path: /co-authors-plus/template-tags.php
From
$default_between_last = ( defined( 'COAUTHORS_DEFAULT_BETWEEN_LAST' ) ) ? COAUTHORS_DEFAULT_BETWEEN_LAST : __( ' and ', 'co-authors-plus' );
To
$default_between_last = ( defined( 'COAUTHORS_DEFAULT_BETWEEN_LAST' ) ) ? COAUTHORS_DEFAULT_BETWEEN_LAST : __( ', ', 'co-authors-plus' );
How to make that change using functions.php child theme so whenever plugin updated I don’t have to overwrite manually. I am just updating ” and ” with “, ” it’s a minor change.
Thanks
Group of Oceninfo
Thanks for creating such a good plugin.
Can you please help me with the custom arrows? I am using https://smartslider3.com/full-width-post-slider/, and I would like to add use custom arrows to match my project design.
I’ve tried the inbuilt designing function, but it’s not providing any facility where I can upload custom left and right arrows.
Thanks,
Group of Oceninfo
I’m using WooCommerce for more than 3 years.
This is the most worst update I have ever done for WooCommerce.
I regret that I have updated WooCommerce from version 3.9.3 to 4.
Everything seems to be slow now, since the update to version 4
How can I completely disable ‘WooCommerce Analytics’?
Because I don’t use it anyway.
Thanks in advance!
]]>