This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* Add extra fields in media attachment */ | |
| /** | |
| * Add Photographer Name and URL fields to media uploader | |
| * | |
| * @param $form_fields array, fields to include in attachment form | |
| * @param $post object, attachment record in database | |
| * @return $form_fields, modified form fields | |
| */ | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* Add WP Media Uploader in Plugin */ | |
| add_action('admin_enqueue_scripts', 'custom_admin_media_scripts'); | |
| function custom_admin_media_scripts() { | |
| if (isset($_GET['page']) && $_GET['page'] == 'custom-icons-settings-page') { | |
| wp_enqueue_media(); | |
| wp_register_script('custom-media-uploader-js', WP_PLUGIN_URL.'/custom-theme-settings-plugin/js/media.js', array('jquery')); | |
| wp_enqueue_script('custom-media-uploader-js'); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <form action="/cart/add" method="post" style="text-align:center;"> | |
| <select name="id"> | |
| {% for variant in product.variants %} | |
| {% if variant.available %} | |
| <option value="{{ variant.id }}">{{ variant.title }} - {{ variant.price | money }}</option> | |
| {% else %} | |
| <option disabled="disabled">{{ variant.title }} - Sold Out</option> | |
| {% endif %} | |
| {% endfor %} | |
| </select> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // In product.liquid, locate this code: | |
| // {{ product.description }} | |
| // Below that, add this: | |
| <p id="inventory">{% assign variant = product.variants.first %} | |
| {% if variant.available %} | |
| {% if variant.inventory_management != '' %} | |
| {{ variant.inventory_quantity }} in stock | |
| {% else %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Step 1: Open Shopify store Admin. | |
| Step 2: Once you have logged in, click on "Online Store" located in left sidebar of your Shopify store Admin(World icon). | |
| Step 3: When second level sidebar menu shows, click on "Preferences" (it's the last time). | |
| Step 4. Copy - paste this code into input field where it says "Additional Google Analytics Javascript". | |
| }; | |
| if(typeof Checkout === 'object'){if(typeof Checkout.$ === 'function'){(function (src) {var tagName = 'script',script = document.createElement(tagName);script.src = src;var head = document.getElementsByTagName('head')[0];head.insertBefore(script, head.childNodes[0]);})('https://cdn.rawgit.com/anilmeena/a987697bfb81ca180359340f4ff4e6de/raw/6cea1c1a3ee7bff893f53746a9c851644ac0a121/shopify-checkout-timer-security-badge.js');} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Step 1: Open Shopify store Admin. | |
| Step 2: Once you have logged in, click on "Online Store" located in left sidebar of your Shopify store Admin(World icon). | |
| Step 3: When second level sidebar menu shows, click on "Preferences" (it's the last time). | |
| Step 4. Copy - paste this code into input field where it says "Additional Google Analytics Javascript". | |
| }; | |
| if(typeof Checkout === 'object'){if(typeof Checkout.$ === 'function'){(function (src) {var tagName = 'script',script = document.createElement(tagName);script.src = src;var head = document.getElementsByTagName('head')[0];head.insertBefore(script, head.childNodes[0]);})('https://cdn.rawgit.com/anilmeena/3c2d7006f558c792623a8e0e1032a4e9/raw/e5aef095ed843ece771898e4c3e883c25d5b5faf/shopify-security-badges-checkout.js');} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Step 1: Open Shopify store Admin. | |
| Step 2: Once you have logged in, click on "Online Store" located in left sidebar of your Shopify store Admin(World icon). | |
| Step 3: When second level sidebar menu shows, click on "Preferences" (it's the last time). | |
| Step 4. Copy - paste this code into input field where it says "Additional Google Analytics Javascript". | |
| }; | |
| if(typeof Checkout === 'object'){if(typeof Checkout.$ === 'function'){(function (src) {var tagName = 'script',script = document.createElement(tagName);script.src = src;var head = document.getElementsByTagName('head')[0];head.insertBefore(script, head.childNodes[0]);})('https://cdn.rawgit.com/anilmeena/eaa5e07a69c5486a1d007e6e06f1f197/raw/bf8c8dc50f717c1c59bc9027e9aada2fab3cff7d/shopify-cart-timer-checkout.js');} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Step 1: Open Shopify store Admin. | |
| Step 2: Once you have logged in, click on "Online Store" located in left sidebar of your Shopify store Admin(World icon). | |
| Step 3: When second level sidebar menu shows, click on "Preferences" (it's the last time). | |
| Step 4. Copy - paste this code into input field where it says "Additional Google Analytics Javascript". | |
| }; | |
| if(typeof Checkout === 'object'){if(typeof Checkout.$ === 'function'){(function (src) {var tagName = 'script',script = document.createElement(tagName);script.src = src;var head = document.getElementsByTagName('head')[0];head.insertBefore(script, head.childNodes[0]);})('https://cdn.rawgit.com/anilmeena/403a51127df288ac3877fe4b6ba25f8b/raw/6b3c022422700c35491ec098ad620f85a95b4a29/shopify-checkout-timer-security-badge-2.js');} |