Post by Gobbo » Thu Jan 11, 2018 6:37 am

Hi,

My Contact Us page layout is wrong.

The fields for name, email and enquiry are squeezed on to the left side.

Where is and what part of the CSS controls the contact page?

Using opencart 3.0.3.2 - PHP 7.4 - Standard Template - Add to Cart Enable Disable Out of Stock Product 3.x - Export/Import Tool (V3.22) for OpenCart 3.x - Footer Social Media Link( 3.x ) v1.0


Active Member

Posts

Joined
Tue Jun 22, 2010 12:38 am

Post by straightlight » Thu Jan 11, 2018 7:24 am

No URL posted with inquiry.

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 Gobbo » Thu Jan 11, 2018 9:30 pm

https://www.comicbookxs.com/index.php?r ... on/contact

It works okay on mobile, but not on PC.

Using opencart 3.0.3.2 - PHP 7.4 - Standard Template - Add to Cart Enable Disable Out of Stock Product 3.x - Export/Import Tool (V3.22) for OpenCart 3.x - Footer Social Media Link( 3.x ) v1.0


Active Member

Posts

Joined
Tue Jun 22, 2010 12:38 am

Post by straightlight » Fri Jan 12, 2018 6:22 am

Custom theme involved. Switch back to the default theme and see if the issue can be replicated.

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 Gobbo » Fri Jan 12, 2018 6:18 pm

I'm using the default theme.

Using opencart 3.0.3.2 - PHP 7.4 - Standard Template - Add to Cart Enable Disable Out of Stock Product 3.x - Export/Import Tool (V3.22) for OpenCart 3.x - Footer Social Media Link( 3.x ) v1.0


Active Member

Posts

Joined
Tue Jun 22, 2010 12:38 am

Post by straightlight » Fri Jan 12, 2018 6:41 pm

This is the default theme: https://demo.opencart.com .

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 DigitCart » Fri Jan 12, 2018 7:50 pm

This is the file:
catalog\view\theme\default\template\information\contact.tpl

Make a copy of your current file (as backup).
Upload above file from the OpenCart installation pack and replace with your current file.

My Extensions


User avatar
Active Member

Posts

Joined
Thu Jun 22, 2017 5:32 pm


Post by Gobbo » Sun Jan 14, 2018 3:03 am

Thanks, I did that from the original file and it's still not working :(

Using opencart 3.0.3.2 - PHP 7.4 - Standard Template - Add to Cart Enable Disable Out of Stock Product 3.x - Export/Import Tool (V3.22) for OpenCart 3.x - Footer Social Media Link( 3.x ) v1.0


Active Member

Posts

Joined
Tue Jun 22, 2010 12:38 am

Post by straightlight » Sun Jan 14, 2018 3:10 am

Clear out your OC cache from your system/storage folder (or your storage folder outside of your public_html folder) and browser cache and see if the problem persist. If so, at the top of the contact.tpl file, paste:

Code: Select all

<?php echo 'test123'; ?>
Save the file. Then, see on top of your contact page if you do notice the test123 .

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 Gobbo » Sun Jan 14, 2018 4:18 am

Done that but no 'Test 123' appeared

Using opencart 3.0.3.2 - PHP 7.4 - Standard Template - Add to Cart Enable Disable Out of Stock Product 3.x - Export/Import Tool (V3.22) for OpenCart 3.x - Footer Social Media Link( 3.x ) v1.0


Active Member

Posts

Joined
Tue Jun 22, 2010 12:38 am

Post by straightlight » Sun Jan 14, 2018 4:33 am

Is your storage outside your public_html folder as well or still inside?

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 Gobbo » Sun Jan 14, 2018 4:40 am

Inside

Using opencart 3.0.3.2 - PHP 7.4 - Standard Template - Add to Cart Enable Disable Out of Stock Product 3.x - Export/Import Tool (V3.22) for OpenCart 3.x - Footer Social Media Link( 3.x ) v1.0


Active Member

Posts

Joined
Tue Jun 22, 2010 12:38 am

Post by straightlight » Sun Jan 14, 2018 4:43 am

Another test you could do noticing the changes. In your catalog/controller/information/contact.php file, after the public function index() line,

add:

Code: Select all

echo 'test123';
Save the file and notice the test123 on top of the page.

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 Gobbo » Sun Jan 14, 2018 5:11 am

Did that, but still it didn't show up.

I change the name of the contact file then site displayed the could not find file text.

I then replaced the contact file with one I downloaded.

But still no change to the contact page, its still squeezed on to the right side.

Using opencart 3.0.3.2 - PHP 7.4 - Standard Template - Add to Cart Enable Disable Out of Stock Product 3.x - Export/Import Tool (V3.22) for OpenCart 3.x - Footer Social Media Link( 3.x ) v1.0


Active Member

Posts

Joined
Tue Jun 22, 2010 12:38 am

Post by straightlight » Sun Jan 14, 2018 5:13 am

Server cache issue. Contact your host.

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 Gobbo » Sun Jan 14, 2018 7:34 am

It must be in the CSS, as the host said there is no problem with the server cache.

I say the CSS as the mobile version is uninfected.

Where in the CSS does it control the contacts page?

Using opencart 3.0.3.2 - PHP 7.4 - Standard Template - Add to Cart Enable Disable Out of Stock Product 3.x - Export/Import Tool (V3.22) for OpenCart 3.x - Footer Social Media Link( 3.x ) v1.0


Active Member

Posts

Joined
Tue Jun 22, 2010 12:38 am

Post by straightlight » Sun Jan 14, 2018 8:02 pm

CSS issues does not prevent PHP outputs. PHP takes priority over other file extensions, in this case. For this situation, no PHP output can be seen according to the last results.

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 Gobbo » Sun Jan 14, 2018 8:13 pm

So how can this be fixed?

I don't want to reinstalled the site for the 4th time.

Using opencart 3.0.3.2 - PHP 7.4 - Standard Template - Add to Cart Enable Disable Out of Stock Product 3.x - Export/Import Tool (V3.22) for OpenCart 3.x - Footer Social Media Link( 3.x ) v1.0


Active Member

Posts

Joined
Tue Jun 22, 2010 12:38 am

Post by straightlight » Sun Jan 14, 2018 8:22 pm

The solution has already been posted here: viewtopic.php?f=190&t=201092#p710530

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 Gobbo » Sun Jan 14, 2018 8:37 pm

Hi,

This is what my hosting service said 'We can confirm that server side cache is not active for your website comicbookxs.com and as I can see the issue does not have anything in common with the caching.'.

I've just download another browser, the contact page looks the same.

Using opencart 3.0.3.2 - PHP 7.4 - Standard Template - Add to Cart Enable Disable Out of Stock Product 3.x - Export/Import Tool (V3.22) for OpenCart 3.x - Footer Social Media Link( 3.x ) v1.0


Active Member

Posts

Joined
Tue Jun 22, 2010 12:38 am
Who is online

Users browsing this forum: No registered users and 159 guests