Using the "No Stock" option breaks the layout

  • Posts: 10
  • Thank you received: 0
12 years 10 months ago #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:
</div><div id="hikashop_small_image_div" class="hikashop_small_image_div">			</div>
		</div>
	</div>
	<div id="hikashop_product_right_part" class="hikashop_product_right_part">
		<span id="hikashop_product_price_main" class="hikashop_product_price_main">
				<span class="hikashop_product_price_full">
	<span class="hikashop_product_price hikashop_product_price_0">$18.99</span> </span>		</span><br />
				<span id="hikashop_product_weight_main" class="hikashop_product_weight_main">
			Weight: 1 lb<br />
		</span>
				<div id="hikashop_product_quantity_main" class="hikashop_product_quantity_main">          <div class="hikashop_product_no_stock">
          No stock            </div><div id="hikashop_product_waitlist_main" class="hikashop_product_waitlist_main">
                          </div>          </div>
        		</div>
				<div id="hikashop_product_contact_main" class="hikashop_product_contact_main">
					</div>
				<span id="hikashop_product_id_main" class="hikashop_product_id_main">
			<input type="hidden" name="product_id" value="271" />
		</span>
	</div>


Any help would be appreciated. Thank you.

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 82909
  • Thank you received: 13379
  • MODERATOR
12 years 10 months ago #34085

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 or Create an account to join the conversation.

  • Posts: 10
  • Thank you received: 0
12 years 10 months ago #34100

Thank you. I appreciate your response.

Last edit: 12 years 10 months ago by randam.

Please Log in or Create an account to join the conversation.

  • Posts: 10
  • Thank you received: 0
12 years 10 months ago #34102

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: 12 years 10 months ago by randam.

Please Log in or Create an account to join the conversation.

  • Posts: 82909
  • Thank you received: 13379
  • MODERATOR
12 years 10 months ago #34137

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 or Create an account to join the conversation.

  • Posts: 10
  • Thank you received: 0
12 years 10 months ago #34155

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 or Create an account to join the conversation.

  • Posts: 10
  • Thank you received: 0
12 years 10 months ago #34156

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 or Create an account to join the conversation.

  • Posts: 82909
  • Thank you received: 13379
  • MODERATOR
12 years 10 months ago #34165

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->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 </div> tag witch breaks the HTML code of the page.

Please Log in or Create an account to join the conversation.

  • Posts: 10
  • Thank you received: 0
12 years 10 months ago #34174

That appears to have fixed the problem. :cheer: Thank you very much for your assistance.

Please Log in or Create an account to join the conversation.

Time to create page: 0.074 seconds
Powered by Kunena Forum