These are the steps I went through to set up an SSL cert.
Prior to purchasing a cert, you need to generate a private key, and a CSR file (Certificate Signing Request). You'll be asked for the content of the CSR file
| cd $HOME | |
| git clone --bare url-to-base-repo repo | |
| cd repo | |
| git push --mirror url-to-new-repo | |
| cd .. | |
| rm -rf repo |
| var run = require('gulp-run'); | |
| var upload_to_shopify = function( file ){ | |
| var splitPath = file.path.split('theme/').pop(); | |
| run('theme upload ' + splitPath, { cwd: 'theme' }).exec(); | |
| }; | |
| gulp.task( 'watch', function( evnt ) { |
| Verifying that +hsl is my openname (Bitcoin username). https://onename.io/hsl |
| server { | |
| listen 80; | |
| server_name ^(?<realservername>pre.+\.domain\.tld)$; | |
| return 301 https://$realservername$request_uri; | |
| } |
| THIS DOES NOT WORK FOR ALL THEMES | |
| ==== | |
| STEP 1: add this right above the </body> tag of your product template: | |
| ==== | |
| <div id="bundles_child_products" style="display:none;"> | |
| {% for variant in product.variants %} | |
| {% if variant.metafields.bundles_app.content.size > 0 %} | |
| <span id="bundle_{{variant.id}}" data-json='{{ variant.metafields.bundles_app.content | json}}'> | |
| {% endif %} |
| // in class VariantSelects | |
| // in onVariantChange() method add the call the following method | |
| this.updateBundleVariant(); | |
| // right after onVariantChange() define the method | |
| updateBundleVariant() { | |
| // remove old line item properties from DOM | |
| [ ...document.querySelectorAll( '.bundles_lineItemProperty' ) ].forEach( lineItemProperty => { | |
| lineItemProperty.parentNode.removeChild( lineItemProperty ); | |
| } ); |