summaryrefslogtreecommitdiff
path: root/views/mods
diff options
context:
space:
mode:
authorDaniel Schmitzer <noreply@maennchen1.de>2023-03-09 05:49:16 +0000
committerDaniel Schmitzer <noreply@maennchen1.de>2023-03-09 05:49:16 +0000
commit681e2bd267d2fbe8d4440551b66ba54d27e6d921 (patch)
tree429936007423514cc7829c4ff0c9b63f6ffddbfc /views/mods
parenta8efa452edcf7420f50b3b23006305e8340393d1 (diff)
- Feature: EAN für Variationen (Produktvarianten)
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@8254 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/mods')
-rw-r--r--views/mods/mod_productvariants/admin_edit.phtml5
1 files changed, 4 insertions, 1 deletions
diff --git a/views/mods/mod_productvariants/admin_edit.phtml b/views/mods/mod_productvariants/admin_edit.phtml
index 9bca475..ebfc9a6 100644
--- a/views/mods/mod_productvariants/admin_edit.phtml
+++ b/views/mods/mod_productvariants/admin_edit.phtml
@@ -316,6 +316,7 @@
</div>
<?php } ?>
+ <?php if (wpsg_isSizedInt($this->view['product_id'])) { ?>
<div style="margin-top:0.25rem;">
<span>EAN:
<span title="<?php echo __('EAN der Produktvariation', 'wpsg'); ?>" class="wpsg_editable" id="productvariation_ean_<?php echo $vari['id']; ?>"><?php echo $vari['ean']??''; ?></span>
@@ -325,12 +326,14 @@
jQuery('#productvariation_ean_<?php echo $vari['id']; ?>').wpsg_editable('<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_productvariants&subaction=admin_inlineEdit&noheader=1', {
submitdata: {
field: 'ean',
- field_id: '<?php echo $vari['id']; ?>'
+ product_id: <?php echo $this->view['product_id']; ?>,
+ field_id: '<?php echo $vari['id']; ?>'
}
});
</script>
</div>
+ <?php } ?>
<script>