Post by tehrusty » Fri Dec 11, 2020 4:05 am

Version 2.1.0.2
Theme: tt_timeplus1

Context: Previous site admin has decided to take leave without leaving instruction, and I need to implement some changes while he's gone on a eCommerce site. I don't have any experience with OpenCart.

The site currently has a popup/modal that pops up on the home page and I have been instructed to change it to display different text within it.

https://i.imgur.com/RtZPbcR.jpg

I checked Design -> Layouts -> Home and looked through the used modules for a popup/modal but could not find one. I made quick changes to modules in this layout to confirm I was on the right page, which I quickly confirmed I was. I proceeded to remove modules one by one, and readding them later, to see which was the popup/modal module but none of them appeared to have been.

I went to Extensions -> Modules, and I found a module titled 'Cms block > pop up', that when added to the 'home' layout, would display a popup/modal in the same style as the one that currently appears in layout 'home', though with different text within it. Strangely, adding 'Cms block > pop up' messes with the styling of the existing popup by shifting it to the left of the screen to the point and removing the close 'X' button on the top right. Changing the position or sort order of the 'Cms block > pop up' did not seem to change anything in regards to the shift or disappeared X close button.

https://imgur.com/T8Eww3c

https://imgur.com/wpHUHpW

Disabling the 'Cms block > pop up' module would cause it to disappear from the live page, but did not affect the already existing popup/modal in 'home'. It simply returned to its normal function.

I'm left perplexed, because it appears that the only way to add or remove content within the site through OpenCart would be through
Extensions -> Modules,
or Design -> Layouts,
or Design->Banner
yet I cannot for the life of me figure out where this popup/modal exists, and why it's not in the layout for 'Home'.


One thing that looked strange to me while looking through Inspector in Google Chrome, I noticed that the popup/modal in 'home' was written within the body tag but almost at the very end of the tag.

https://i.imgur.com/xwkI8VV.jpg

Which is a bit strange, since all other elements are more towards the top. For example, whenever I added the 'Cms block > pop up> it appeared toward the top rather than at the bottom of the tag. I can only guess that this might be because the popup/modal was written into some html file for the home page. So I've asked for access to the web host so I can access files and see if the site admin made some changes into the html file itself.


I'm not certain however. I read someplace that OpenCart uses MVC and sort of puts together modules to form the site. But at this point I don't really know what to do.

I appreciate any help or insights that people in this community can provide.
Last edited by tehrusty on Thu Dec 24, 2020 9:34 am, edited 1 time in total.

Newbie

Posts

Joined
Thu Dec 10, 2020 7:28 am

Post by by mona » Fri Dec 11, 2020 6:05 am

Thank you for adding all the required details - especially on your first post - welcome.

You really need to contact the developer of the Cms block > pop up (which may be your theme developer)
check your admin modifications / maybe vqmod for an email address.


It is possible that it does not appear in layouts because it is “hard coded” OR because there is a vqmod / OCMOD that directly adds it to the home page.
The solution is still the same - check modifications and vqmod - modifications will be a little tricky as its in your database. Not difficult, but may require paid support if you are unsure how to SAFELY do that.

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 tehrusty » Thu Dec 24, 2020 8:44 am

by mona wrote:
Fri Dec 11, 2020 6:05 am
Thank you for adding all the required details - especially on your first post - welcome.

You really need to contact the developer of the Cms block > pop up (which may be your theme developer)
check your admin modifications / maybe vqmod for an email address.


It is possible that it does not appear in layouts because it is “hard coded” OR because there is a vqmod / OCMOD that directly adds it to the home page.
The solution is still the same - check modifications and vqmod - modifications will be a little tricky as its in your database. Not difficult, but may require paid support if you are unsure how to SAFELY do that.
No problem, and thanks for the help! I managed to find the necessary file through the database.

I checked if the previous admin installed vqmod or OCMOD which he didn't, so I went digging around in the file manager through cPanel. I ended up finding the template folder and found a file in

/catalog/view/theme/tt_timeplus1/template/common/

called home.tpl which had all the html and styling of the pop up! I made some minor changes and saw them immediately on live page, so I'm free to start working on it. I don't really know how OpenCart is calling on this file and making changes, but I guess that's something to look into for another day.

Newbie

Posts

Joined
Thu Dec 10, 2020 7:28 am

Post by by mona » Thu Dec 24, 2020 8:59 am

OCMOD is installed with opencart. You will find it in admin / modifications
You can search google -
https://isenselabs.com/posts/opencart-2 ... ion-system

An overview of your filing structure
http://docs.opencart.com/en-gb/developer/module/

Anything within the theme should be in the same or similar structure as the link above.

Good luck, happy holidays & I am glad you have it sorted.
Please mark the post as [SOLVED] - you do this by editing the title of the post and adding it to the front.

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 straightlight » Thu Dec 24, 2020 9:28 am

You will find it in admin / modifications
Admin > Extensions > Modifications.

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 6 guests