I hereby claim:
- I am arobbins on github.
- I am arobbins (https://keybase.io/arobbins) on keybase.
- I have a public key ASA9j69jqgvPEHf8fTVCUrEc3m0EiH_vd-a-JF3EfGE3VAo
To claim this, I am signing this object:
// Show products from collections "Featured" and "Sale". Limit the amount of products to 10 | |
[wps_products collections="Featured, Sale" limit="10"] |
{ | |
"ver": 1, | |
"inputs": [ | |
{ | |
"sequence": 4294967295, | |
"witness": "", | |
"prev_out": { | |
"spent": true, | |
"tx_index": 326817500, | |
"type": 0, |
<?php | |
/* | |
Step 4. Once the order is successfully paid for ... | |
The $order parameter contains all the data contained here (scroll down to the Order webhook): https://help.shopify.com/api/reference/webhook | |
*/ | |
function namespace_checkouts_order_paid($order) { |
<?php | |
/* | |
Step 3. Saves any dynamic session variables to the Shopify order. Fires once the user clicks the checkout button. | |
*/ | |
function namespace_cart_checkout_attrs() { | |
// Gain access to the global $_SESSION variable |
<?php | |
/* | |
Step 2. Save any dynamic values to the users Session | |
We're calling this function from the frontend javascript via the 'save_dynamic_values_to_session' AJAX action. | |
*/ | |
function save_dynamic_values_to_session() { |
/* | |
Step 1. Add an AJAX POST request to the add to cart click event. | |
Resolves through the then() method once the data has been saved. You'll need to | |
write some jQuery to fill in the "dynamicValues" object according to your own markup | |
*/ | |
jQuery('.wps-add-to-cart').on('click', function(e) { |
function updateDom(arg1) { | |
return arg1; | |
} |
<?php | |
// Shows / Enables WordPress Sidebar on WP Shopify products-all template | |
function wps_products_show_sidebar_callback() { | |
return true; | |
} | |
add_filter('wps_products_show_sidebar', 'wps_products_show_sidebar_callback'); | |
I hereby claim:
To claim this, I am signing this object: