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:
| /* ==================================================================== | |
| Definitions | |
| ==================================================================== */ | |
| var gulp = require('gulp'), | |
| browserSync = require('browser-sync'), | |
| sass = require('gulp-sass'), | |
| concat = require('gulp-concat'), | |
| minifyCSS = require('gulp-minify-css'), | |
| jshint = require('gulp-jshint'), | |
| rename = require('gulp-rename'), |
| Verifying that +simpleblend is my blockchain ID. https://onename.com/simpleblend |
I hereby claim:
To claim this, I am signing this object:
| <?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'); | |
| function updateDom(arg1) { | |
| return arg1; | |
| } |
| /* | |
| 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) { |
| <?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() { |
| <?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 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) { |
| { | |
| "ver": 1, | |
| "inputs": [ | |
| { | |
| "sequence": 4294967295, | |
| "witness": "", | |
| "prev_out": { | |
| "spent": true, | |
| "tx_index": 326817500, | |
| "type": 0, |