diff --git a/templates/frontOffice/default/assets/js/script.js b/templates/frontOffice/default/assets/js/script.js
index 2e5280b92..0fedc3517 100644
--- a/templates/frontOffice/default/assets/js/script.js
+++ b/templates/frontOffice/default/assets/js/script.js
@@ -55,29 +55,30 @@ var pseManager = (function($){
combinationValue = null,
combinationValueId = null;
- // get the select for options
- $("#pse-options .pse-option").each(function(){
- var $option = $(this);
- if ( $option.data("attribute") in PSE_COMBINATIONS){
- $pse['options'][$option.data("attribute")] = $option;
- $option.on("change", updateProductForm);
- } else {
- // not affected to this product -> remove
- $option.closest(".option").remove();
- }
- });
-
- // build select
- for (combinationValueId in PSE_COMBINATIONS_VALUE) {
- combinationValue = PSE_COMBINATIONS_VALUE[combinationValueId];
- $pse.options[combinationValue[1]]
- .append("");
- }
-
// initialization for the first default pse
$pse.pseId = $pse.id.val();
+
if (PSE_COUNT > 1) {
+ // get the select for options
+ $("#pse-options .pse-option").each(function(){
+ var $option = $(this);
+ if ( $option.data("attribute") in PSE_COMBINATIONS){
+ $pse['options'][$option.data("attribute")] = $option;
+ $option.on("change", updateProductForm);
+ } else {
+ // not affected to this product -> remove
+ $option.closest(".option").remove();
+ }
+ });
+
+ // build select
+ for (combinationValueId in PSE_COMBINATIONS_VALUE) {
+ combinationValue = PSE_COMBINATIONS_VALUE[combinationValueId];
+ $pse.options[combinationValue[1]]
+ .append("");
+ }
+
setPseForm();
}
}
diff --git a/templates/frontOffice/default/product.html b/templates/frontOffice/default/product.html
index e053283de..1ea52fcfe 100644
--- a/templates/frontOffice/default/product.html
+++ b/templates/frontOffice/default/product.html
@@ -32,24 +32,28 @@
{block name="main-content"}
{$product_id={product attr="id"}}
- {$pse_count={count type="product_sale_elements" product="$product_id"}}
+ {$pse_count=1}
{$check_availability={config key="check-available-stock" default="1"}}
{loop name="product.details" type="product" id="{product attr="id"}" limit="1" with_prev_next_info="1"}
+ {$pse_count=$PSE_COUNT}
+
{loop name="brand.feature" type="brand" product="{$ID}"}
{/loop}
+ {*
+
{loop name="isbn.feature" type="feature" product="{$ID}" title="isbn"}
{loop name="isbn.value" type="feature_value" feature="{$ID}" product="{product attr="id"}"}
{/loop}
{/loop}
-
+ *}
{ifloop rel="image.main"}
@@ -166,15 +170,15 @@
{if $pse_count > 1}
{* We have more than 1 combination: custom form *}