فهرست منبع

add customfields to card

andre 4 سال پیش
والد
کامیت
1dca943901
1فایلهای تغییر یافته به همراه12 افزوده شده و 10 حذف شده
  1. 12 10
      viewcart.tpl

+ 12 - 10
viewcart.tpl

@@ -282,15 +282,6 @@
                                                             </span>													
                                                             <span class="item-title">
                                                                 {$product.productinfo.name}
-                                                                {if $product.customfields}
-                                                                    <span class="item-domain">
-                                                                        {if $product.productinfo.gid === 5 || $product.productinfo.gid === 7} {* Groupware & VDC*}
-                                                                            &nbsp; {$product.customfields.0.value} {* maildomain & VDC Name *}
-                                                                        {else if $product.productinfo.gid === 1 || $product.productinfo.gid === 8} {* private Mail & private Mail + Nextcloud*}
-                                                                            &nbsp; {$product.customfields.2.value}@{$product.customfields.3.value} {* mailadress *}
-                                                                        {/if}
-                                                                    </span>
-                                                                {/if}
                                                                 <a href="{$smarty.server.PHP_SELF}?a=confproduct&i={$num}" class="btn btn-icon btn-xs" data-toggle="tooltip" data-placement="top" data-trigger="manual" title="{$LANG.orderForm.edit}">
                                                                     <i class="fas fa-edit"></i>
                                                                 </a>
@@ -305,7 +296,18 @@
                                                                     <i>{$product.domain}</i>
                                                                 </span>
                                                             {/if}
-                                                            {if $product.configoptions}
+                                                            {if $product.customfields}
+                                                                <span class="item-domain">
+                                                                    <i>
+                                                                        {if $product.productinfo.gid === 5 || $product.productinfo.gid === 7} {* Groupware & VDC*}
+                                                                            &nbsp; {$product.customfields.0.value} {* maildomain & VDC Name *}
+                                                                        {else if $product.productinfo.gid === 1 || $product.productinfo.gid === 8} {* private Mail & private Mail + Nextcloud*}
+                                                                            &nbsp; {$product.customfields.2.value}@{$product.customfields.3.value} {* mailadress *}
+                                                                        {/if}
+                                                                    </i>
+                                                                </span>
+                                                            {/if}
+                                                        {if $product.configoptions}
                                                                 <div class="item-configoption">
                                                                     <small>
                                                                         {foreach key=confnum item=configoption from=$product.configoptions}