Merge branch 'development' of github.com:202-ecommerce/PrestaShop into development
This commit is contained in:
@@ -58,8 +58,8 @@
|
||||
{if $category->description}
|
||||
<div class="cat_desc">
|
||||
{if strlen($category->description) > 120}
|
||||
<p id="category_description_short">{$category->description|truncate:120}</p>
|
||||
<p id="category_description_full" style="display:none">{$category->description}</p>
|
||||
<div id="category_description_short">{$category->description|truncate:120}</div>
|
||||
<div id="category_description_full" style="display:none;">{$category->description}</div>
|
||||
<a href="#" onclick="$('#category_description_short').hide(); $('#category_description_full').show(); $(this).hide(); return false;" class="lnk_more">{l s='More'}</a>
|
||||
{else}
|
||||
<p>{$category->description}</p>
|
||||
|
||||
@@ -58,7 +58,7 @@
|
||||
<select id="id_contact" name="id_contact" onchange="showElemFromSelect('id_contact', 'desc_contact')">
|
||||
<option value="0">{l s='-- Choose --'}</option>
|
||||
{foreach from=$contacts item=contact}
|
||||
<option value="{$contact.id_contact|intval}" {if isset($smarty.post.id_contact) && $smarty.post.id_contact == $contact.id_contact}selected="selected"{/if}>{$contact.name|escape:'htmlall':'UTF-8'}</option>
|
||||
<option value="{$contact.id_contact|intval}" {if isset($smarty.request.id_contact) && $smarty.request.id_contact == $contact.id_contact}selected="selected"{/if}>{$contact.name|escape:'htmlall':'UTF-8'}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</p>
|
||||
|
||||
@@ -766,7 +766,7 @@ function multishippingMode(it)
|
||||
'transitionIn': 'elastic',
|
||||
'transitionOut': 'elastic',
|
||||
'type': 'ajax',
|
||||
'onClosed': function()
|
||||
'beforeClose': function()
|
||||
{
|
||||
// Reload the cart
|
||||
$.ajax({
|
||||
@@ -783,7 +783,7 @@ function multishippingMode(it)
|
||||
});
|
||||
updateCarrierSelectionAndGift();
|
||||
},
|
||||
'onStart': function()
|
||||
'beforeLoad': function()
|
||||
{
|
||||
// Removing all ids on the cart to avoid conflic with the new one on the fancybox
|
||||
// This action could "break" the cart design, if css rules use ids of the cart
|
||||
|
||||
@@ -27,9 +27,11 @@ var productcomments_controller_url = '{$productcomments_controller_url}';
|
||||
var confirm_report_message = "{l s='Are you sure you want report this comment?' mod='productcomments'}";
|
||||
var secure_key = "{$secure_key}";
|
||||
var productcomments_url_rewrite = '{$productcomments_url_rewriting_activated}';
|
||||
var productcomment_added = '{l s='Your comment has been added !' mod='productcomments'}';
|
||||
var productcomment_added = '{l s='Your comment has been added!' mod='productcomments'}';
|
||||
var productcomment_added_moderation = '{l s='Your comment has been added and will be available once approved by a moderator' mod='productcomments'}';
|
||||
var productcomment_title = '{l s='New comment' mod='productcomments'}';
|
||||
var productcomment_ok = '{l s='OK' mod='productcomments'}';
|
||||
var moderation_active = {$moderation_active};
|
||||
</script>
|
||||
|
||||
<div id="idTab5">
|
||||
@@ -74,11 +76,13 @@ var productcomment_ok = '{l s='OK' mod='productcomments'}';
|
||||
</div>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{if (!$too_early AND ($logged OR $allow_guests))}
|
||||
<p class="align_center">
|
||||
<a id="new_comment_tab_btn" class="open-comment-form" href="#new_comment_form">{l s='Write your review' mod='productcomments'} !</a>
|
||||
</p>
|
||||
{/if}
|
||||
{else}
|
||||
{if ($too_early == false AND ($logged OR $allow_guests))}
|
||||
{if (!$too_early AND ($logged OR $allow_guests))}
|
||||
<p class="align_center">
|
||||
<a id="new_comment_tab_btn" class="open-comment-form" href="#new_comment_form">{l s='Be the first to write your review' mod='productcomments'} !</a>
|
||||
</p>
|
||||
@@ -139,7 +143,7 @@ var productcomment_ok = '{l s='OK' mod='productcomments'}';
|
||||
{/if}
|
||||
|
||||
<div id="new_comment_form_footer">
|
||||
<input id="id_product_comment_send" name="id_product" type="hidden" value='{$id_product_comment_form}'></input>
|
||||
<input id="id_product_comment_send" name="id_product" type="hidden" value='{$id_product_comment_form}' />
|
||||
<p class="fl required"><sup>*</sup> {l s='Required fields' mod='productcomments'}</p>
|
||||
<p class="fr">
|
||||
<button id="submitNewMessage" name="submitMessage" type="submit">{l s='Send' mod='productcomments'}</button>
|
||||
|
||||
@@ -433,17 +433,10 @@ var fieldRequired = '{l s='Please fill in all the required fields before saving
|
||||
{/if}
|
||||
{*close if for show price*}
|
||||
{/if}
|
||||
{if (!$allow_oosp && $product->quantity <= 0) OR !$product->available_for_order OR (isset($restricted_country_mode) AND $restricted_country_mode) OR $PS_CATALOG_MODE}
|
||||
<span class="exclusive">
|
||||
<span></span>
|
||||
{l s='Add to cart'}
|
||||
</span>
|
||||
{else}
|
||||
<p id="add_to_cart" class="buttons_bottom_block">
|
||||
<span></span>
|
||||
<input type="submit" name="Submit" value="{l s='Add to cart'}" class="exclusive" />
|
||||
</p>
|
||||
{/if}
|
||||
<p id="add_to_cart" {if (!$allow_oosp && $product->quantity <= 0) OR !$product->available_for_order OR (isset($restricted_country_mode) AND $restricted_country_mode) OR $PS_CATALOG_MODE}style="display:none"{/if} class="buttons_bottom_block">
|
||||
<span></span>
|
||||
<input type="submit" name="Submit" value="{l s='Add to cart'}" class="exclusive" />
|
||||
</p>
|
||||
{if isset($HOOK_PRODUCT_ACTIONS) && $HOOK_PRODUCT_ACTIONS}{$HOOK_PRODUCT_ACTIONS}{/if}
|
||||
|
||||
<div class="clear"></div>
|
||||
|
||||
Reference in New Issue
Block a user