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

#   « Quantity layout on product page » doesn't work

##

- **[Flooder](/forum/user/23280-flooder "View Flooder's Profile")**
- [![Flooder's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar23280.png)](/forum/user/23280-flooder "View Flooder's Profile") Topic Author
- [ Offline](/forum/user/23280-flooder)

Less More

- Posts: 263
- Thank you received: 11
-
-

12 years 4 months ago [\#164064](#164064) by [Flooder](/forum/user/23280-flooder "View Flooder's Profile")  *[« Quantity layout on product page » doesn't work](/forum/3-bug-report/869702-quantity-layout-on-product-page-doesnt-work#164064 "Hello there, I think that « Quantity layout on product page » doesn't work if applied on a category. It doesn't apply to products in the category.  If I change « Quantity layout on product page » in a product, it works.  Thanks  Hikashop 2.3.2 Joomla 3.3.0 HikaMarket Multivendor: 1.4.1")* was created by *[Flooder](/forum/user/23280-flooder "View Flooder's Profile")*

Hello there,
I think that « Quantity layout on product page » doesn't work if applied on a category. It doesn't apply to products in the category.

If I change « Quantity layout on product page » in a product, it works.

Thanks

Hikashop 2.3.2
Joomla 3.3.0
HikaMarket Multivendor: 1.4.1

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84Njk3MDItcXVhbnRpdHktbGF5b3V0LW9uLXByb2R1Y3QtcGFnZS1kb2VzbnQtd29yaz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Flooder](/forum/user/23280-flooder "View Flooder's Profile")**
- [![Flooder's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar23280.png)](/forum/user/23280-flooder "View Flooder's Profile") Topic Author
- [ Offline](/forum/user/23280-flooder)

Less More

- Posts: 263
- Thank you received: 11
-
-

12 years 4 months ago -  12 years 4 months ago [\#164067](#164067) by [Flooder](/forum/user/23280-flooder "View Flooder's Profile")  Replied by *[Flooder](/forum/user/23280-flooder "View Flooder's Profile")* on topic *[« Quantity layout on product page » doesn't work](/forum/3-bug-report/869702-quantity-layout-on-product-page-doesnt-work#164067 "Hello there, I think that « Quantity layout on product page » doesn't work if applied on a category. It doesn't apply to products in the category.  If I change « Quantity layout on product page » in a product, it works.  Thanks  Hikashop 2.3.2 Joomla 3.3.0 HikaMarket Multivendor: 1.4.1")*

I can have « Show left and right » works on my product page with :

[ ![h9023e50.png](/forum/attachment/18450) ](/forum/attachment/18450 "h9023e50.png")

It doesn't work with « show_inversed » layout enabled.

[ ![h8256808.png](/forum/attachment/18449) ](/forum/attachment/18449 "h8256808.png")

Thanks

- [ ![h8256808.png](/forum/attachment/18449) ](/forum/attachment/18449 "h8256808.png") [ ](/forum/attachment/18449?download=1 "h8256808.png")
- [ ![h9023e50.png](/forum/attachment/18450) ](/forum/attachment/18450 "h9023e50.png") [ ](/forum/attachment/18450?download=1 "h9023e50.png")

Last edit: 12 years 4 months ago by [Flooder](/forum/user/23280-flooder "View Flooder's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84Njk3MDItcXVhbnRpdHktbGF5b3V0LW9uLXByb2R1Y3QtcGFnZS1kb2VzbnQtd29yaz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Flooder](/forum/user/23280-flooder "View Flooder's Profile")**
- [![Flooder's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar23280.png)](/forum/user/23280-flooder "View Flooder's Profile") Topic Author
- [ Offline](/forum/user/23280-flooder)

Less More

- Posts: 263
- Thank you received: 11
-
-

12 years 4 months ago [\#164070](#164070) by [Flooder](/forum/user/23280-flooder "View Flooder's Profile")  Replied by *[Flooder](/forum/user/23280-flooder "View Flooder's Profile")* on topic *[« Quantity layout on product page » doesn't work](/forum/3-bug-report/869702-quantity-layout-on-product-page-doesnt-work#164070 "Hello there, I think that « Quantity layout on product page » doesn't work if applied on a category. It doesn't apply to products in the category.  If I change « Quantity layout on product page » in a product, it works.  Thanks  Hikashop 2.3.2 Joomla 3.3.0 HikaMarket Multivendor: 1.4.1")*

It doesn't work with this setup too :

[ ![hbc6ffff.png](/forum/attachment/18451) ](/forum/attachment/18451 "hbc6ffff.png")

- [ ![hbc6ffff.png](/forum/attachment/18451) ](/forum/attachment/18451 "hbc6ffff.png") [ ](/forum/attachment/18451?download=1 "hbc6ffff.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84Njk3MDItcXVhbnRpdHktbGF5b3V0LW9uLXByb2R1Y3QtcGFnZS1kb2VzbnQtd29yaz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Flooder](/forum/user/23280-flooder "View Flooder's Profile")**
- [![Flooder's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar23280.png)](/forum/user/23280-flooder "View Flooder's Profile") Topic Author
- [ Offline](/forum/user/23280-flooder)

Less More

- Posts: 263
- Thank you received: 11
-
-

12 years 4 months ago [\#164085](#164085) by [Flooder](/forum/user/23280-flooder "View Flooder's Profile")  Replied by *[Flooder](/forum/user/23280-flooder "View Flooder's Profile")* on topic *[« Quantity layout on product page » doesn't work](/forum/3-bug-report/869702-quantity-layout-on-product-page-doesnt-work#164085 "Hello there, I think that « Quantity layout on product page » doesn't work if applied on a category. It doesn't apply to products in the category.  If I change « Quantity layout on product page » in a product, it works.  Thanks  Hikashop 2.3.2 Joomla 3.3.0 HikaMarket Multivendor: 1.4.1")*

In the file components/com_hikashop/views/product/view.html.php

I changed Code:

if(empty($productlayout)){ if(!empty($category-&gt;category_layout) &amp;&amp; $productDisplayType-&gt;check($category-&gt;category_layout, $app-&gt;getTemplate())) { $productlayout = $category-&gt;category_layout; break; } }

for
Code:

if(empty($productlayout)){ if(!empty($category-&gt;category_layout) &amp;&amp; $productDisplayType-&gt;check($category-&gt;category_layout, $app-&gt;getTemplate())) { $productlayout = $category-&gt;category_layout; // break; } }

It works! But is it the best solution?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84Njk3MDItcXVhbnRpdHktbGF5b3V0LW9uLXByb2R1Y3QtcGFnZS1kb2VzbnQtd29yaz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26401
- Thank you received: 4080
-
- [](http://obsi.dev)
-

12 years 4 months ago [\#164173](#164173) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[« Quantity layout on product page » doesn't work](/forum/3-bug-report/869702-quantity-layout-on-product-page-doesnt-work#164173 "Hello there, I think that « Quantity layout on product page » doesn't work if applied on a category. It doesn't apply to products in the category.  If I change « Quantity layout on product page » in a product, it works.  Thanks  Hikashop 2.3.2 Joomla 3.3.0 HikaMarket Multivendor: 1.4.1")*

Hi,

I don't understand your patch. It means that you are taking the last category configuration instead of the first one.
How many categories does your product have ?
What's the configuration for the other categories of your product ?

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84Njk3MDItcXVhbnRpdHktbGF5b3V0LW9uLXByb2R1Y3QtcGFnZS1kb2VzbnQtd29yaz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Flooder](/forum/user/23280-flooder "View Flooder's Profile")**
- [![Flooder's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar23280.png)](/forum/user/23280-flooder "View Flooder's Profile") Topic Author
- [ Offline](/forum/user/23280-flooder)

Less More

- Posts: 263
- Thank you received: 11
-
-

12 years 4 months ago -  12 years 4 months ago [\#164186](#164186) by [Flooder](/forum/user/23280-flooder "View Flooder's Profile")  Replied by *[Flooder](/forum/user/23280-flooder "View Flooder's Profile")* on topic *[« Quantity layout on product page » doesn't work](/forum/3-bug-report/869702-quantity-layout-on-product-page-doesnt-work#164186 "Hello there, I think that « Quantity layout on product page » doesn't work if applied on a category. It doesn't apply to products in the category.  If I change « Quantity layout on product page » in a product, it works.  Thanks  Hikashop 2.3.2 Joomla 3.3.0 HikaMarket Multivendor: 1.4.1")*

For the patch, I only commented the « break » line...

Without my little patch, when editing a category, just try to select something else than « inherited » for the « product_layout ».

You will see, the selected « quantity layout » doesn't apply to the product page if you choose something else than « inherited » for the « product_layout ».

[ ![h5dfb461.png](/forum/attachment/18470) ](/forum/attachment/18470 "h5dfb461.png")

- [ ![h5dfb461.png](/forum/attachment/18470) ](/forum/attachment/18470 "h5dfb461.png") [ ](/forum/attachment/18470?download=1 "h5dfb461.png")

Last edit: 12 years 4 months ago by [Flooder](/forum/user/23280-flooder "View Flooder's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84Njk3MDItcXVhbnRpdHktbGF5b3V0LW9uLXByb2R1Y3QtcGFnZS1kb2VzbnQtd29yaz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26401
- Thank you received: 4080
-
- [](http://obsi.dev)
-

12 years 4 months ago [\#164204](#164204) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[« Quantity layout on product page » doesn't work](/forum/3-bug-report/869702-quantity-layout-on-product-page-doesnt-work#164204 "Hello there, I think that « Quantity layout on product page » doesn't work if applied on a category. It doesn't apply to products in the category.  If I change « Quantity layout on product page » in a product, it works.  Thanks  Hikashop 2.3.2 Joomla 3.3.0 HikaMarket Multivendor: 1.4.1")*

Hi,

I understood your modification but even if it allows the the quantity layout to be set, it is not the good solution.
In your case, it is working but in other cases, it won't.
I will rewrite the all algorithm, when the "quantity layout" has been added, it wasn't added in the right place for this algorithm.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

The following user(s) said Thank You: [Flooder](/forum/user/23280-flooder "View Flooder's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84Njk3MDItcXVhbnRpdHktbGF5b3V0LW9uLXByb2R1Y3QtcGFnZS1kb2VzbnQtd29yaz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Flooder](/forum/user/23280-flooder "View Flooder's Profile")**
- [![Flooder's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar23280.png)](/forum/user/23280-flooder "View Flooder's Profile") Topic Author
- [ Offline](/forum/user/23280-flooder)

Less More

- Posts: 263
- Thank you received: 11
-
-

12 years 4 months ago [\#164525](#164525) by [Flooder](/forum/user/23280-flooder "View Flooder's Profile")  Replied by *[Flooder](/forum/user/23280-flooder "View Flooder's Profile")* on topic *[« Quantity layout on product page » doesn't work](/forum/3-bug-report/869702-quantity-layout-on-product-page-doesnt-work#164525 "Hello there, I think that « Quantity layout on product page » doesn't work if applied on a category. It doesn't apply to products in the category.  If I change « Quantity layout on product page » in a product, it works.  Thanks  Hikashop 2.3.2 Joomla 3.3.0 HikaMarket Multivendor: 1.4.1")*

POur planification, cette situation sera-t-elle corrigée pour la version 2.3.2?

Nous mettons beaucoup d'effort pour la migration vers la migration du nouveau show_quantity.php. Sans la correction du fichier components/com_hikashop/views/product/view.html.php, c'est peine perdue pour nous.

Sans rancune, merci

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84Njk3MDItcXVhbnRpdHktbGF5b3V0LW9uLXByb2R1Y3QtcGFnZS1kb2VzbnQtd29yaz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

12 years 3 months ago [\#164591](#164591) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[« Quantity layout on product page » doesn't work](/forum/3-bug-report/869702-quantity-layout-on-product-page-doesnt-work#164591 "Hello there, I think that « Quantity layout on product page » doesn't work if applied on a category. It doesn't apply to products in the category.  If I change « Quantity layout on product page » in a product, it works.  Thanks  Hikashop 2.3.2 Joomla 3.3.0 HikaMarket Multivendor: 1.4.1")*

Bonjour,

Cette modification sera faite le plus tôt possible.
En attendant vous pouvez utiliser votre modification qui vous permet d'avoir le résultat que vous attendez.

Dès que vous mettrez à jour, cette modification sera automatiquement supprimée par la nouvelle.

The following user(s) said Thank You: [Flooder](/forum/user/23280-flooder "View Flooder's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84Njk3MDItcXVhbnRpdHktbGF5b3V0LW9uLXByb2R1Y3QtcGFnZS1kb2VzbnQtd29yaz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

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

Time to create page: 0.092 seconds

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