diff --git a/core/lib/Thelia/Config/Resources/routing/front.xml b/core/lib/Thelia/Config/Resources/routing/front.xml index 981e8130f..cf7797cc9 100755 --- a/core/lib/Thelia/Config/Resources/routing/front.xml +++ b/core/lib/Thelia/Config/Resources/routing/front.xml @@ -95,6 +95,11 @@ + + Thelia\Controller\Front\DefaultController::noAction + cart + + Thelia\Controller\Front\CartController::addItem diff --git a/core/lib/Thelia/Controller/Front/BaseFrontController.php b/core/lib/Thelia/Controller/Front/BaseFrontController.php index 54ac1d703..5892194a4 100755 --- a/core/lib/Thelia/Controller/Front/BaseFrontController.php +++ b/core/lib/Thelia/Controller/Front/BaseFrontController.php @@ -64,7 +64,7 @@ class BaseFrontController extends BaseController { $cart = $this->getSession()->getCart(); if ($cart===null || $cart->countCartItems() == 0) { - $this->redirectToRoute('default', array('view'=>'cart')); + $this->redirectToRoute('cart.view'); } } diff --git a/core/lib/Thelia/Controller/Front/CustomerController.php b/core/lib/Thelia/Controller/Front/CustomerController.php index a51fb98bc..23f2e0f30 100755 --- a/core/lib/Thelia/Controller/Front/CustomerController.php +++ b/core/lib/Thelia/Controller/Front/CustomerController.php @@ -109,7 +109,7 @@ class CustomerController extends BaseFrontController $cart = $this->getCart($this->getRequest()); if ($cart->getCartItems()->count() > 0) { - $this->redirectToRoute('default', array('view'=>'cart')); + $this->redirectToRoute('cart.view'); } else { $this->redirectSuccess($customerCreation); } diff --git a/core/lib/Thelia/Controller/Front/OrderController.php b/core/lib/Thelia/Controller/Front/OrderController.php index 21aa22f4f..bb0604bd1 100755 --- a/core/lib/Thelia/Controller/Front/OrderController.php +++ b/core/lib/Thelia/Controller/Front/OrderController.php @@ -197,7 +197,7 @@ class OrderController extends BaseFrontController $this->redirect(URL::getInstance()->absoluteUrl($this->getRoute('order.placed', array('order_id' => $orderEvent->getPlacedOrder()->getId())))); } else { /* order has not been placed */ - $this->redirectToRoute('default', array('view'=>'cart')); + $this->redirectToRoute('cart.view'); } } diff --git a/templates/admin/default/customer-edit.html b/templates/admin/default/customer-edit.html index 6fea48aea..71c6b8695 100644 --- a/templates/admin/default/customer-edit.html +++ b/templates/admin/default/customer-edit.html @@ -29,7 +29,7 @@
- {form name="thelia.admin.customer.modification"} + {form name="thelia.admin.customer.update"}
diff --git a/templates/default/account.html b/templates/default/account.html index 50d37e7d3..100080768 100644 --- a/templates/default/account.html +++ b/templates/default/account.html @@ -58,7 +58,7 @@
  • - + {intl l="Change my password"}
  • diff --git a/templates/default/layout.tpl b/templates/default/layout.tpl index 37d275aa9..6933dbb26 100644 --- a/templates/default/layout.tpl +++ b/templates/default/layout.tpl @@ -222,22 +222,29 @@ URL: http://www.thelia.net
    -

    Usefull links

    +

    {intl l="Usefull links"}

    -

    Follow us

    +

    {intl l="Follow us"}

    Lorem ipsum dolor sit amet, consectetur adipisicing elit.