Skip to content

Instantly share code, notes, and snippets.

Fegul fegul

  • MD
View GitHub Profile
@claudiosanches
claudiosanches / add-to-cart.php
Last active Apr 17, 2020
WooCommerce - Template add-to-cart.php with quantity and Ajax!
View add-to-cart.php
<?php
/**
* Custom Loop Add to Cart.
*
* Template with quantity and ajax.
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly.
global $product;
You can’t perform that action at this time.