Add the following code to the functions.php to stop the action scheduler on the website. function yourprefix_disable_action_scheduler() { if ( class_exists( ‘ActionScheduler’ ) ) { remove_action( ‘action_scheduler_run_queue’, array( ActionScheduler::runner(), ‘run’ ) ); } } add_action( ‘init’, ‘yourprefix_disable_action_scheduler’, 10 ); Now this will disable the running status of all events on the woocoommerce. This may be… Continue reading Stop runinng unwanted actions on WooCommerce
Category: Coding Standard
Example to make item drag and Drop for Rearrange.
If we want to make any content of our website drag and drop then we can refer the below code. <!DOCTYPE html> <html> <head> <style> .drag-list { list-style: none; padding: 0; } .drag-item { background-color: #CC56FF; padding: 10px; margin-bottom: 5px; cursor: move; } </style> </head> <body> //Supose that below are the item of our website.… Continue reading Example to make item drag and Drop for Rearrange.
JavaScript To Find the most frequent item of an array
If we want to filter the item from the array which is frequently used then we can follow the below Example Here in the below example the array jjarray contain ‘a’ 5 times , so the most frequently item will be a. Sample array: var jjarray=[3, ‘a’, ‘a’, ‘a’, 2, 3, ‘a’, 3, ‘a’, 2,… Continue reading JavaScript To Find the most frequent item of an array
Item is Not showing in Reorder Page
Reorder Functionality is Default in SuiteCommerce Advance and SuiteComerce So we no need to Enable any things for this Functionality For SuiteCommerce MyAccount (SCMA) we need to Enable the check box from Configuration For SCMA website Open Configuration by choosing website and Domain Click on My Account Tab Select Preference sub tab Check the Allow User… Continue reading Item is Not showing in Reorder Page
How to create a Custom class to a WP page (Creating from Dashboard)
You can use the body_class function in your theme’s functions.php file to add custom classes to the body tag of your pages. function custom_body_classes($classes) { // Add your custom class $classes[] = ‘my-custom-class’; return $classes; } add_filter(‘body_class’, ‘custom_body_classes’); After adding this code, every page will have the class ‘my-custom-class’… Continue reading How to create a Custom class to a WP page (Creating from Dashboard)
Error INVALID_LOGIN_ATTEMPT Invalid login attempt
This error occurs when deploying or fetching using a role that requires 2FA. You must specify a role that provides the permissions needed to deploy to NetSuite. By default, the Administrator and SCDeployer roles provide these permissions.
To resolve the issue of going to production domain while logging in local environment.
When we start in the local version of the Shopping domain using the shopping-local.ssp URL. On login, you are redirected to the production version of the Checkout domain at the my-account.ssp URL. To return to the local version of that domain you must manually edit the URL. Change: https://checkout.netsuite.com/c.xxxxxxx/sca-dev-denali/my_account.ssp?n=3 To: https://checkout.netsuite.com/c.xxxxxxx/sca-dev-denali/my_account-local.ssp?n=3 Also, in some browsers, when you manually update… Continue reading To resolve the issue of going to production domain while logging in local environment.
Display the first three badges over the items in the website
Checked the already showing badges in the website , If we wan to add badges for the items we need to enable the checkbox in the item record and need to select the badges list to show the badges for product , here i have added four badges for this item (Toilet Tissue 9″ Jumbo… Continue reading Display the first three badges over the items in the website
How to show category for a particular customer based on customer segments
the requirement of the task is for now created the New category for the Gloss Lab francise customer , The category called ( Salon Products) ,and as per now the category which is belongs to glosslab customer that category only it will show for that customer , so remaining item should be jan/sen products Testing… Continue reading How to show category for a particular customer based on customer segments
Set a customer’s cookie preferences
To set cookie preferences, you provide an object containing key/value pairs. The key represents the cookie preference name, which must be an alphanumeric string. The corresponding value can be either true or false. True indicates the customer’s agreement to the use of a specific type of cookie, while false indicates disagreement. Any valid text string… Continue reading Set a customer’s cookie preferences