Post by jrr » Tue Dec 12, 2023 9:57 am

I wish to link my catalog (3.0.3.6) to my business website via my business logo on the upper left of the screen.

Currently it just takes people back to the OC shopping cart index page for my site.

Web site is https://flippers.com, catalog site is https://flippers.com/catalog_oc

I would like the logo on the OC section to pop people back to my business site the same way I have my store available on the business site - via a flying shopping cart.

I've searched online for a while (about an hour) to see if I can find if anyone else has done this to no avail, so I am nowhere asking you fine folks if someone has a simple solution for me...

Thanks!

John :-#)#
PS, I've been busy elsewhere for a few months, but I don't suppose the "Notify me when a reply is posted has been fixed"...
Last edited by jrr on Wed Dec 13, 2023 3:18 pm, edited 1 time in total.

jrr
Active Member

Posts

Joined
Mon Nov 20, 2017 1:48 pm

Post by xxvirusxx » Tue Dec 12, 2023 4:21 pm

Edit header.twig and change a href.

Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

Post by jrr » Tue Dec 12, 2023 11:47 pm

Thanks for the reminder!

However, well it seems header.twig isn't being used in my store. I must have an extension or setting that is over-riding it. I went to admin/design/theme editor/common/header.twig and no changes there made any changes on the test site.

I am just using the default theme too.

Any easy way to discover which extension is doing this?

I obviously need to document changes I make to my store...

Oh, and the twig documentation link on the page is dead. I found them on the wayback machine: https://web.archive.org/web/20160312122 ... umentation

jrr
Active Member

Posts

Joined
Mon Nov 20, 2017 1:48 pm

Post by ADD Creative » Wed Dec 13, 2023 12:28 am

Did you refresh your modifications and the theme cache?

You could search through the modifications log to see if anything is changing header.twig.

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by xxvirusxx » Wed Dec 13, 2023 4:19 am

jrr wrote:
Tue Dec 12, 2023 11:47 pm
Oh, and the twig documentation link on the page is dead.
"Guugle...."
https://twig.symfony.com/doc/

Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

Post by jrr » Wed Dec 13, 2023 7:14 am

xxvirusxx wrote:
Wed Dec 13, 2023 4:19 am
jrr wrote:
Tue Dec 12, 2023 11:47 pm
Oh, and the twig documentation link on the page is dead.
"Guugle...."
https://twig.symfony.com/doc/
Yes, I provided a link to archive.org's Wayback Machine which has the page archived. Avoiding the marketing gurus of Goo...
John :-#)#

jrr
Active Member

Posts

Joined
Mon Nov 20, 2017 1:48 pm

Post by jrr » Wed Dec 13, 2023 7:27 am

ADD Creative wrote:
Wed Dec 13, 2023 12:28 am
Did you refresh your modifications and the theme cache?

You could search through the modifications log to see if anything is changing header.twig.
Well, no I forgot about refreshing the Theme (gah!), however when I Save the modified (below) changes, they revert back to the default twig. It appears I need to find another instance of header.twig to modify so it stays modified...like looking through the modifications log as suggested just above (sigh).

For the record, in the header.twig file around line 72/73 look for:

Code: Select all

		<div id="logo">{% if logo %}<a href="{{ home }}"><img src="{{ logo }}" title="{{ name }}" alt="{{ name }}" class="img-responsive" /></a>{% else %}
          <h1><a href="{{ home }}">{{ name }}</a></h1></div>
and change it to

Code: Select all

        <div id="logo">{% if logo %}<a href="https://flippers.com/index.htm"><img src="{{ logo }}" title="Flippers Main Site" alt="Flippers Main Site" class="img-responsive" /></a>{% else %}
          <h1><a href="https://flippers.com/index.htm">"Flippers Main Site"</a></h1>
I thought that would work. Have other work to do, will poke at it some more tonight.

Thanks for the help!
John :-#)#

jrr
Active Member

Posts

Joined
Mon Nov 20, 2017 1:48 pm

Post by jrr » Wed Dec 13, 2023 3:12 pm

ADD Creative wrote:
Wed Dec 13, 2023 12:28 am
You could search through the modifications log to see if anything is changing header.twig.
Where do I find the modifications log? Nothing named modifications in the log section that I can see. Is this something that one can turn on?

Thanks!

John:-#)#

jrr
Active Member

Posts

Joined
Mon Nov 20, 2017 1:48 pm

Post by xxvirusxx » Wed Dec 13, 2023 3:17 pm

The logo has already /index.htm

Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

Post by jrr » Wed Dec 13, 2023 3:18 pm

Well, in the end I've used FTP to modify header.twig in the /catalog/catalog/view/theme/default/template/common/ directory.

This seems to not get reset such as when I use the theme editor and then leave that twig file and do anything else.

I'll see if it is still working tomorrow, but I kinda would prefer to use the theme editor if it didn't reset the twig file to the default...

Thanks,
John :-#)#

jrr
Active Member

Posts

Joined
Mon Nov 20, 2017 1:48 pm

Post by xxvirusxx » Wed Dec 13, 2023 3:26 pm

You can create a quick ocmod file...
As I know Theme editor doesn't work well together with ocmod files.

Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România
Who is online

Users browsing this forum: No registered users and 6 guests