Skip to content

Instantly share code, notes, and snippets.

@pauloiankoski
Created October 31, 2013 16:52
Show Gist options
  • Save pauloiankoski/7253063 to your computer and use it in GitHub Desktop.
Save pauloiankoski/7253063 to your computer and use it in GitHub Desktop.
Link para adicionar produto ao carrinho no WooCoommerce
<a href="<?php echo esc_url( $product->add_to_cart_url() ); ?>&variation_id=261&attribute_stock-colors=1">Add to Cart</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment