diff options
| -rw-r--r-- | views/js/editable.js | 3 | ||||
| -rw-r--r-- | views/mods/mod_productvariants/productTemplate.phtml | 14 |
2 files changed, 12 insertions, 5 deletions
diff --git a/views/js/editable.js b/views/js/editable.js index c9ccda8..c2275ec 100644 --- a/views/js/editable.js +++ b/views/js/editable.js @@ -27,10 +27,11 @@ if (options.type == "select" && typeof options.data == "string")
{
-
+
// Normale Übergabe eines JSON Strings
opt.source = jQuery.parseJSON(options.data);
opt.type = 'select';
+ opt.value = options.value;
}
else if (options.type == 'multiarray')
diff --git a/views/mods/mod_productvariants/productTemplate.phtml b/views/mods/mod_productvariants/productTemplate.phtml index 3ca2b66..35f873a 100644 --- a/views/mods/mod_productvariants/productTemplate.phtml +++ b/views/mods/mod_productvariants/productTemplate.phtml @@ -6,8 +6,14 @@ ?>
-<?php foreach ($this->view['wpsg_mod_productvariants']['arVariants'] as $var) { ?>
-
-
+<div class="wpsg_mod_variants_product_wrap">
+ <?php foreach ($this->view['wpsg_mod_productvariants']['arVariants'] as $var) { ?>
-<?php } ?>
+ <div class="wpsg_mod_variants_product">
+
+
+
+ </div>
+
+ <?php } ?>
+</div>
|
