- Go to your Shopify
admin/settings/filespage - Open your browser Dev tools, go to the console
Then, depending on the option you choose:
- Make sure your browser is set to download files automatically and doesn't ask for the download location every time
| name: Craft CMS deployments | |
| on: | |
| push: | |
| branches: [master] | |
| jobs: | |
| build-and-deploy: | |
| runs-on: ubuntu-latest |
| import React, { forwardRef } from 'react' | |
| import styled from 'styled-components' | |
| import css, { get } from '@styled-system/css' | |
| import { | |
| system, | |
| compose, | |
| space, | |
| color, | |
| typography, | |
| layout, |
| add_action('graphql_register_types', function() { | |
| $post_types = WPGraphQL::$allowed_post_types; | |
| if (!empty($post_types) && is_array($post_types)) { | |
| foreach($post_types as $post_type) { | |
| $post_type_object = get_post_type_object($post_type); | |
| register_graphql_field($post_type_object->graphql_single_name, 'styledContent', [ | |
| 'type' => 'String', | |
| 'description' => __('The styled elementor content of the page', 'cottontailpress-headless'), | |
| 'resolve' => function($post) { | |
| $content = ''; |
| @php | |
| $d = $d ?? null; // default value | |
| @endphp | |
| <div class="form-group row"> | |
| <label for="{{ $n }}" class="col-sm-4 col-form-label text-md-right"><b>{{ $l }}</b></label> | |
| <div class="col-md-8"> | |
| <input id="{{ $n }}" type="checkbox" class="form-control" name="{{ $n }}" value="1" @if(old($n, $d) == '1') checked @endif> | |
| @if ($errors->has($n)) | |
| <small class="text-danger">{{ $errors->first($n) }}</small> |
| packages: | |
| yum: | |
| mod24_ssl : [] | |
| files: | |
| "/etc/httpd/conf.d/ssl_rewrite.conf": | |
| mode: "000644" | |
| owner: root | |
| group: root | |
| content: | |
| # not an exhaustive list | |
| nsurlsessiond "icloud sync" | |
| fseventsd "macos file system events" | |
| WindowServer "macos windows" | |
| DisplayLinkManager "macos driver" | |
| configd "macos dynamic configuration" | |
| displaypolicyd "macos process" | |
| CommCenter "macos keychain" | |
| kernel_task "macos kernel" |
admin/settings/files pageThen, depending on the option you choose:
| find -L app/design/frontend -regex '.*\(shipping\|billing\|shipping_method\|payment\).phtml' -exec grep -L formkey {} \; \ | |
| | xargs sed -i 's/<\/form>/<?php echo $this->getBlockHtml("formkey") ?><\/form>/g' | |
| find -L skin/frontend -name 'opcheckout.js' -exec grep -L form_key {} \; \ | |
| | xargs sed -i 's/if (elements\[i\].name=='\''payment\[method\]'\'') {/if (elements[i].name=='\''payment[method]'\'' || elements[i].name == '\''form_key'\'') {/g' |
| type FilterOperator = 'AND' | 'OR'; | |
| type FiltersBy<T> = { | |
| [K in keyof T]?: (value: T[K]) => boolean; | |
| }; | |
| /** | |
| * Factory function that creates a specialized function to filter | |
| * arrays, by validating all filters (AND operator), | |
| * or validating just one of the filters (OR operator). | |
| * @param operator Method to validate all filters: AND, OR |