Post by porter943 » Mon Feb 17, 2025 8:58 am

Hello All,
I'm trying to remove or edit the address and phone number on the Contact Us form, but I can't seem to find the right place or file to edit.
Please See Image.. I'm using OC ver 3.0.2.0
Thank You

Attachments

???
Contact-Us.png
Last edited by porter943 on Mon Feb 17, 2025 11:12 am, edited 1 time in total.

Active Member

Posts

Joined
Fri Dec 11, 2015 11:35 pm

Post by by mona » Mon Feb 17, 2025 10:55 am

No OC version
catalog/view/theme/*/information/contact.twig

admin => system => settings => stores => store tab

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by porter943 » Mon Feb 17, 2025 10:57 am

Ver 3.0.2.0

Active Member

Posts

Joined
Fri Dec 11, 2015 11:35 pm

Post by OSWorX » Mon Feb 17, 2025 3:41 pm

Or use the internal Theme Editor.

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Administrator

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by paulfeakins » Mon Feb 17, 2025 8:00 pm

OSWorX wrote:
Mon Feb 17, 2025 3:41 pm
Or use the internal Theme Editor.
That's best avoided in versions of OC where it makes a copy of the theme files in the database and prevents all extensions working on them. I'm not sure what version that was changed so I'm not sure if it applies to this version or not.

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


User avatar
Legendary Member
Online

Posts

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

Post by JNeuhoff » Mon Feb 17, 2025 8:35 pm

paulfeakins wrote:
Mon Feb 17, 2025 8:00 pm
That's best avoided in versions of OC where it makes a copy of the theme files in the database and prevents all extensions working on them. I'm not sure what version that was changed so I'm not sure if it applies to this version or not.
This is a valid point. Perhaps it makes sense to fix this issue in the upcoming 3.0.4.1 and 4.1.0.1 versions . Basically, the order of modifications needs to be:
1) changes in theme editor
2) OCmod based changes
3) VQmod based changes
That is, before OCmod or VQmod get to do their bits, we need to make sure to grab the template file from the correct place: If it's in the database (because of theme editor changes), then take from there, otherwise take the twig file from the the template theme folder. And then go about to apply the subsequent changes from OCmod and VQmod.

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


User avatar
Guru Member
Online

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by OSWorX » Mon Feb 17, 2025 9:45 pm

JNeuhoff wrote:
Mon Feb 17, 2025 8:35 pm
paulfeakins wrote:
Mon Feb 17, 2025 8:00 pm
That's best avoided in versions of OC where it makes a copy of the theme files in the database and prevents all extensions working on them. I'm not sure what version that was changed so I'm not sure if it applies to this version or not.
This is a valid point. Perhaps it makes sense to fix this issue in the upcoming 3.0.4.1 and 4.1.0.1 versions . Basically, the order of modifications needs to be:
1) changes in theme editor
2) OCmod based changes
3) VQmod based changes
That is, before OCmod or VQmod get to do their bits, we need to make sure to grab the template file from the correct place: If it's in the database (because of theme editor changes), then take from there, otherwise take the twig file from the the template theme folder. And then go about to apply the subsequent changes from OCmod and VQmod.
Correct @paulfeakins and valid @JNeuhoff

General it should be done via the internal thems editor - that's for he was added (a long time ago).
And since then, the bug exists!

It's highly recommended to fix that lousy bug, the more many users are reporting problems when using the theme editor in conjunction with OCMod and/or VQMod.
And it would be good if Daniel would hear what he has written by himself:
https://github.com/opencart/opencart/di ... t-11842747
i plan to start doing weekly releases.
Just wondering where are all those releases .. ?

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Administrator

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by nonnedelectari » Tue Feb 18, 2025 12:05 am

JNeuhoff wrote:
Mon Feb 17, 2025 8:35 pm
paulfeakins wrote:
Mon Feb 17, 2025 8:00 pm
That's best avoided in versions of OC where it makes a copy of the theme files in the database and prevents all extensions working on them. I'm not sure what version that was changed so I'm not sure if it applies to this version or not.
This is a valid point. Perhaps it makes sense to fix this issue in the upcoming 3.0.4.1 and 4.1.0.1 versions . Basically, the order of modifications needs to be:
1) changes in theme editor
2) OCmod based changes
3) VQmod based changes
That is, before OCmod or VQmod get to do their bits, we need to make sure to grab the template file from the correct place: If it's in the database (because of theme editor changes), then take from there, otherwise take the twig file from the the template theme folder. And then go about to apply the subsequent changes from OCmod and VQmod.

I would at least give a warning when using the theme editor on a twig file which has an ocmod modification and visa versa, give a warning when applying an ocmod on a twig file when a theme editor change is in the database.
But personally I would leave the theme editor alone and just stick to OC or VQ MOD.

Active Member

Posts

Joined
Thu Mar 04, 2021 6:34 pm

Post by OSWorX » Tue Feb 18, 2025 1:04 am

nonnedelectari wrote:
Tue Feb 18, 2025 12:05 am
But personally I would leave the theme editor alone and just stick to OC or VQ MOD.
Not really, because why installing anything else when the user wants to add or remove a few simple lines only?
No need to install or realize such via OC-/VQmod.

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Administrator

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by paulfeakins » Tue Feb 18, 2025 11:30 pm

JNeuhoff wrote:
Mon Feb 17, 2025 8:35 pm
This is a valid point. Perhaps it makes sense to fix this issue in the upcoming 3.0.4.1 and 4.1.0.1 versions .
I believe it is fixed now, but I'm not sure which exact version it was fixed in.

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


User avatar
Legendary Member
Online

Posts

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

Post by JNeuhoff » Sun Feb 23, 2025 1:17 am

paulfeakins wrote:
Tue Feb 18, 2025 11:30 pm
JNeuhoff wrote:
Mon Feb 17, 2025 8:35 pm
This is a valid point. Perhaps it makes sense to fix this issue in the upcoming 3.0.4.1 and 4.1.0.1 versions .
I believe it is fixed now, but I'm not sure which exact version it was fixed in.
It's not fixed. The biggest challenge with the theme editor is that it's store_id and theme specific, see DB table 'oc_theme', yet OCmod is store_id agnostic with regards to modified frontend templates. And even worse, if a frontend template was modified via the theme editor, OCmod simply ignores it and grabs the original file from the theme's template folder.

Perhaps a solution would be for the DIR_MODIFICATION to use a store_id prefix or suffix for the modified frontend template file name. And of course OCmod needs to make sure to check the modification from the theme editor first when loading a frontend template content. This would require some changes to the admin/controller/marketplace/modification.php and the system/template/*.php files.

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


User avatar
Guru Member
Online

Posts

Joined
Wed Dec 05, 2007 3:38 am

Who is online

Users browsing this forum: sidclel and 61 guests