Jump to content

Archived

This topic is now archived and is closed to further replies.

marko2002

Quantity discounts available link goes nowhere?

Recommended Posts

Hey all :)

Quick question if I may.  When we have set up discounts based on quantity, etc, it shows up on the products page "Quantity discounts available" and is hyperlinked to the details about the quantity and discounts.  Thing is, unless we have previously opened the "quantity discounts" tab to reveal the information, clicking the "Quantity discounts available" link goes nowhere.   In other words, clicking this doesn't work unless we first scroll down and open the tab regarding the discounts.

Any advice on how to fix this would be greatly appreciated 

Cheers in advance

Marko

Share this post


Link to post
Share on other sites

Try this. In the template file content.product.php:

Find:
      <hr>
      <dl class="tabs" data-tab data-options="scroll_to_content:false">
         {if !empty($PRODUCT.description)}

Change to:
      <hr>
      <dl class="tabs" data-tab data-options="scroll_to_content:false; deep_linking:true">
         {if !empty($PRODUCT.description)}

The "scroll_to_content" being false is necessary because otherwise the web page would scroll so that the product's description would be at the top of the viewport.

But the "deep_linking" will definitely open the tab.

Share this post


Link to post
Share on other sites

Thanks for the reply, never seem to get notifications from IPB forums for some reason!!

The mod you suggested certainly opens the tab, but it still doesn't move us to the required information - we still have to scroll down to see the information.   Thing is, I know what people are like and they will click a link expecting it to do something, and when it doesn't (we know it does, but some won't even look around the page to see the newly opened tab) they will either presume it's not working or will just give up.   Is there, then, a way to have the tab opened and have the link take us down the page to the # for quantity discounts? 

(just a side note, clicking the link twice has the desired effect - i.e. click once, opens tab, click again, takes us down to the #)

Thanks again :)
Marko

Share this post


Link to post
Share on other sites

×
×
  • Create New...