marko2002 Posted August 3, 2015 Share Posted August 3, 2015 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 advanceMarko Quote Link to comment Share on other sites More sharing options...
bsmither Posted August 3, 2015 Share Posted August 3, 2015 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. Quote Link to comment Share on other sites More sharing options...
marko2002 Posted August 5, 2015 Author Share Posted August 5, 2015 (edited) 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 August 5, 2015 by marko2002 Quote Link to comment Share on other sites More sharing options...
bsmither Posted August 5, 2015 Share Posted August 5, 2015 This is where I got the information. The solution may require adding a new anchor name to the proper tab and changing the destination hash on the link. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.