How to add to cart without reload page using php code

we are add to cart in e-commerce website without reload page use the php simple code. and get id the cart in session that are the send value through cart button with session. //Get session value $_SESSION[‘cart’]; if(isset($_GET[‘action’]) && $_GET[‘action’]==”add”){ $id=intval($_GET[‘id’]); if(isset($_SESSION[‘cart’][$id])){ $_SESSION[‘cart’][$id][‘quantity’]++; } else{ //Get product id $sql_p=”SELECT * FROM products WHERE id={$id}”; $query_p=mysqli_query($con,$sql_p); … Read more

WordPress Actions, Filters, and Hooks : A guide for non-developers

Hooks are provided by WordPress to allow your plugin to ‘hook into’ the rest of WordPress; that is, to call functions in your plugin at specific times, and thereby set your plugin in motion.In WordPress code there are numerous pre-defined actions or hooks that allow developers to add their own code at these points. There … Read more

Add columns to admin orders list in WooCommerce backend

You want to add some columns to your order listing page in the woocommerce admin area. So you if you want to add some columns in the orders Admin list page (in backend) ADDING COLUMNS IN WOOCOMMERCE ADMIN ORDERS LIST In the example below, we add 2 new custom columns, before existing “Total” and “Actions” … Read more