dropdown for product variant picker
parent
5e479eed8f
commit
5208f31257
|
@ -101,7 +101,7 @@
|
|||
background-color: #e9e9e9;
|
||||
}
|
||||
|
||||
.shx-dummy-select {
|
||||
.shx-custom-variant-picker-dummy-select {
|
||||
display: none;
|
||||
}
|
||||
</style>
|
||||
|
@ -111,7 +111,7 @@
|
|||
<div class="shx-custom-variant-picker-dropdown field custom">
|
||||
<select
|
||||
id="Option-{{ section.id }}-{{ forloop.index0 }}"
|
||||
class="shx-dummy-select field__input"
|
||||
class="shx-custom-variant-picker-dummy-select field__input"
|
||||
name="options[{{ option.name | escape }}]"
|
||||
form="{{ product_form_id }}"
|
||||
>
|
||||
|
@ -141,7 +141,7 @@
|
|||
</div>
|
||||
|
||||
<script>
|
||||
const selectElement = document.querySelector('.shx-dummy-select');
|
||||
const selectElement = document.querySelector('.shx-custom-variant-picker-dummy-select');
|
||||
const dropdownContent = document.getElementById('shx-custom-variant-picker-dropdown-content');
|
||||
const selectedButton = document.getElementById('shx-custom-variant-picker-selected');
|
||||
const customSelectedValue = document.getElementById('shx-custom-variant-picker-selected-value')
|
||||
|
|
Loading…
Reference in New Issue