Hey there,
we got help by an developer here in Forum and have now the problem that the variants doesnt work anymore on Dawn Theme.
Someone can help fast, because we want to launch in 2 days.
Thanks in Advance!
Regards,
Romie
Hey there,
we got help by an developer here in Forum and have now the problem that the variants doesnt work anymore on Dawn Theme.
Someone can help fast, because we want to launch in 2 days.
Thanks in Advance!
Regards,
Romie
hi @Denomi ,
The problem come from javascript handle, so if you need fix that, i can implement that for you.
Please let me know if you want hire technical customize. i’m alway quality assurance and responsibility for my work.
https://join.slack.com/t/phavia/shared_invite/zt-1c4fceyuc-6L99qqyTsUG5simcl~I09A
Thank you!
hi @Denomi ,
i sent the message, can you please check? Thank you!
Seems someone had removed the following variables from ‘global.js’ so I have replaced them for you:
updateURL() {
if (!this.currentVariant || this.dataset.updateUrl === 'false') return;
window.history.replaceState({ }, '', `${this.dataset.url}?variant=${this.currentVariant.id}`);
}
updateVariantInput() {
const productForms = document.querySelectorAll(`#product-form-${this.dataset.section}, #product-form-installment`);
productForms.forEach((productForm) => {
const input = productForm.querySelector('input[name="id"]');
input.value = this.currentVariant.id;
input.dispatchEvent(new Event('change', { bubbles: true }));
});
}