Post by Lucastar » Tue Dec 11, 2012 5:37 am

Hi everyone!
I am using Opencart 1.5.4.1 as a new user and I am not a web programmer - and I must say that it is a fantastic project!

I have installed a few VQmod extensions ok, but I have a few questions that I hope someone can help me with - I have been searching for days for the answers, but I am getting nowhere :(

1): I wish to put a custom title tag, and keywords on the homepage. Which file should I edit, and exactly what should I put so I don't mess up any of the automatic title stuff. I would rather not use a vqmod for this.

2): I wish to remove the word 'Featured' from the top of the 'featured' box on my homepage. I would also like the box to disappear, leaving my 2 products behind.

3): I wish to resize the 2 featured products that I have. I read some forum posts, and adjusted theme/default/template/module/featured.tpl

<div style="margin-left: 5px; margin-right: 5px; width: 400px;">

Which has helped, but If I resize the images in admin to over 250px the left image starts to overlap the right image.

Ultimately, I want the two images side-by-side to be the whole width of the page.

4): When I go through admin panel, Systems/settings/store edit, any attempt to save my changes takes me straight back to the admin login page. There are no errors in the Log :(
I read the guide on fixing opencart, but I dont really know what Im doing.

5): Lastly, Its a UK site, but it is hosted on a US server. I show on google.com, but I'm not showing up on google.co.uk. Is there an easy way to rectify this without changing to a UK server?

Can anybody help with any of these problems?
Sorry it is a long post for my first, but I have so many questions!!

The site is http://www.york3dprinters.com

Thanks in advance,

Aidan
Last edited by Lucastar on Tue Dec 11, 2012 10:36 pm, edited 1 time in total.

Newbie

Posts

Joined
Fri Nov 30, 2012 7:42 pm

Post by Lucastar » Tue Dec 11, 2012 10:36 pm

anyone there?

Newbie

Posts

Joined
Fri Nov 30, 2012 7:42 pm

Post by Lucastar » Wed Dec 12, 2012 7:22 pm

Well, I have dealt with number 5.... now hosted on UK server.

Still need help with 1-4 though.... anyone?

Newbie

Posts

Joined
Fri Nov 30, 2012 7:42 pm

Post by KollanH » Thu Dec 13, 2012 12:45 am

1): I wish to put a custom title tag, and keywords on the homepage. Which file should I edit, and exactly what should I put so I don't mess up any of the automatic title stuff. I would rather not use a vqmod for this.
Why exactly do you want to do this? Custom title tag is generated for each page. Keywords no longer effect SEO (from google anyway).

http://googlewebmastercentral.blogspot. ... a-tag.html
2): I wish to remove the word 'Featured' from the top of the 'featured' box on my homepage. I would also like the box to disappear, leaving my 2 products behind.
Open up your catalog/view/theme/YOURTHEME/template/module/featured.tpl and delete the

Code: Select all

<div class="box-heading"><?php echo $heading_title; ?></div>

or something along those lines
3): I wish to resize the 2 featured products that I have. I read some forum posts, and adjusted theme/default/template/module/featured.tpl Which has helped, but If I resize the images in admin to over 250px the left image starts to overlap the right image. Ultimately, I want the two images side-by-side to be the whole width of the page.
The thing you want to resize is

Code: Select all

<div class="box-product">
4): When I go through admin panel, Systems/settings/store edit, any attempt to save my changes takes me straight back to the admin login page. There are no errors in the Log
I read the guide on fixing opencart, but I dont really know what Im doing.
I have no idea with this one without checking it myself. It may be an error with your upload and install.

Hope this helps!

Donate | Confirm Email when registering or during guest checkout | Print Order Information


New member

Posts

Joined
Fri Dec 07, 2012 6:19 am

Post by Lucastar » Thu Dec 13, 2012 1:45 am

KollanH wrote:1): I wish to put a custom title tag, and keywords on the homepage. Which file should I edit, and exactly what should I put so I don't mess up any of the automatic title stuff. I would rather not use a vqmod for this.


Why exactly do you want to do this? Custom title tag is generated for each page. Keywords no longer effect SEO (from google anyway).
Hi KollanH
My error here. I didn't mean keywords.... what I mean is that I wish to change the page <title> from York3dPrinters.com to York3dprinters.com | Some SEO text | some more SEO text - but only on the homepage. I was hoping to drop something like

<title> York3dprinters.com | Some SEO text | some more SEO text </title>

into the homepage file simply. without pulling something from a database or another file. Is this possible?




2:
KollanH wrote: 2): I wish to remove the word 'Featured' from the top of the 'featured' box on my homepage. I would also like the box to disappear, leaving my 2 products behind.


Open up your catalog/view/theme/YOURTHEME/template/module/featured.tpl and delete the
CODE: SELECT ALL
<div class="box-heading"><?php echo $heading_title; ?></div>
I thought it was this, and tried it, but nothing changed after I hit Ctrl F5 a few times, so I put it back in again. Removed it again now. Still nothing happening.

UPDATE: My apologies, this worked fine after clearing out the vqcache Thanks!

KollanH wrote: 3): I wish to resize the 2 featured products that I have. I read some forum posts, and adjusted theme/default/template/module/featured.tpl Which has helped, but If I resize the images in admin to over 250px the left image starts to overlap the right image. Ultimately, I want the two images side-by-side to be the whole width of the page.


The thing you want to resize is
CODE: SELECT ALL
<div class="box-product">
Here is my current featured.tpl

<div class="box">

<div class="box-content">
<div class="box-product">
<?php foreach ($products as $product) { ?>
<div style="margin-left: 30px; margin-right: 20px; width: 400px;">
<?php if ($product['thumb']) { ?>
<div class="image"><a href="<?php echo $product['href']; ?>"><img src="<?php echo $product['thumb']; ?>" alt="<?php echo $product['name']; ?>" /></a></div>
<?php } ?>

</div>
<?php } ?>
</div>
</div>
</div>


Clearing the cache helped with this too, but they still are not aligned centrally


Last one...

Error messages in the log - didn't see them before, although I dont know why.... d'uh:

2012-12-11 17:58:33 - PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cookie - headers already sent by (output started at /home/XXXXXX/public_html/index.php:49) in /home/XXXXXX/public_html/system/library/session.php on line 11
2012-12-11 17:58:33 - PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cache limiter - headers already sent (output started at /home/XXXXXX/public_html/index.php:49) in /home/XXXXXX/public_html/system/library/session.php on line 11
2012-12-11 17:58:33 - PHP Notice: Undefined index: HTTP_HOST in /home/XXXXXX/public_html/index.php on line 177
2012-12-11 17:58:33 - PHP Warning: Cannot modify header information - headers already sent by (output started at /home/XXXXXX/public_html/index.php:49) in /home/XXXXXX/public_html/index.php on line 177
2012-12-11 17:58:33 - PHP Notice: Undefined index: HTTP_HOST in /home/XXXXXX/public_html/system/library/currency.php on line 45
2012-12-11 17:58:33 - PHP Warning: Cannot modify header information - headers already sent by (output started at /home/XXXXXX/public_html/index.php:49) in /home/XXXXXX/public_html/system/library/currency.php on line 45
2012-12-11 21:05:26 - PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cookie - headers already sent by (output started at /home/XXXXXX/public_html/index.php:49) in /home/lucayork/public_html/system/library/session.php on line 11
2012-12-11 21:05:26 - PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cache limiter - headers already sent (output started at /home/XXXXXX/public_html/index.php:49) in /home/XXXXXX/public_html/system/library/session.php on line 11
2012-12-11 21:05:26 - PHP Notice: Undefined index: HTTP_HOST in /home/XXXXXX/public_html/index.php on line 177
2012-12-11 21:05:26 - PHP Warning: Cannot modify header information - headers already sent by (output started at /home/XXXXXX/public_html/index.php:49) in /home/XXXXXX/public_html/index.php on line 177
2012-12-11 21:05:26 - PHP Notice: Undefined index: HTTP_HOST in /home/XXXXXX/public_html/system/library/currency.php on line 45
2012-12-11 21:05:26 - PHP Warning: Cannot modify header information - headers already sent by (output started at /home/XXXXXX/public_html/index.php:49) in /home/XXXXXX/public_html/system/library/currency.php on line 45



Thankyou for your help :)
Last edited by Lucastar on Thu Dec 13, 2012 9:10 am, edited 2 times in total.

Newbie

Posts

Joined
Fri Nov 30, 2012 7:42 pm

Post by Lucastar » Thu Dec 13, 2012 1:50 am

Oh I forgot... I used to be able to save the settings properly, so I am reluctant to think that it is an install error. Could this be to do with a dodgy Vqmod?

Newbie

Posts

Joined
Fri Nov 30, 2012 7:42 pm

Post by Lucastar » Thu Dec 13, 2012 8:56 am

I didn't realise that I had to clear the vqmod cache. So I am closer (again!)

Just the
1> custom Title in the homepage,
2> centring the 'featured' images - looking better now, but still not quite correct... I've guesstimated the centre :(
4> Saving the admin/setting/store without being forced out to the login page.

to sort out now :)
Last edited by Lucastar on Thu Dec 13, 2012 5:16 pm, edited 1 time in total.

Newbie

Posts

Joined
Fri Nov 30, 2012 7:42 pm

Post by KollanH » Thu Dec 13, 2012 9:15 am

1> custom Title in the homepage,
System->Settings->Store->Title Change that to whatever text you want and it will only effect the home page.

Donate | Confirm Email when registering or during guest checkout | Print Order Information


New member

Posts

Joined
Fri Dec 07, 2012 6:19 am

Post by Lucastar » Thu Dec 13, 2012 5:15 pm

KollanH wrote: 1> custom Title in the homepage,


System->Settings->Store->Title Change that to whatever text you want and it will only effect the home page.

LOL that takes me back to issue 4! Can't save settings in store! - good to know that it only changes the Homepage though!

Any ideas why I cant save?
Are there any typical reasons that I can check? There is nothing mentioned in the 'fixing common problems'

Newbie

Posts

Joined
Fri Nov 30, 2012 7:42 pm

Post by Lucastar » Fri Dec 14, 2012 8:38 am

Wow. I fixed it! (quite a miracle)

I found out that the Php.ini file in the admin folder was missing (!?)

(didn't realise there should be one... just 'happened' across a reference to it, and though I would check!)

I replaced it with one from a fresh download and I can now save my store setting again. What a relief!

Homepage title is now sorted too - Thankyou KollanH


Odd actually, I have had files mysteriously disappear from my opencart before. I read of a couple of people who have experienced this?


... anyone else????

Newbie

Posts

Joined
Fri Nov 30, 2012 7:42 pm

Post by Lucastar » Mon Dec 17, 2012 11:28 pm

Still getting an error log though....

Anybody know what all this means?



2012-12-14 16:15:42 - PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cookie - headers already sent by (output started at /home/lucayork/public_html/index.php:49) in /home/lucayork/public_html/system/library/session.php on line 11
2012-12-14 16:15:42 - PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cache limiter - headers already sent (output started at /home/lucayork/public_html/index.php:49) in /home/lucayork/public_html/system/library/session.php on line 11
2012-12-14 16:15:42 - PHP Notice: Undefined index: HTTP_HOST in /home/lucayork/public_html/index.php on line 177
2012-12-14 16:15:42 - PHP Warning: Cannot modify header information - headers already sent by (output started at /home/lucayork/public_html/index.php:49) in /home/lucayork/public_html/index.php on line 177
2012-12-14 16:15:42 - PHP Notice: Undefined index: HTTP_HOST in /home/lucayork/public_html/system/library/currency.php on line 45
2012-12-14 16:15:42 - PHP Warning: Cannot modify header information - headers already sent by (output started at /home/lucayork/public_html/index.php:49) in /home/lucayork/public_html/system/library/currency.php on line 45
2012-12-14 18:48:29 - PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cookie - headers already sent by (output started at /home/lucayork/public_html/system/database/mysql.php:6) in /home/lucayork/public_html/system/library/session.php on line 11
2012-12-14 18:48:29 - PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cache limiter - headers already sent (output started at /home/lucayork/public_html/system/database/mysql.php:6) in /home/lucayork/public_html/system/library/session.php on line 11
2012-12-14 18:48:29 - PHP Warning: Cannot modify header information - headers already sent by (output started at /home/lucayork/public_html/system/database/mysql.php:6) in /home/lucayork/public_html/index.php on line 177
2012-12-14 18:48:29 - PHP Warning: Cannot modify header information - headers already sent by (output started at /home/lucayork/public_html/system/database/mysql.php:6) in /home/lucayork/public_html/system/library/currency.php on line 45
2012-12-15 4:58:02 - PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cookie - headers already sent by (output started at /home/lucayork/public_html/index.php:49) in /home/lucayork/public_html/system/library/session.php on line 11
2012-12-15 4:58:02 - PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cache limiter - headers already sent (output started at /home/lucayork/public_html/index.php:49) in /home/lucayork/public_html/system/library/session.php on line 11
2012-12-15 4:58:02 - PHP Notice: Undefined index: HTTP_HOST in /home/lucayork/public_html/index.php on line 177
2012-12-15 4:58:02 - PHP Warning: Cannot modify header information - headers already sent by (output started at /home/lucayork/public_html/index.php:49) in /home/lucayork/public_html/index.php on line 177
2012-12-15 4:58:02 - PHP Notice: Undefined index: HTTP_HOST in /home/lucayork/public_html/system/library/currency.php on line 45
2012-12-15 4:58:02 - PHP Warning: Cannot modify header information - headers already sent by (output started at /home/lucayork/public_html/index.php:49) in /home/lucayork/public_html/system/library/currency.php on line 45
2012-12-15 16:36:37 - PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cookie - headers already sent by (output started at /home/lucayork/public_html/index.php:49) in /home/lucayork/public_html/system/library/session.php on line 11
2012-12-15 16:36:37 - PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cache limiter - headers already sent (output started at /home/lucayork/public_html/index.php:49) in /home/lucayork/public_html/system/library/session.php on line 11
2012-12-15 16:36:37 - PHP Notice: Undefined index: HTTP_HOST in /home/lucayork/public_html/index.php on line 177
2012-12-15 16:36:37 - PHP Warning: Cannot modify header information - headers already sent by (output started at /home/lucayork/public_html/index.php:49) in /home/lucayork/public_html/index.php on line 177
2012-12-15 16:36:37 - PHP Notice: Undefined index: HTTP_HOST in /home/lucayork/public_html/system/library/currency.php on line 45
2012-12-15 16:36:37 - PHP Warning: Cannot modify header information - headers already sent by (output started at /home/lucayork/public_html/index.php:49) in /home/lucayork/public_html/system/library/currency.php on line 45
2012-12-15 19:36:33 - PHP Notice: Error: MySQL server has gone away<br />Error No: 2006<br />SELECT * FROM oc_language WHERE status = '1' in /home/lucayork/public_html/system/database/mysql.php on line 49
2012-12-15 19:36:33 - PHP Notice: Error: MySQL server has gone away<br />Error No: 2006<br />SELECT * FROM oc_language WHERE status = '1' in /home/lucayork/public_html/system/database/mysql.php on line 49
2012-12-15 19:36:33 - PHP Notice: Error: MySQL server has gone away<br />Error No: 2006<br />SELECT * FROM oc_language WHERE status = '1' in /home/lucayork/public_html/system/database/mysql.php on line 49



I'm clueless!

Newbie

Posts

Joined
Fri Nov 30, 2012 7:42 pm

Post by KollanH » Tue Dec 18, 2012 12:23 am

Are they still happening as these are over 2 days old? Clear your log and check again.

Donate | Confirm Email when registering or during guest checkout | Print Order Information


New member

Posts

Joined
Fri Dec 07, 2012 6:19 am

Post by Lucastar » Tue Dec 18, 2012 7:58 am

cleared the log earlier... nothing yet.... I will report back at some point tomorrow...

Newbie

Posts

Joined
Fri Nov 30, 2012 7:42 pm

Post by Lucastar » Sun Dec 23, 2012 4:12 am

I've not really had any more errors since... I have been changing a few things... I'll keep monitoring this over xmas, and then report back...

Newbie

Posts

Joined
Fri Nov 30, 2012 7:42 pm

Post by Saile » Sun Dec 30, 2012 7:26 pm

any fix for this yet?

Active Member

Posts

Joined
Thu Jan 19, 2012 8:19 am
Who is online

Users browsing this forum: No registered users and 198 guests