Jump to content

Quantity discounts available link goes nowhere?


marko2002

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

Link to comment
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.

Link to comment
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

Edited by marko2002
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...