WPSlash

Blog

Stay updated with our latest news, tutorials, and insights

Tutorials WooFood

Add Discount on WooCommerce Checkout when Pickup is selected using WooFood

Here is small snippet you can add a discount on total cart contents . On the following example we are adding a 20% discount when Pickup is selected. You can change the variable $percentage to the number of percentage discount you want. Here is a second sample if you want to add discount on pickup […]
April 9, 2020
Tutorials WooFood

WooFood Popup Compatibility with Shortcodes Ultimate

In case you are using WooFood with and using also Shortcode Ultimate Plugin you will have noticed that styles are not loaded inside the popup. By using the following code on your functions.php on your child theme you will be able to load normally the css and js assets inside popup
April 8, 2020
Tutorials WooFood

How to Integrate YITH Social Login with WooFood Theme

If you want to use Social Login by YITH and you are using WooFood theme ,copy and paste the following snippet inside functions.php on your child theme. The above code will make social login buttons appearing both on Login and Register section inside popup
March 31, 2020
Tutorials WooFood

How to Change Postal Code Checking to Prefix Only Checking on WooFood for WooCommerce

The below hook will work for users using Postal Code Restrictions under Distance Restrictions on WooFood . After using the below hook under postal codes must be added only the postal codes prefixes are available for delivery instead from the whole postal code. Copy to your child theme functions.php to change the postal code checking […]
March 27, 2020
Uncategorized

Adding Tracking Code Shortcode from WPSlash Voucher to WooSMS

Here is a small snippet you can copy and paste to your child theme to add a shortcode <wpslash_voucher_courier_tracking> to WooSMS . Note: If for any reason you cannot add it to yourself , feel free to open a ticket and we will take of adding this code to your child theme!
January 8, 2020
Tutorials WooCommerce

Set Default Values to WooCommerce Checkout Fields and Hide Them

All of our customers asking us how to remove some fields from WooCommerce checkout form when using WooFood or even if you are not using it. Because WooFood need these fields (like City and Postal Code to be able to calculate the distance between the customer and the store) we decided to write this small […]
November 2, 2019
Tutorials WooFood

How to Create Distance Matrix API and Maps Javascript and Places API for WooFood

Before starting the setup process of API Keys you must first have Billing Enabled on your Google Console Account. Please go to the following url and select your project to enable billing https://console.cloud.google.com/project/_/billing/enable Go to the Google Cloud Platform Console. Click the Select a project button, then select your project you set up for the WooFood and click Open. *If you don’t have a project create a new on  […]
October 1, 2019
Tutorials WooFood

How to use WooFood Plugin Ajax feature with Flatsome Theme

Add the following code to your functions.php on your Flatsome Child Theme. The following code will replace the default title link on shop loop with the link to our Ajax Quick View Please also create a folder woocommerce inside your child theme and create a file with name content-product.php and paste the following code inside. If […]
September 23, 2019
Tutorials WooFood

How to set Pickup Only on WooFood

With these few lines of code you can disable Delivery Option on WooFood for WooCommerce and set the pickup option as default. Copy and paste the following two snippets to your functions.php inside your Theme or Child Theme folder You will have to use the woofood_order_types_filter filter to return an array including only the pickup option […]
September 5, 2019
Tutorials

How to Create an Online Delivery Site on WordPress with WooFood

he 80% percent of online websites are built in WordPress. Why not an online delivery site for a restaurant? There are many plugins out there that can transform your WordPresssite into an online delivery site , but today we will test out WooFood We preferred to use WooFood because its the only plugin out there that combines everything an online shop requires […]
August 6, 2019
1 2 8 9