diff --git a/admin/themes/default/template/controllers/normal_products/helpers/form/form.tpl b/admin/themes/default/template/controllers/normal_products/helpers/form/form.tpl index 3fe9645bf..2c869bd3c 100644 --- a/admin/themes/default/template/controllers/normal_products/helpers/form/form.tpl +++ b/admin/themes/default/template/controllers/normal_products/helpers/form/form.tpl @@ -79,8 +79,10 @@ var product_type_virtual = {Product::PTYPE_VIRTUAL|intval}; var product_type_simple = {Product::PTYPE_SIMPLE|intval}; - var with_room_type = {Product::SERVICE_PRODUCT_WITH_ROOMTYPE|intval}; - var without_room_type = {Product::SERVICE_PRODUCT_WITHOUT_ROOMTYPE|intval}; + var SELLING_PREFERENCE_WITH_ROOM_TYPE = {Product::SELLING_PREFERENCE_WITH_ROOM_TYPE|intval}; + var SELLING_PREFERENCE_HOTEL_STANDALONE = {Product::SELLING_PREFERENCE_HOTEL_STANDALONE|intval}; + var SELLING_PREFERENCE_HOTEL_STANDALONE_AND_WITH_ROOM_TYPE = {Product::SELLING_PREFERENCE_HOTEL_STANDALONE_AND_WITH_ROOM_TYPE|intval}; + var SELLING_PREFERENCE_STANDALONE = {Product::SELLING_PREFERENCE_STANDALONE|intval}; var price_addition_type_with_room = {Product::PRICE_ADDITION_TYPE_WITH_ROOM|intval}; var price_addition_type_independent = {Product::PRICE_ADDITION_TYPE_INDEPENDENT|intval}; diff --git a/admin/themes/default/template/controllers/normal_products/informations.tpl b/admin/themes/default/template/controllers/normal_products/informations.tpl index 74d3a5b85..10414fa35 100644 --- a/admin/themes/default/template/controllers/normal_products/informations.tpl +++ b/admin/themes/default/template/controllers/normal_products/informations.tpl @@ -232,11 +232,27 @@ var product_name_redirected = '{$product_name_redirected|escape:'html':'UTF-8'}'; -
+
{l s='This requires you to enable advanced stock management.'}
+ {elseif $product->cache_is_pack} +{l s='When enabling advanced stock management for a pack, please make sure it is also enabled for its product(s) – if you choose to decrement product quantities.'}
+ {/if} +
+
+ {l s='You cannot use advanced stock management for this pack if'}
+ {l s='- advanced stock management is not enabled for these products'}
+ {l s='- you have chosen to decrement products quantities.'}
+
+
+
+
+
+
{l s='When a product has combinations, quantities will be based on the default combination.'}
+{l s='Given the quantities of the products in this pack, the maximum quantity should be:'} {$pack_quantity}
+| {l s='Quantity'} | +{l s='Designation'} | +
|---|---|
| + {$available_quantity[$attribute['id_product_attribute']]} + + | +{$product_designation[$attribute['id_product_attribute']]} | +
+
+
+
{l s='It is not possible to manage quantities when:'}
+{l s='The minimum quantity to buy this product (set to 1 to disable this feature)'}
+{l s='The next date of availability for this product when it is out of stock.'}
+{$product['name']|escape:'html':'UTF-8'}
| {l s='Image'} | +{l s='Name'} | +{l s='Quantity'} | +{l s='Price (Tax excl.)'} | +{l s='Total Tax'} | +{l s='Total Price (Tax incl.)'} | + {if isset($refundReqProducts) && $refundReqProducts} +{l s='Refund State'} | +{l s='Refunded amount'} | + {/if} + {if $can_edit} +{l s='Actions'} | + {/if} +
|---|---|---|---|---|---|---|---|---|
|
+ {if isset($product.image_link) && $product.image_link}
+ |
+
+
+ {$product['name']}{if isset($product['option_name']) && $product['option_name']} : {$product['option_name']}{/if} + + |
+ + {(int)$product['quantity']} + | +
+ {displayPrice price=$product.total_price_tax_excl currency=$currency->id} +{l s='Unit price'} : {displayPrice price=$product.unit_price_tax_excl currency=$currency->id} + |
+ + {displayPrice price=($product.total_price_tax_incl - $product.total_price_tax_excl) currency=$currency->id} + | ++ {displayPrice price=$product.total_price_tax_incl currency=$currency->id} + | + {if (isset($refundReqProducts) && $refundReqProducts)} ++ {if $product.id_service_product_order_detail|in_array:$refundReqProducts} + {if $product.is_cancelled} + {l s='Cancelled'} + {elseif isset($product.refund_info) && (!$product.refund_info.refunded || $product.refund_info.id_customization)} + {$product.refund_info.name|escape:'html':'UTF-8'} + {else} + -- + {/if} + {else} + -- + {/if} + | ++ {if $product.is_refunded && isset($product.refund_info) && $product.refund_info} + {convertPriceWithCurrency price=$product.refund_info.refunded_amount currency=$currency->id} + {else} + -- + {/if} + | + {/if} + {if ($can_edit && !$order->hasBeenDelivered())} + +
+ {* edit/delete controls *}
+
+ {* *}
+
+
+
+
+ {* Update controls *}
+ {*
+ *}
+ |
+ {/if}
+
--
- {else} - - {/if} -| {l s='Room No.'} | *} -{l s='Image'} | -{l s='Name'} | -{l s='Unit Price (Tax excl.)'} | -{l s='Quantity'} | -{l s='Total Price (Tax incl.)'} | - {* {if isset($refundReqBookings) && $refundReqBookings} -{l s='Refund State'} | -{l s='Refunded amount'} | - {/if} *} - {*{l s='Reallocate Room'} | *} - {if ($can_edit && !$order->hasBeenDelivered())} -{l s='Edit Order'} | - {/if} -
|---|---|---|---|---|---|---|---|---|---|
| {l s='No Data Found.'} | -
| {l s='Image'} | +{l s='Name'} | +{l s='Quantity'} | +{l s='Price (Tax excl.)'} | +{l s='Total Tax'} | +{l s='Total Price (Tax incl.)'} | + {if isset($refundReqProducts) && $refundReqProducts} +{l s='Refund State'} | +{l s='Refunded amount'} | + {/if} + {if ($can_edit)} +{l s='Actions'} | + {/if} +
|---|---|---|---|---|---|---|---|---|
|
+ {if isset($product.image_link) && $product.image_link}
+ |
+
+
+ {$product['name']}{if $product['option_name']} : {$product['option_name']}{/if} + + |
+ + {(int)$product['quantity']} + | +
+ {displayPrice price=$product.total_price_tax_excl currency=$currency->id} +{l s='Unit price'} : {displayPrice price=$product.unit_price_tax_excl currency=$currency->id} + |
+ + {displayPrice price=($product.total_price_tax_incl - $product.total_price_tax_excl) currency=$currency->id} + | ++ {displayPrice price=$product.total_price_tax_incl currency=$currency->id} + | + {if (isset($refundReqProducts) && $refundReqProducts)} ++ {if $product.id_service_product_order_detail|in_array:$refundReqProducts} + {if $product.is_cancelled} + {l s='Cancelled'} + {elseif isset($product.refund_info) && (!$product.refund_info.refunded || $product.refund_info.id_customization)} + {$product.refund_info.name|escape:'html':'UTF-8'} + {else} + -- + {/if} + {else} + -- + {/if} + | ++ {if $product.is_refunded && isset($product.refund_info) && $product.refund_info} + {convertPriceWithCurrency price=$product.refund_info.refunded_amount currency=$currency->id} + {else} + -- + {/if} + | + {/if} + {if ($can_edit && !$order->hasBeenDelivered())} + +
+ {* edit/delete controls *}
+
+ {* *}
+
+
+
+
+ {* Update controls *}
+ {*
+ *}
+ |
+ {/if}
+