Post by L10NHEART » Mon Aug 29, 2016 3:13 pm

Hi guys.

I have custom theme and did some changes to

Code: Select all

/catalog/view/theme/custom_theme/template/product/product.tpl
After uploading changed .tpl file, I refresh product page and don't see any changes. I tried to dump phpinfo(); function but still didn't see anything.

I cleared the cache (vqmod and opencart), cleared browser cache and even cleared webserver cache and temp files, but with no luck.

I've surfed throught the whole forum and didn't find any solutions regarding this issue.
Hoping for your help.

Thanks in advance! :)

[SOLUTION]
http://forum.opencart.com/viewtopic.php ... 71#p637363
Last edited by L10NHEART on Wed Sep 07, 2016 1:09 pm, edited 2 times in total.

You are the semicolon to my statements.


User avatar
Newbie

Posts

Joined
Mon Aug 29, 2016 3:07 pm

Post by cyclops12 » Mon Aug 29, 2016 10:07 pm

Have you gone into Extensions/Modifications and click the REFRESH button

Expert Member

Posts

Joined
Sun Sep 27, 2015 1:10 am

Post by L10NHEART » Fri Sep 02, 2016 5:44 pm

cyclops12 wrote:Have you gone into Extensions/Modifications and click the REFRESH button
Yes, as stated in OpenCart documentation, I always refresh modifications after changes.

You are the semicolon to my statements.


User avatar
Newbie

Posts

Joined
Mon Aug 29, 2016 3:07 pm

Post by cyclops12 » Fri Sep 02, 2016 5:55 pm

What version are you using ?

And what changes are you making ?

Expert Member

Posts

Joined
Sun Sep 27, 2015 1:10 am

Post by L10NHEART » Mon Sep 05, 2016 2:12 pm

cyclops12 wrote:What version are you using ?

And what changes are you making ?
2.2.0
I'm trying to switch short description with brand logos. Basically just switching with places and editing some basic PHP there

You are the semicolon to my statements.


User avatar
Newbie

Posts

Joined
Mon Aug 29, 2016 3:07 pm

Post by cyclops12 » Mon Sep 05, 2016 2:25 pm

Have you got any ocmods or vqmods that affect the product page

Expert Member

Posts

Joined
Sun Sep 27, 2015 1:10 am

Post by L10NHEART » Mon Sep 05, 2016 2:40 pm

cyclops12 wrote:Have you got any ocmods or vqmods that affect the product page
Yes.

You are the semicolon to my statements.


User avatar
Newbie

Posts

Joined
Mon Aug 29, 2016 3:07 pm

Post by cyclops12 » Mon Sep 05, 2016 2:53 pm

That might be why then, if you are using an ocmod for product page then it will override the default product.tpl
So this might be overriding the particular code you are trying to change

Expert Member

Posts

Joined
Sun Sep 27, 2015 1:10 am

Post by L10NHEART » Mon Sep 05, 2016 6:21 pm

cyclops12 wrote:That might be why then, if you are using an ocmod for product page then it will override the default product.tpl
So this might be overriding the particular code you are trying to change
As mentioned above, I already had suspicion that it may be the case, but didn't find that they would override the custom themes template files. But.. I will double check, to be 100% sure and then report back if anything has changed.

P.S. Thank yoy @cyclops12 for support so far. Really appreciated!!

You are the semicolon to my statements.


User avatar
Newbie

Posts

Joined
Mon Aug 29, 2016 3:07 pm

Post by cyclops12 » Tue Sep 06, 2016 4:31 pm

You could disable your mods and refresh the cache then see if the changes are taking place.
If so then just add the mods back one at a time, refreshing each time, until then changes disappear then you will have found the mod that is overwriting the code(hopefully)

Expert Member

Posts

Joined
Sun Sep 27, 2015 1:10 am

Post by L10NHEART » Wed Sep 07, 2016 1:05 pm

cyclops12 wrote:You could disable your mods and refresh the cache then see if the changes are taking place.
If so then just add the mods back one at a time, refreshing each time, until then changes disappear then you will have found the mod that is overwriting the code(hopefully)
Okay, so I fixed the error. I added a code in index.php footer to return all included files.

Code: Select all

<?php
echo '<h1>FAILU SARAKSTS</h1><br/>';
$included_files = get_included_files();
$i = 1;
foreach($included_files as $file){
	echo $i . '. ' . $file . '<br/>';
	$i++;
}
?>
I noticed that there are both Default and Custom theme files. Then I went in admin panel in Themes and saw that there were enabled both Default & Custom theme by theme itself. I turned it off. Then I cleared cache. After that I went to Modifications and CLEARED all the modificators and the REFRESHED them and the changes appeared. Sadly, after each updates I will have to do it. Thank you very much for help cyclops12.

P.S. Also sI just now noticed that sometimes I need to manualy clear the cache in vqmod too. This is actually really time-consuming and I hope that in future OpenCart team will create automotive module that will do all of this.

You are the semicolon to my statements.


User avatar
Newbie

Posts

Joined
Mon Aug 29, 2016 3:07 pm

Post by jenifferhomes » Wed Sep 14, 2016 7:33 pm

I always refresh modifications after changes. see if the changes are taking place. If so then just add the mods back one at a time, refreshing each time, until then changes disappear then you will have found the mod that is overwriting the code(hopefully)

Thanks
website
"Opencart is the best of all" :-*


Newbie

Posts

Joined
Mon Jun 13, 2016 4:08 pm
Location - uk

Post by devSalmaRizwan » Sun Sep 25, 2016 6:01 pm

Thanks All your Con solve my issue with custom theme development for 2.3.. Bravo


Posts

Joined
Sat Sep 24, 2016 12:07 am
Who is online

Users browsing this forum: No registered users and 6 guests