small fixes on frontoffice
This commit is contained in:
committed by
Julien Chanseaume
parent
e76ad60342
commit
bd5dd4a172
@@ -26,7 +26,8 @@
|
|||||||
{loop name="customer.update" type="address" customer="current" id="{$address_id}"}
|
{loop name="customer.update" type="address" customer="current" id="{$address_id}"}
|
||||||
<form id="form-address" class="form-horizontal" action="{url path="/address/update/{$address_id}"}" method="post">
|
<form id="form-address" class="form-horizontal" action="{url path="/address/update/{$address_id}"}" method="post">
|
||||||
{form_field form=$form field='success_url'}
|
{form_field form=$form field='success_url'}
|
||||||
<input type="hidden" name="{$name}" value="{url path="/account"}" />
|
{$next_url=$smarty.get.next|default:{url path="/account"}}
|
||||||
|
<input type="hidden" name="{$name}" value="{$next_url}" />
|
||||||
{/form_field}
|
{/form_field}
|
||||||
|
|
||||||
{form_field form=$form field='error_message'}
|
{form_field form=$form field='error_message'}
|
||||||
|
|||||||
@@ -25,6 +25,7 @@
|
|||||||
{form name="thelia.front.address.create"}
|
{form name="thelia.front.address.create"}
|
||||||
<form id="form-address" class="form-horizontal" action="{url path="/address/create"}" method="post">
|
<form id="form-address" class="form-horizontal" action="{url path="/address/create"}" method="post">
|
||||||
{form_field form=$form field='success_url'}
|
{form_field form=$form field='success_url'}
|
||||||
|
{$next_url=$smarty.get.next|default:{url path="/account"}}
|
||||||
<input type="hidden" name="{$name}" value="{url path="/account"}" />
|
<input type="hidden" name="{$name}" value="{url path="/account"}" />
|
||||||
{/form_field}
|
{/form_field}
|
||||||
|
|
||||||
|
|||||||
@@ -57,8 +57,13 @@ var pseManager = (function($){
|
|||||||
// get the select for options
|
// get the select for options
|
||||||
$("#pse-options .pse-option").each(function(){
|
$("#pse-options .pse-option").each(function(){
|
||||||
var $option = $(this);
|
var $option = $(this);
|
||||||
$pse['options'][$option.data("attribute")] = $option;
|
if ( $option.data("attribute") in PSE_COMBINATIONS){
|
||||||
$option.on("change", updateProductForm);
|
$pse['options'][$option.data("attribute")] = $option;
|
||||||
|
$option.on("change", updateProductForm);
|
||||||
|
} else {
|
||||||
|
// not affected to this product -> remove
|
||||||
|
$option.closest(".option").remove();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// build select
|
// build select
|
||||||
|
|||||||
@@ -65,9 +65,7 @@
|
|||||||
{/elseloop}
|
{/elseloop}
|
||||||
</td>
|
</td>
|
||||||
<td class="product" >
|
<td class="product" >
|
||||||
<h3 class="name"><a href="{$PRODUCT_URL}">
|
<h3 class="name"><a href="{$PRODUCT_URL}">{$TITLE}</a></h3>
|
||||||
{$TITLE}
|
|
||||||
</a></h3>
|
|
||||||
<div class="product-options">
|
<div class="product-options">
|
||||||
<dl class="dl-horizontal">
|
<dl class="dl-horizontal">
|
||||||
<dt>{intl l="Available"} :</dt>
|
<dt>{intl l="Available"} :</dt>
|
||||||
@@ -198,7 +196,6 @@
|
|||||||
{loop name="product_upsell" type="product" promo="yes" limit="5"}
|
{loop name="product_upsell" type="product" promo="yes" limit="5"}
|
||||||
{include file="includes/single-product.html" product_id=$ID hasBtn=false hasDescription=true width="218" height="146"}
|
{include file="includes/single-product.html" product_id=$ID hasBtn=false hasDescription=true width="218" height="146"}
|
||||||
{/loop}
|
{/loop}
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</aside><!-- #products-upsell -->
|
</aside><!-- #products-upsell -->
|
||||||
|
|||||||
@@ -39,7 +39,7 @@
|
|||||||
|
|
||||||
<div id="delivery-address" class="panel">
|
<div id="delivery-address" class="panel">
|
||||||
<div class="panel-heading clearfix">
|
<div class="panel-heading clearfix">
|
||||||
<a href="{url path="/address/create"}" class="btn btn-add-address">{intl l="Add a new address"}</a>
|
<a href="{url path="/address/create" next="{navigate to='current'}" }" class="btn btn-add-address">{intl l="Add a new address"}</a>
|
||||||
{intl l="Choose your delivery address"}
|
{intl l="Choose your delivery address"}
|
||||||
{if $error}
|
{if $error}
|
||||||
<span class="help-block"><span class="icon-remove"></span> {$message}</span>
|
<span class="help-block"><span class="icon-remove"></span> {$message}</span>
|
||||||
@@ -97,7 +97,7 @@
|
|||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<div class="group-btn">
|
<div class="group-btn">
|
||||||
<a href="{url path="/address/update/{$ID}"}" class="btn btn-edit-address" data-toggle="tooltip" title="{intl l="Edit this address"}"><i class="icon-pencil"></i> <span>{intl l="Edit"}</span></a>
|
<a href="{url path="/address/update/{$ID}" next="{navigate to='current'}"}" class="btn btn-edit-address" data-toggle="tooltip" title="{intl l="Edit this address"}"><i class="icon-pencil"></i> <span>{intl l="Edit"}</span></a>
|
||||||
{if $DEFAULT != 1}
|
{if $DEFAULT != 1}
|
||||||
<a href="{url path="/address/delete/{$ID}"}" class="btn btn-remove-address" data-confirm="{intl l="Do you really want to delete this address ?"}" data-confirm-callback="address.delete" title="{intl l="Remove this address"}" data-toggle="tooltip"><i class="icon-remove"></i> <span>{intl l="Cancel"}</span></a>
|
<a href="{url path="/address/delete/{$ID}"}" class="btn btn-remove-address" data-confirm="{intl l="Do you really want to delete this address ?"}" data-confirm-callback="address.delete" title="{intl l="Remove this address"}" data-toggle="tooltip"><i class="icon-remove"></i> <span>{intl l="Cancel"}</span></a>
|
||||||
{/if}
|
{/if}
|
||||||
|
|||||||
Reference in New Issue
Block a user