Skip to content

Instantly share code, notes, and snippets.

@Shelob9
Created February 27, 2015 19:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Shelob9/a4022ddcc748a3bfe1f8 to your computer and use it in GitHub Desktop.
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.
<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