WPSlash

Blog

Stay updated with our latest news, tutorials, and insights

Tutorials WooFood

Disable Cash On Delivery for Delivery Orders on WooFood

Here is a small code snippet you can add on your site to disable COD for Delivery Orders . You can still able to use COD on Pickup Orders. Just copy and paste the following snippet to your functions.php inside your child theme
December 4, 2020
Tutorials WooFood

Trigger your custom JS when Extra Options changing

You copy and paste the following snippet to your functions.php on your child theme. The following code will give an alert() to user when an extra option is checked. Adjust the code to your needs
November 19, 2020
Tutorials WooFood

Increase Maximum Number of Orders on Automatic Printing Software for WooFood

The below code snippet is for increasing the default 10 as maximum number of orders the Automatic Printing Software will fetch . Copy and paste the following snippet inside your functions.php on your child theme and this will increase the maximum number of orders to fetch to each sync to 20 (You can change 20 […]
November 17, 2020
Tutorials WooCommerce

How to Change the “Return to Shop” Link in WooCommerce

By default, WooCommerce includes a “Return to Shop” button on the empty cart page, directing customers back to the shop page. However, many store owners prefer redirecting users to a custom page, such as the homepage, a promotions page, or a restaurant menu. With a simple WooCommerce filter, you can customize this button’s destination to match your store’s needs. Why Customize the “Return […]
November 13, 2020
Tutorials WooCommerce

Enable Login/Register on WordPress General Settings

Navigate to Settings > General on your WordPress Dashboard and check the option “Anyone Can Register” . Be sure also that you have selected the Default Role as Customer
November 2, 2020
Tutorials WooFood

Replace Product Title with SKU on Automatic Printing Software

Copy and paste the below code to your functions.php on your child theme. In case you want to use also the product name and SKU you can use the following code
October 30, 2020
Tutorials WooFood

Trigger AJAX Popup on the whole product element click

The following code snippet will make popup opening without having to click on the “Select” button, will actually make the whole product wrapper clickable. Copy and paste the following code to your functions.php under your child theme
October 29, 2020
Tutorials WooFood

Change price of Products dynamically based on Date

A small code snippet to dynamically change the price based on products ids and on date. Adjust the snippet to your needs and copy the functions.php of your child theme
October 27, 2020
Tutorials WooFood

Make Products Available only on specific days of week

Here is an example on how to make products unavailable all the days except from some days depending on the product category. On the following example we are making the products with Category Name “FANCY MENU” to be available only on Tuesday and Wednesday You can copy the following code under your functions.php and adjust […]
October 23, 2020
Tutorials WooFood

Make WooFood Availability Checker to Always appears

The following snippet will make the WooFood Availability Checker to always appears regardless if the customer has already a saved address Copy and paste the following snippet to your functions.php on your child theme
October 23, 2020
Tutorials WooFood

Disable Today from Delivery or Pickup Option on Checkout

The following code snippets will disable Today option from Delivery or Pickup date options For Pickup For Delivery Copy and paste the following snippets under your functions.php on your child theme .
October 22, 2020
Tutorials WooFood

Add WooCommerce Product Bundles Compatibility to WooFood

If you want to make compatible WooCommerce Product Bundles with WooFood, you will have to use the following code snippet You can copy it inside your functions.php on your child theme and you will enqueue the required javascript and stylesheet from Products bundles to the footer page
October 6, 2020
1 2 5 6 7 8 9