Created
February 27, 2015 19:58
-
-
Save Shelob9/a4022ddcc748a3bfe1f8 to your computer and use it in GitHub Desktop.
A Pods template for Woo Commerce items, with AJAX add-to cart and a learn more button.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="woocommerce"> | |
<h3>{@post_title}</h3> | |
<a class="button" href="{@permalink,esc_url}" title="Information about {@post_title}">Learn More</a> | |
<a href="?add-to-cart={@ID}" rel="nofollow" data-product_id="{@ID}" data-product_sku="" data-quantity="1" class="button add_to_cart_button product_type_simple">Add to cart</a> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment