diff --git a/core/lib/Thelia/Core/Template/Smarty/Plugins/UrlGenerator.php b/core/lib/Thelia/Core/Template/Smarty/Plugins/UrlGenerator.php
index aa96a0014..f1249697a 100755
--- a/core/lib/Thelia/Core/Template/Smarty/Plugins/UrlGenerator.php
+++ b/core/lib/Thelia/Core/Template/Smarty/Plugins/UrlGenerator.php
@@ -186,7 +186,8 @@ class UrlGenerator extends AbstractSmartyPlugin
protected function getCurrentUrl()
{
- return URL::getInstance()->retrieveCurrent($this->request)->toString();
+ //return URL::getInstance()->retrieveCurrent($this->request)->toString();
+ return $this->request->getUri();
}
protected function getReturnToUrl()
diff --git a/templates/default/assets/js/script.js b/templates/default/assets/js/script.js
index 18581ed1e..2bbba577f 100644
--- a/templates/default/assets/js/script.js
+++ b/templates/default/assets/js/script.js
@@ -126,31 +126,10 @@
}).filter(':has(:checked)').addClass('active');
});
+ $('#limit-top').change(function(e){
+ window.location = $(this).val()
+ });
- // Styliser le message Confirm par Bootstrap sur un formulaire
- /*
- $('body').on('click', '[data-confirm]', function(){
- var $this = $(this);
- bootbox.confirm($(this).attr('data-confirm'),
- function(result){
- if(result) {
- // Si lien
- if($this.attr('href')){
- window.location.href = $this.attr('href');
- }else{
- // Si on doit soumettre un formulaire
- var $form = $this.closest("form");
- if($form.size() > 0){
- $form.submit();
- }
- }
- }
- }
- );
-
- return false;
- });
- */
});
})(jQuery);
diff --git a/templates/default/category.html b/templates/default/category.html
index aa6f95c08..5c1516f45 100644
--- a/templates/default/category.html
+++ b/templates/default/category.html
@@ -20,13 +20,13 @@
{block name="main-content"}
-
+ {$limit={$smarty.get.limit|default:8}}
- {include file="includes/category-toolbar.html" toolbar="top"}
+ {include file="includes/category-toolbar.html" toolbar="top" limit=$limit}
- {loop type="product" name="product_list" category={category attr="id"}}
+ {loop type="product" name="product_list" category={category attr="id"} limit=$limit}
-
{include file="includes/single-product.html" product_id=$ID}
diff --git a/templates/default/includes/category-toolbar.html b/templates/default/includes/category-toolbar.html
index 98ce01434..8268d6393 100644
--- a/templates/default/includes/category-toolbar.html
+++ b/templates/default/includes/category-toolbar.html
@@ -5,11 +5,11 @@
per page
@@ -30,8 +30,8 @@
{intl l="View as"}:
-
-
+
+