diff options
| author | Daniel Schmitzer <noreply@maennchen1.de> | 2023-03-08 10:25:33 +0000 |
|---|---|---|
| committer | Daniel Schmitzer <noreply@maennchen1.de> | 2023-03-08 10:25:33 +0000 |
| commit | a8efa452edcf7420f50b3b23006305e8340393d1 (patch) | |
| tree | 2f55226f10089ee984f0f3f82ca22be38b8b1bef /views/mods | |
| parent | 0b9715749e40c4028c74d82eaaef45da8713b0ce (diff) | |
- Feature: EAN für Variationen (Produktvarianten)
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@8251 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/mods')
| -rw-r--r-- | views/mods/mod_productvariants/admin_edit.phtml | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/views/mods/mod_productvariants/admin_edit.phtml b/views/mods/mod_productvariants/admin_edit.phtml index 57d4f47..9bca475 100644 --- a/views/mods/mod_productvariants/admin_edit.phtml +++ b/views/mods/mod_productvariants/admin_edit.phtml @@ -303,7 +303,7 @@ });
</script>
-
+
<?php if (intval($this->view['product_id']) <= 0) { ?>
<span style="padding-left:15px;">
<span style="display:inline-block; margin-right:5px;"><?php echo __('Für alle Downloadplus Produkte:', 'wpsg'); ?></span>
@@ -316,6 +316,22 @@ </div>
<?php } ?>
+ <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>
+ </span>
+ <script>
+
+ 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']; ?>'
+ }
+ });
+
+ </script>
+ </div>
+
<script>
function wpsg_mod_downloadplus_setProducts(vari_id, active) {
|
