Skip to content

Instantly share code, notes, and snippets.

💻
Building WP Shopify

Andrew Robbins arobbins

💻
Building WP Shopify
Block or report user

Report or block arobbins

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@arobbins
arobbins / buybutton-archive.php
Last active Jan 29, 2018
Adding a buy button under each archive product
View buybutton-archive.php
<?php
function wps_products_show_add_to_cart_callback() {
return true;
}
add_filter( 'wps_products_show_add_to_cart', 'wps_products_show_add_to_cart_callback' );
@arobbins
arobbins / wps-shortcode-wpsproducts.js
Last active Apr 9, 2018
WP Shopify - Example - Shortcode - [wps_products]
View wps-shortcode-wpsproducts.js
// Show products from collections "Featured" and "Sale". Limit the amount of products to 10
[wps_products collections="Featured, Sale" limit="10"]
You can’t perform that action at this time.