diff options
| author | Daniel Schmitzer <noreply@maennchen1.de> | 2023-11-20 13:13:34 +0000 |
|---|---|---|
| committer | Daniel Schmitzer <noreply@maennchen1.de> | 2023-11-20 13:13:34 +0000 |
| commit | 3c9964cf95542f526cb21c5eafda3a867a53f17f (patch) | |
| tree | c7d368733fd86273048272a4e60ff481fe7e4108 /views/mods | |
| parent | 6c9c0be8d8509800c04310e92b83f087f98c96ae (diff) | |
- Bugfix: Alternative Produktansicht mit Produktkombinationen
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@8383 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/mods')
| -rw-r--r-- | views/mods/mod_productvariants/produkt_addedit_content.phtml | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/views/mods/mod_productvariants/produkt_addedit_content.phtml b/views/mods/mod_productvariants/produkt_addedit_content.phtml index 657cd21..415ad76 100644 --- a/views/mods/mod_productvariants/produkt_addedit_content.phtml +++ b/views/mods/mod_productvariants/produkt_addedit_content.phtml @@ -148,19 +148,13 @@ </div>
</div>
- <?php $GLOBALS['wpsg_vue_3.2.47_loaded'] = ($GLOBALS['wpsg_vue_3.2.47_loaded']??0) + 1; if ($GLOBALS['wpsg_vue_3.2.47_loaded'] <= 1) { ?>
- <script src="<?php echo WPSG_URL_CONTENT.'plugins/'.WPSG_FOLDERNAME.'/views/js/vue-3.2.47.global.min.js'; ?>"></script>
- <?php } ?>
-
- <script>
+ <script type="module">
- (() => {
-
- const ref = Vue.ref;
- const computed = Vue.computed;
- const onMounted = Vue.onMounted;
-
- const app = Vue.createApp({
+ import { ref, createApp, onMounted, computed } from '/wp-content/plugins/wpsg_ticket/assets/js/vue.esm-browser.js';
+
+ document.addEventListener('DOMContentLoaded', () => {
+
+ const app = createApp({
setup() {
const product_id = ref(<?php echo $oProduct->getId(); ?>);
@@ -418,7 +412,7 @@ });
- })();
+ });
</script>
|
