[Skip to main content](#vessel-content)

#  Profile for mazard

##

[![mazard's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/38821-mazard "View mazard's Profile")

**[ Offline](/forum/user/38821-mazard)**

- **User Type:** User

- **Register Date:** 19 Sep 2015
- **Last login:** 10 years 11 months ago
- **Time Zone:**  UTC +0:00
- **Local Time:** 07:16

- **Posts:** 4
- **Profile views:** 22

- **Gender:** Unknown
- **Birthdate:** Unknown

- Posts

#  mazard's recent posts  (4 messages )

All Since last visit 4 Hours 8 Hours 12 Hours 24 Hours 48 Hours Week Month Year     All Since last visit 4 Hours 8 Hours 12 Hours 24 Hours 48 Hours Week Month Year

| <a id="forumtop"> </a> [  ](#forumbottom) | Subject | Replies / Views | Last Post | <a id="forumbottom"> </a> [   ](#forumtop) |
|---|---|---|---|---|
| [](/forum/26-product-category-display/881172-category-and-product-display-very-slow#224612) | [Category and product display very slow](/forum/26-product-category-display/881172-category-and-product-display-very-slow#224612 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.4.6  Hi,  I have the business version of hikashop configured to show a list of categories in the left with the product listing in the center of my page.  Everything worked fine until I started creating some products. Then it started to slow down, and it takes 43 seconds to load the page...  I traced the problem and found out that this query that takes 30 seconds to execute: SELECT DISTINCT b.&#42; FROM j5yie&#95;hikashop&#95;product&#95;category AS a LEFT JOIN j5yie&#95;hikashop&#95;product AS b ON a.product&#95;id=b.product&#95;id WHERE b.product&#95;published=1 AND b.product&#95;type = 'main' AND a.category&#95;id IN (2) AND b.product&#95;quantity!=0 AND (b.product&#95;access = 'all' OR b.product&#95;access LIKE '%,9,%') ORDER BY a.ordering ASC LIMIT 0, 30  I have 63000 registers in the category table and 28000 registers in the product table. It isn't so much from my point of view.  My solution was to remove the order by clause of the query, editing the line 588 of components/com&#95;hikashop/views/product/view.html.php (adding an &quot;if&quot; to only impact my specific query).  I think the ordering of the products and categories in my page is working without problems anyway. So my question is, which is the reason to have the order by clause in this query.  And, as I had to modify a core hikashop file to make it work, will any update remove my code? Is it possible to override the method like in the templates?  Regads, Albert")        Category: [Product &amp; Category Display](/forum/26-product-category-display "Questions about product and category display. You can't find how to make Hikashop looks incredible? The answer is here!")     Topic started 10 years 11 months ago, by [mazard](/forum/user/38821-mazard "View mazard's Profile")       [Last Post](/forum/26-product-category-display/881172-category-and-product-display-very-slow#224662 "Hi,  The order by allows you to get the products in the order that you define in the &quot;order&quot; column of your products listing in the backend. By default that order is the order in which you created the products, so if you delete that order by and don't alter manually the ordering of the products, then indeed, you won't see any difference. But it's still something really useful for a lot of people so it's not possible to remove it as it would break the proper functionality of the listing.  And yes, you will loose your change if you remove it directly from the view.html.php file. You can actually create a small plugin implementing the onBeforeProductListingLoad trigger:   www.hikashop.com/support/support/documen...reProductListingLoad  There, you can modify the $order parameter in order to deal with the order by of that query. That way, you won't loose that change with future updates.") 10 years 11 months ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:1  Views:512 | [Last Post](/forum/26-product-category-display/881172-category-and-product-display-very-slow#224662 "Hi,  The order by allows you to get the products in the order that you define in the &quot;order&quot; column of your products listing in the backend. By default that order is the order in which you created the products, so if you delete that order by and don't alter manually the ordering of the products, then indeed, you won't see any difference. But it's still something really useful for a lot of people so it's not possible to remove it as it would break the proper functionality of the listing.  And yes, you will loose your change if you remove it directly from the view.html.php file. You can actually create a small plugin implementing the onBeforeProductListingLoad trigger:   www.hikashop.com/support/support/documen...reProductListingLoad  There, you can modify the $order parameter in order to deal with the order by of that query. That way, you won't loose that change with future updates.") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      10 years 11 months ago |
| [](/forum/27-checkout/879365-hikashop-restricted-payment-method-not-working-ok#215065) | [Hikashop restricted payment method not working ok](/forum/27-checkout/879365-hikashop-restricted-payment-method-not-working-ok#215065 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.4.3  Hi,  I have this setup configured:  Product 1 belongs to Warehouse 1 Product 2 belongs to Warehouse 2  Shipping 1 restricted to Warehouse 1 Shipping 2 restricted to Warehouse 2  Payment method 1 restricted to Shipping 1 Payment method 2 restricted to Shipping 2  I add to my cart the product 1 and the product 2 and in the checkout page when I get to the payment method's page it only shows the payment method of the first product added to the cart. If the first added is the product 1 it only shows the payment method 1 and when the first product added is the product 2 it only shows the payment method 2.  Why is this happening? It show show both payments, isn't it?  Regards,")        Category: [Checkout](/forum/27-checkout "Everything about the checkout process in Hikashop")     Topic started 11 years 2 months ago, by [mazard](/forum/user/38821-mazard "View mazard's Profile")       [Last Post](/forum/27-checkout/879365-hikashop-restricted-payment-method-not-working-ok#215079 "Well, when you pay for an order on an ecommerce website, you're redirected to the payment gateway of the payment method you selected at the end of the checkout, you make the payment for the whole...") 11 years 2 months ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:5  Views:535 | [Last Post](/forum/27-checkout/879365-hikashop-restricted-payment-method-not-working-ok#215079 "Well, when you pay for an order on an ecommerce website, you're redirected to the payment gateway of the payment method you selected at the end of the checkout, you make the payment for the whole...") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      11 years 2 months ago |
| [](/forum/27-checkout/879365-hikashop-restricted-payment-method-not-working-ok#214910) | [Hikashop restricted payment method not working ok](/forum/27-checkout/879365-hikashop-restricted-payment-method-not-working-ok#214910 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.4.3  Hi,  I have this setup configured:  Product 1 belongs to Warehouse 1 Product 2 belongs to Warehouse 2  Shipping 1 restricted to Warehouse 1 Shipping 2 restricted to Warehouse 2  Payment method 1 restricted to Shipping 1 Payment method 2 restricted to Shipping 2  I add to my cart the product 1 and the product 2 and in the checkout page when I get to the payment method's page it only shows the payment method of the first product added to the cart. If the first added is the product 1 it only shows the payment method 1 and when the first product added is the product 2 it only shows the payment method 2.  Why is this happening? It show show both payments, isn't it?  Regards,")        Category: [Checkout](/forum/27-checkout "Everything about the checkout process in Hikashop")     Topic started 11 years 2 months ago, by [mazard](/forum/user/38821-mazard "View mazard's Profile")       [Last Post](/forum/27-checkout/879365-hikashop-restricted-payment-method-not-working-ok#215079 "Well, when you pay for an order on an ecommerce website, you're redirected to the payment gateway of the payment method you selected at the end of the checkout, you make the payment for the whole...") 11 years 2 months ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:5  Views:535 | [Last Post](/forum/27-checkout/879365-hikashop-restricted-payment-method-not-working-ok#215079 "Well, when you pay for an order on an ecommerce website, you're redirected to the payment gateway of the payment method you selected at the end of the checkout, you make the payment for the whole...") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      11 years 2 months ago |
| [](/forum/27-checkout/879365-hikashop-restricted-payment-method-not-working-ok#214678) | [Hikashop restricted payment method not working ok](/forum/27-checkout/879365-hikashop-restricted-payment-method-not-working-ok#214678 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.4.3  Hi,  I have this setup configured:  Product 1 belongs to Warehouse 1 Product 2 belongs to Warehouse 2  Shipping 1 restricted to Warehouse 1 Shipping 2 restricted to Warehouse 2  Payment method 1 restricted to Shipping 1 Payment method 2 restricted to Shipping 2  I add to my cart the product 1 and the product 2 and in the checkout page when I get to the payment method's page it only shows the payment method of the first product added to the cart. If the first added is the product 1 it only shows the payment method 1 and when the first product added is the product 2 it only shows the payment method 2.  Why is this happening? It show show both payments, isn't it?  Regards,")        Category: [Checkout](/forum/27-checkout "Everything about the checkout process in Hikashop")     Topic started 11 years 2 months ago, by [mazard](/forum/user/38821-mazard "View mazard's Profile")       [Last Post](/forum/27-checkout/879365-hikashop-restricted-payment-method-not-working-ok#215079 "Well, when you pay for an order on an ecommerce website, you're redirected to the payment gateway of the payment method you selected at the end of the checkout, you make the payment for the whole...") 11 years 2 months ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:5  Views:535 | [Last Post](/forum/27-checkout/879365-hikashop-restricted-payment-method-not-working-ok#215079 "Well, when you pay for an order on an ecommerce website, you're redirected to the payment gateway of the payment method you selected at the end of the checkout, you make the payment for the whole...") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      11 years 2 months ago |

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.044 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
