Post by depechemode75 » Tue Jun 30, 2020 12:47 am

Hello everyone,
I use oc3.0.3.3 with journal3

I added the product description at the top of the page and now I would like to insert at the end of the description an anchored link that moves the page below by opening the full description tab.
(like Reviews and Write a Review links)

Would anyone be kind enough to help me do this?

Thanks so much!!!

New member

Posts

Joined
Sun Dec 31, 2017 12:09 am

Post by sw!tch » Tue Jun 30, 2020 3:46 am

Well its simple for the default theme to do this.

Since you are using Journal theme is hard to offer any help here. Someone who runs that theme may be able to help you, but otherwise support here is mostly for the default OC theme.

Backup and learn how to recover before you make any changes!


Active Member

Posts

Joined
Sat Apr 28, 2012 2:32 pm

Post by paulfeakins » Tue Jun 30, 2020 4:42 pm

depechemode75 wrote:
Tue Jun 30, 2020 12:47 am
Would anyone be kind enough to help me do this?
Journal might.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by JNeuhoff » Tue Jun 30, 2020 8:35 pm

Scrolling to a defined anchor point upon a click is relatively straight forward to implement, see e.g. https://stackoverflow.com/questions/316 ... ven-anchor

However, you should get in touch with the Journal3 support on this if you are not a developer, because you are not using a standard-compliant OpenCart web theme!

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by Shannon26 » Tue Jun 30, 2020 11:24 pm

You will need to change this:

Code: Select all

<a><br>Scroll Down the page to view.<br></a>
To this:

Code: Select all

<a href="#tab-description"><br>Scroll Down the page to view.<br></a>
Do this if you want to scroll to Description when clicking the Scroll down link.
Last edited by Shannon26 on Tue Jul 07, 2020 11:21 pm, edited 1 time in total.

Newbie

Posts

Joined
Tue Jun 30, 2020 11:20 pm

Post by depechemode75 » Wed Jul 01, 2020 3:51 am

Shannon26 wrote:
Tue Jun 30, 2020 11:24 pm
You will need to change this:

Code: Select all

<a><br>Scroll Down the page to view.<br></a>
To this:

Code: Select all

<a href="#tab-description"><br>Scroll Down the page to view.<br></a>
Do this if you want to scroll to Description when clicking the Scroll down link.
Where.....??

New member

Posts

Joined
Sun Dec 31, 2017 12:09 am

Post by sw!tch » Wed Jul 01, 2020 4:12 am

Shannon26 wrote:
Tue Jun 30, 2020 11:24 pm
You will need to change this:

Code: Select all

<a><br>Scroll Down the page to view.<br></a>
To this:

Code: Select all

<a href="#tab-description"><br>Scroll Down the page to view.<br></a>
Do this if you want to scroll to Description when clicking the Scroll down link.
I don't think this code above will work with Journal.

If you view the Journal demos, it looks like journal uses some kind of random hash on the anchor.

ex:

Code: Select all

<a href="#product_tabs-5efb989d2a529" data-toggle="tab" aria-expanded="true">Description</a>
Since the hash appears random per product, my guess is you would need to handle this within the code that generates the tab. Otherwise just use a JS solution and match on some other element..

So like I said originally: Since you are using Journal theme it is hard to offer any help here. Someone who runs that theme may be able to help you, but otherwise support here is mostly for the default OC theme.

Backup and learn how to recover before you make any changes!


Active Member

Posts

Joined
Sat Apr 28, 2012 2:32 pm
Who is online

Users browsing this forum: No registered users and 10 guests