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

#   Using the "No Stock" option breaks the layout

##

- **[randam](/forum/user/4363-randam "View randam's Profile")**
- [![randam's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4363-randam "View randam's Profile") Topic Author
- [ Offline](/forum/user/4363-randam)

Less More

- Posts: 10
- Thank you received: 0
-
-

14 years 9 months ago [\#34061](#34061) by [randam](/forum/user/4363-randam "View randam's Profile")  *[Using the "No Stock" option breaks the layout](/forum/4-how-to/34061-using-the-no-stock-option-breaks-the-layout#34061 "Hi,  I can't figure out what is wrong or how to fix this. If I give the product a stock value, it works fine.  This is the correct layout:  If the item is out of stock, the right side modules drop to below the main area. This is obviously not acceptable. I did not change any code in the views, and I have read everything I can to try and solve this, but I don't see an answer.  Here is the section of code related to this issue:  Any help would be appreciated. Thank you.")* was created by *[randam](/forum/user/4363-randam "View randam's Profile")*

Hi,

I can't figure out what is wrong or how to fix this. If I give the product a stock value, it works fine.

This is the correct layout:

[ ![&#91;img](http://www.hikashop.com/media/kunena/attachments/legacy/images/correct.jpg) ](http://www.hikashop.com/media/kunena/attachments/legacy/images/correct.jpg "&#91;img")

If the item is out of stock, the right side modules drop to below the main area. This is obviously not acceptable. I did not change any code in the views, and I have read everything I can to try and solve this, but I don't see an answer.

Here is the section of code related to this issue:
Code:

&lt;/div&gt;&lt;div id="hikashop_small_image_div" class="hikashop_small_image_div"&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;div id="hikashop_product_right_part" class="hikashop_product_right_part"&gt; &lt;span id="hikashop_product_price_main" class="hikashop_product_price_main"&gt; &lt;span class="hikashop_product_price_full"&gt; &lt;span class="hikashop_product_price hikashop_product_price_0"&gt;$18.99&lt;/span&gt; &lt;/span&gt; &lt;/span&gt;&lt;br /&gt; &lt;span id="hikashop_product_weight_main" class="hikashop_product_weight_main"&gt; Weight: 1 lb&lt;br /&gt; &lt;/span&gt; &lt;div id="hikashop_product_quantity_main" class="hikashop_product_quantity_main"&gt; &lt;div class="hikashop_product_no_stock"&gt; No stock &lt;/div&gt;&lt;div id="hikashop_product_waitlist_main" class="hikashop_product_waitlist_main"&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;div id="hikashop_product_contact_main" class="hikashop_product_contact_main"&gt; &lt;/div&gt; &lt;span id="hikashop_product_id_main" class="hikashop_product_id_main"&gt; &lt;input type="hidden" name="product_id" value="271" /&gt; &lt;/span&gt; &lt;/div&gt;

Any help would be appreciated. Thank you.

- [ ![correct.jpg](/forum/attachment/2323) ](/forum/attachment/2323 "correct.jpg") [ ](/forum/attachment/2323?download=1 "correct.jpg")

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

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

Less More

- Posts: 86289
- Thank you received: 14266
-
-

14 years 9 months ago [\#34085](#34085) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Using the "No Stock" option breaks the layout](/forum/4-how-to/34061-using-the-no-stock-option-breaks-the-layout#34085 "Hi,  I can't figure out what is wrong or how to fix this. If I give the product a stock value, it works fine.  This is the correct layout:  If the item is out of stock, the right side modules drop to below the main area. This is obviously not acceptable. I did not change any code in the views, and I have read everything I can to try and solve this, but I don't see an answer.  Here is the section of code related to this issue:  Any help would be appreciated. Thank you.")*

That can happen with some templates.
You should try to add some CSS like that in the front end CSS file of HikaShop via the Display tab of the configuration to fix the problem:

.hikashop_product_page{
width: 500px;
}

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

- **[randam](/forum/user/4363-randam "View randam's Profile")**
- [![randam's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4363-randam "View randam's Profile") Topic Author
- [ Offline](/forum/user/4363-randam)

Less More

- Posts: 10
- Thank you received: 0
-
-

14 years 9 months ago -  14 years 9 months ago [\#34100](#34100) by [randam](/forum/user/4363-randam "View randam's Profile")  Replied by *[randam](/forum/user/4363-randam "View randam's Profile")* on topic *[Re: Using the "No Stock" option breaks the layout](/forum/4-how-to/34061-using-the-no-stock-option-breaks-the-layout#34100 "Hi,  I can't figure out what is wrong or how to fix this. If I give the product a stock value, it works fine.  This is the correct layout:  If the item is out of stock, the right side modules drop to below the main area. This is obviously not acceptable. I did not change any code in the views, and I have read everything I can to try and solve this, but I don't see an answer.  Here is the section of code related to this issue:  Any help would be appreciated. Thank you.")*

Thank you. I appreciate your response.

Last edit: 14 years 9 months ago by [randam](/forum/user/4363-randam "View randam's Profile").

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

- **[randam](/forum/user/4363-randam "View randam's Profile")**
- [![randam's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4363-randam "View randam's Profile") Topic Author
- [ Offline](/forum/user/4363-randam)

Less More

- Posts: 10
- Thank you received: 0
-
-

14 years 9 months ago -  14 years 9 months ago [\#34102](#34102) by [randam](/forum/user/4363-randam "View randam's Profile")  Replied by *[randam](/forum/user/4363-randam "View randam's Profile")* on topic *[Re: Using the "No Stock" option breaks the layout](/forum/4-how-to/34061-using-the-no-stock-option-breaks-the-layout#34102 "Hi,  I can't figure out what is wrong or how to fix this. If I give the product a stock value, it works fine.  This is the correct layout:  If the item is out of stock, the right side modules drop to below the main area. This is obviously not acceptable. I did not change any code in the views, and I have read everything I can to try and solve this, but I don't see an answer.  Here is the section of code related to this issue:  Any help would be appreciated. Thank you.")*

Actually, I just tried what you suggested - it certainly made the main area smaller, but it did not make the right modules go back where they are supposed to be. What else could be causing this?

Last edit: 14 years 9 months ago by [randam](/forum/user/4363-randam "View randam's Profile").

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

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

Less More

- Posts: 86289
- Thank you received: 14266
-
-

14 years 9 months ago [\#34137](#34137) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Using the "No Stock" option breaks the layout](/forum/4-how-to/34061-using-the-no-stock-option-breaks-the-layout#34137 "Hi,  I can't figure out what is wrong or how to fix this. If I give the product a stock value, it works fine.  This is the correct layout:  If the item is out of stock, the right side modules drop to below the main area. This is obviously not acceptable. I did not change any code in the views, and I have read everything I can to try and solve this, but I don't see an answer.  Here is the section of code related to this issue:  Any help would be appreciated. Thank you.")*

Please download again the install package of HikaShop and install it over your current edition, it seems that you have a bug which was fixed in a later build of the current release.

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

- **[randam](/forum/user/4363-randam "View randam's Profile")**
- [![randam's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4363-randam "View randam's Profile") Topic Author
- [ Offline](/forum/user/4363-randam)

Less More

- Posts: 10
- Thank you received: 0
-
-

14 years 9 months ago [\#34155](#34155) by [randam](/forum/user/4363-randam "View randam's Profile")  Replied by *[randam](/forum/user/4363-randam "View randam's Profile")* on topic *[Re: Using the "No Stock" option breaks the layout](/forum/4-how-to/34061-using-the-no-stock-option-breaks-the-layout#34155 "Hi,  I can't figure out what is wrong or how to fix this. If I give the product a stock value, it works fine.  This is the correct layout:  If the item is out of stock, the right side modules drop to below the main area. This is obviously not acceptable. I did not change any code in the views, and I have read everything I can to try and solve this, but I don't see an answer.  Here is the section of code related to this issue:  Any help would be appreciated. Thank you.")*

Okay. I will try that, but I am a bit confused because my copy was downloaded and installed on 14 December 2011. Do you mean that there have been updates since then? If not, then the link I am accessing from my account is going to take me to the exact same download.

I shall try this, and report back with the results.

Thanks.

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

- **[randam](/forum/user/4363-randam "View randam's Profile")**
- [![randam's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4363-randam "View randam's Profile") Topic Author
- [ Offline](/forum/user/4363-randam)

Less More

- Posts: 10
- Thank you received: 0
-
-

14 years 9 months ago [\#34156](#34156) by [randam](/forum/user/4363-randam "View randam's Profile")  Replied by *[randam](/forum/user/4363-randam "View randam's Profile")* on topic *[Re: Using the "No Stock" option breaks the layout](/forum/4-how-to/34061-using-the-no-stock-option-breaks-the-layout#34156 "Hi,  I can't figure out what is wrong or how to fix this. If I give the product a stock value, it works fine.  This is the correct layout:  If the item is out of stock, the right side modules drop to below the main area. This is obviously not acceptable. I did not change any code in the views, and I have read everything I can to try and solve this, but I don't see an answer.  Here is the section of code related to this issue:  Any help would be appreciated. Thank you.")*

I did that. I downloaded the package and reinstalled. Unfortunately it made no difference whatsoever.

Any other suggestions? This problem is sadly stopping me from opening my store, which is now 3 weeks late. I just don't know what else to try.

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

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

Less More

- Posts: 86289
- Thank you received: 14266
-
-

14 years 9 months ago [\#34165](#34165) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Using the "No Stock" option breaks the layout](/forum/4-how-to/34061-using-the-no-stock-option-breaks-the-layout#34165 "Hi,  I can't figure out what is wrong or how to fix this. If I give the product a stock value, it works fine.  This is the correct layout:  If the item is out of stock, the right side modules drop to below the main area. This is obviously not acceptable. I did not change any code in the views, and I have read everything I can to try and solve this, but I don't see an answer.  Here is the section of code related to this issue:  Any help would be appreciated. Thank you.")*

Then, it can be that you already had an override for the file "quantity" of the view "product". Because of that, you didn't get the modification in that file. You should remove the customization of that view file in the views listing of the backend and try again.

In any case, you could just edit the file "quantity" of the view "product" via the menu Display-&gt;Views and copy the content of the file front/views/product/tmpl/quantity.php of the install package of our website into it.

There was indeed a change made in that file after the 14th of December to fix that problem. As you can see, there is an additional &lt;/div&gt; tag witch breaks the HTML code of the page.

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

- **[randam](/forum/user/4363-randam "View randam's Profile")**
- [![randam's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4363-randam "View randam's Profile") Topic Author
- [ Offline](/forum/user/4363-randam)

Less More

- Posts: 10
- Thank you received: 0
-
-

14 years 9 months ago [\#34174](#34174) by [randam](/forum/user/4363-randam "View randam's Profile")  Replied by *[randam](/forum/user/4363-randam "View randam's Profile")* on topic *[Re: Using the "No Stock" option breaks the layout](/forum/4-how-to/34061-using-the-no-stock-option-breaks-the-layout#34174 "Hi,  I can't figure out what is wrong or how to fix this. If I give the product a stock value, it works fine.  This is the correct layout:  If the item is out of stock, the right side modules drop to below the main area. This is obviously not acceptable. I did not change any code in the views, and I have read everything I can to try and solve this, but I don't see an answer.  Here is the section of code related to this issue:  Any help would be appreciated. Thank you.")*

That appears to have fixed the problem. ![:cheer:](/media/kunena/emoticons/10.png ":cheer:") Thank you very much for your assistance.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzM0MDYxLXVzaW5nLXRoZS1uby1zdG9jay1vcHRpb24tYnJlYWtzLXRoZS1sYXlvdXQ/dG1wbD1tYXJrZG93bg==) 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.308 seconds

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

[](#top)
