Whats is Legacy?
Legacy themes are non 2.0 Shopify themes. These themes are not built for JSON style templates which enables sections to be used on any page and moved around in any order.
Does this affect me?
When you install one of the three widgets via our app, you choose a theme you wish to use, at which point we tell you if that theme is 2.0 ready or not. If its not a 2.0 theme, a red window will show with a link to this documentation article which explains how to install the widgets manually.
How does installing manually work?
We provide you with two snippets of code. The first snippet is the logic of the widget, and the second snippet is the render (where you wish the widget to show).
Note!
Both of the snippets need to be manually added within your theme code, and because not all themes are built the same it can be challenging for us to give exact instructions on how to achieve this. For additional support with this, please raise a support ticket or contact us via live chat where we can guide and advise you.
Step 1
Step 2
Step 3
Step 4
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta2/css/all.min.css" integrity="sha512-YWzhKL2whUzgiheMoBFwW8CKV4qpHQAEuvilg9FAn5VJUDwKZZxkJNuGM4XkWuk94WCrrwslk8yWNGmY1EduTA==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<script async src="https://enchiridion.wehateonions.com/assets/framework/functions/proxy/product_button.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@fancyapps/ui@5.0/dist/fancybox/fancybox.umd.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/ui@5.0/dist/fancybox/fancybox.css"/>
<button type="button" id="who_pm_product_button" name="who_pm_product_button" data-id="{{ product.id }}" data-vid="{{ product.selected_or_first_available_variant.id }}" title="Enchiridion ‑ Product Manuals" aria-label="Enchiridion ‑ Product Manuals"></button>
<script>
var selectCallback = function(variant, selector) {
var who_variant_id = selector.variantIdField.value;
if($("#who_pm_product_button").data("data-vid") != who_variant_id) {
$("#who_pm_product_button").attr("data-vid", who_variant_id);
}
};
document.addEventListener("DOMContentLoaded", (event) => {
var id = document.querySelector("[name=\'id\']").id;
new Shopify.OptionSelectors(id, {
product: {{ product | json }},
onVariantSelected: selectCallback,
enableHistoryState: true
});
});
</script>
Step 5
{% render 'who_product_manuals_product_button' %}