How To Delete Row From Repeater ACF Using PHP

In order to delete a row from repeater ACF using PHP, you have to open functions.php and use the following code. In the below example $repeater_key is the key of the element that was clicked. You have to check if the keys start from 0, if they do, you will have to increment it by… Continue reading How To Delete Row From Repeater ACF Using PHP

How to Separate Login and Register Pages in Woocommerce

As you already know, woocommerce comes with login and register on the same page. In order to separate login and register pages in woocommerce you will have to follow few easy steps. First of all make sure you have FTP access to the server because we will have to create a new file and a… Continue reading How to Separate Login and Register Pages in Woocommerce

Tutorial – How to override default Woocommerce Template

In this tutorial I will show you the function you have to use in order to override any default Woocommerce template. To do that, you will have to creata a new folder called woocommerce in your theme root folder. If you use storefront, the path should look like the following: storefront-child/woocommerce. All folders and files… Continue reading Tutorial – How to override default Woocommerce Template

How To Create Woocommerce Tabs For Product Page

In this tutorial we will create new woocommerce tabs for product page, which will be administrated from admin. We will use ACF because is one of the best plugins for WordPress at the moment. To achive that, we will create few custom fields for our product page, and then we will create a hook to… Continue reading How To Create Woocommerce Tabs For Product Page

Add to cart via AJAX Woocommerce without loop

To accomplish this functionality you have to make a GET call by javascript, in this call you have to pass the ID of product. Below you can see an example for this action. HTML: <div class=”add_to_cart”> <a href=”#” data_id=”12″>Add to cart</a> </div>   Where data_id is the product id.   jQuery: jQuery(‘.add_to_cart’).on(‘click’, function(e){ var href… Continue reading Add to cart via AJAX Woocommerce without loop