Post by marksb » Thu May 16, 2019 8:24 pm

Hello first time posting, I have had a website developed by a third party who is now no longer helping and i need to edit a page which i am struggling to find the file for, it is the home/landing page

I have tried looking in both default and another theme folder but cannot find the correct page can anybody help locating it? link below, i have tried looking at various content.tpl home.tpl etc?

https://shop.martinbrownpaints.com/

Thanks in advance

Newbie

Posts

Joined
Thu May 16, 2019 8:11 pm

Post by straightlight » Thu May 16, 2019 10:03 pm

Since you are using a theme originating from a 3rd party, I would suggest to create a new service request in the Commercial Support section of the forum to get your requested completed as a custom job (including the OC version).

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by thekrotek » Thu May 16, 2019 10:22 pm

Find a distinctive home page element and search in your theme files. It will show you the correct file, where this element is present. This requires some very basic file management skills and an editor with Search in Files function.

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Expert Member

Posts

Joined
Sun Jul 03, 2016 12:24 am


Post by marksb » Fri May 17, 2019 5:08 pm

Thank you for your responses, Could you recommend a free ftp client with a search in file feature? i'm having a nightmare finding file locations :-\

Thanks Again

Newbie

Posts

Joined
Thu May 16, 2019 8:11 pm

Post by paulfeakins » Fri May 17, 2019 5:41 pm

Dabaines88 wrote:
Fri May 17, 2019 5:08 pm
Thank you for your responses, Could you recommend a free ftp client with a search in file feature? i'm having a nightmare finding file locations :-\
There is no such thing because FTP is incredibly slow and therefore a search would be very slow.

However, searching for text in files is a good way to find where to edit the code so you could SSH in to the server and then use "grep" more info here: https://www.antropy.co.uk/blog/handy-linux-commands/

Or you could use this great tool that one of our developers built:
https://github.com/Jimjam89/php-file-search

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


User avatar
Guru Member

Posts

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

Post by letxobnav » Fri May 17, 2019 5:46 pm

Why don't you have a local copy of your entire website directory structure?
Then it is very easy to do a local file(content) search with notepad++ and find out where is what.

Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces

“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.


User avatar
Expert Member

Posts

Joined
Fri Aug 18, 2017 4:35 pm
Location - Taiwan

Post by paulfeakins » Fri May 17, 2019 6:06 pm

letxobnav wrote:
Fri May 17, 2019 5:46 pm
Why don't you have a local copy of your entire website directory structure?
Then you have to make changes and fiddle about with FTP each time.

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


User avatar
Guru Member

Posts

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

Post by marksb » Fri May 17, 2019 9:14 pm

Now i have tried various methods of searching while i have some coding experience and can change the required code via inspect element i cant find the correct file on the server,
So i even have a local version of the site and i have set windows to index correctly & even if for instance i search for a phrase or line of code on the site linked below it still wont find anything

https://shop.martinbrownpaints.com/

Any ideas? all i really need to do is change the links on the solutions,colour,products & support and remove the link of code that shouldn't be displayed

Newbie

Posts

Joined
Thu May 16, 2019 8:11 pm

Post by paulfeakins » Fri May 17, 2019 9:40 pm

Dabaines88 wrote:
Fri May 17, 2019 9:14 pm
Any ideas? all i really need to do is change the links on the solutions,colour,products & support and remove the link of code that shouldn't be displayed
As above, if you have a local copy of all the files, search with Notepad++

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


User avatar
Guru Member

Posts

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

Post by marksb » Fri May 17, 2019 10:11 pm

Now i see with every message i seem more incompetent but bare with me :crazy: Image

0 hits, this is the same with any phrase or code i search via various methods

I'm loosing my mind

Thanks

Newbie

Posts

Joined
Thu May 16, 2019 8:11 pm

Post by paulfeakins » Fri May 17, 2019 10:54 pm

Dabaines88 wrote:
Fri May 17, 2019 10:11 pm
Now i see with every message i seem more incompetent but bare with me :crazy:
Glad you said that not me :laugh:

You're searching for some content, do you know that OpenCart is made up of a database and files? So you won't find anything content-related in the files, only in the database.

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


User avatar
Guru Member

Posts

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

Post by straightlight » Fri May 17, 2019 10:56 pm

So you won't find anything content-related in the files, only in the database.
There are available search tools that can be used such as Textcrawler which I already referred multiple times on the forum in order to look for codes in all related extension files in a manner of secs aside from the database.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by paulfeakins » Fri May 17, 2019 10:57 pm

straightlight wrote:
Fri May 17, 2019 10:56 pm
aside from the database
But if you look at the string being searched for it seems to be like a product or option name I think?

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


User avatar
Guru Member

Posts

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

Post by straightlight » Fri May 17, 2019 11:05 pm

It could also be a JSON generated string from an extension or an imploded string with hardcoded values provided by a service portfolio.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by paulfeakins » Fri May 17, 2019 11:06 pm

straightlight wrote:
Fri May 17, 2019 11:05 pm
It could also be a JSON generated string from an extension or an imploded string with hardcoded values provided by a service portfolio.
Could be indeed, yes.

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


User avatar
Guru Member

Posts

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

Post by marksb » Fri May 17, 2019 11:29 pm

I appreciate that some items are in databases,
However for another example if i search for text from the footer, "We have defined our business" or for the text in the content block "Our Automotive Refinishing knowledge is" or anything else i cant find this,
Surely this isn't in a database ? my previous Opencart site was much more simple to navigate :D

I am very thankful for all responses

Newbie

Posts

Joined
Thu May 16, 2019 8:11 pm

Post by paulfeakins » Fri May 17, 2019 11:32 pm

Dabaines88 wrote:
Fri May 17, 2019 11:29 pm
Surely this isn't in a database ?
Well if it's not being found in a search of all files, it must be ;)

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


User avatar
Guru Member

Posts

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

Post by straightlight » Fri May 17, 2019 11:38 pm

Well if it's not being found in a search of all files, it must be
Here we go! ;)

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by marksb » Fri May 17, 2019 11:41 pm

In that case the only logical question i can think to ask then, is there a way to narrow down which database i need to look at for any given element?
Any indication from inspect or viewing page source for example?
Last edited by marksb on Fri May 17, 2019 11:59 pm, edited 1 time in total.

Newbie

Posts

Joined
Thu May 16, 2019 8:11 pm

Post by straightlight » Fri May 17, 2019 11:42 pm

Dabaines88 wrote:
Fri May 17, 2019 11:41 pm
In that case the only logical question i can think to ask then, is there a way to narrow down which database i need for to look at for any given element?
Any indication from inspect or viewing page source for example?
For values lookup inside a database from a PCI or virtual server perspective, there are no better tools than PHPMyAdmin by using the search tab on your right once the database has been selected.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: No registered users and 518 guests