Post by kingdonk » Wed Dec 22, 2010 6:15 pm

Im impressed so far with open cart and am looking forward to learning it.
Im making a small store for my mum for a small home business and she would like the powered by opencart removed from the bottom of the page and the order e-mails, ive tried myself but being new to php/html seem to be getting it wrong.
ive searched the forum but carnt find the exact lines to remove.

Also when i upload a new logo which is taller than the standard one the tabs on the main page separate from the main blue bar (i.e a gap between them)
How do i ad a larger logo without affect the standard template?

Thanks for any help or suggestions.

Newbie

Posts

Joined
Wed Dec 22, 2010 6:03 pm

Post by JAY6390 » Wed Dec 22, 2010 7:24 pm

open

Code: Select all

/catalog/view/theme/default/template/common/footer.tpl
Find

Code: Select all

  <!-- 
OpenCart is open source software and you are free to remove the Powered By OpenCart if you want, but its generally accepted practise to make a small donatation.
Please donate via PayPal to donate@opencart.com
//-->
  <div class="div2"><?php echo $text_powered_by; ?></div>
  <!-- 
OpenCart is open source software and you are free to remove the Powered By OpenCart if you want, but its generally accepted practise to make a small donatation.
Please donate via PayPal to donate@opencart.com
//-->
and remove it and save to remove the powered by text
To change the logo, go to the image tab in system > settings in your admin panel, you will see it there and can click it and change it

Image


User avatar
Guru Member

Posts

Joined
Wed May 26, 2010 11:47 pm
Location - United Kingdom

Post by kingdonk » Wed Dec 22, 2010 7:48 pm

Thanks for that, will make it easier for upgrading to future versions, does that also remove it from the E-mails?

Ive changed the logo via the admin section but its larger than the standard logo that comes with a fresh install and after changing to logo (to a bigger one) its messes with the template, the tabs have a 4/5 mm gap between them and the blue bar below, would moving the image location via code do this?

Newbie

Posts

Joined
Wed Dec 22, 2010 6:03 pm

Post by JAY6390 » Wed Dec 22, 2010 7:50 pm

No, the email template is in the template/mail/ folder, it should be pretty clear where it is on that as it's one page

Image


User avatar
Guru Member

Posts

Joined
Wed May 26, 2010 11:47 pm
Location - United Kingdom

Post by JAY6390 » Wed Dec 22, 2010 7:51 pm

Also, to move the tabs, you will need to edit the css file

Image


User avatar
Guru Member

Posts

Joined
Wed May 26, 2010 11:47 pm
Location - United Kingdom

Post by kingdonk » Wed Dec 22, 2010 9:49 pm

Found it. Thanks.

Newbie

Posts

Joined
Wed Dec 22, 2010 6:03 pm

Post by birdcuckoo » Sun Dec 26, 2010 9:59 am

Kingdonk, do you mind sharing how or rather specifically where you change the CSS to move the tabs down?

Newbie

Posts

Joined
Sun Dec 26, 2010 8:54 am

Post by birdcuckoo » Sun Dec 26, 2010 10:52 am

Disregard my question. Thanks.

Newbie

Posts

Joined
Sun Dec 26, 2010 8:54 am

Post by Edward_ » Fri Dec 31, 2010 6:53 am

In editing to remove the 'Powered by', the $text_powered_by seems to contain the Powered by as well as the 'Store name (c) Year'.

When

Code: Select all

<div class="div2"><?php echo $text_powered_by; ?></div>

is removed both Powered by and copyright go away. I'd like to keep the 'Store name (c) Year' as the year changes automatically.

New member

Posts

Joined
Mon Dec 27, 2010 10:06 pm

Post by Chones » Fri Dec 31, 2010 7:02 am

<?php echo date('Y'); ?> outputs the current year so you can always replace that section with

Code: Select all

<div class="div2">&copy; Your Store 2010 - <?php echo date('Y'); ?></div>
It will output (c) Your Store 2010 - 2011 (well, it will as of 1st Jan) and will update every year automatically.

http://scarletandjones.com/
http://sharpdressedman.co.uk/
http://coffincompany.co.uk/
http://horsesculptures.co.uk/
If I've helped you out, why not buy me a beer? http://craigmurray.me.uk


User avatar
Active Member

Posts

Joined
Wed Mar 24, 2010 9:07 pm
Location - London

Post by Edward_ » Fri Dec 31, 2010 7:19 am

Do you know where $text_powered_by; gets it value though?
I wanted to pass the Storename to the copyright line.

New member

Posts

Joined
Mon Dec 27, 2010 10:06 pm

Post by fido-x » Fri Dec 31, 2010 11:34 am

Edward_ wrote:Do you know where $text_powered_by; gets it value though?
I wanted to pass the Storename to the copyright line.
catalog/language/english/common/footer.php

Change:

Code: Select all

$_['text_powered_by'] = 'Powered By <a href="http://www.opencart.com">OpenCart</a><br /> %s &copy; %s'; 
to:

Code: Select all

$_['text_powered_by'] = '%s &copy; %s'; 

Image
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool

If you're not living on the edge ... you're taking up too much space!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia

Post by Edward_ » Sat Jan 01, 2011 2:22 am

Thank you very much!

New member

Posts

Joined
Mon Dec 27, 2010 10:06 pm

Post by kingdonk » Sun Jan 02, 2011 3:29 pm

Ive changed the catalog/language/english/common/footer.php file, and also the admin footer but when the customer receives an e-mail confirming the order at the bottom it says powered by opencart.
Ive gone into the language file for mail and removed the powered by bit but the e-mails still say opencart. where can i remove this?
Thanks.

Newbie

Posts

Joined
Wed Dec 22, 2010 6:03 pm

Post by Chones » Sun Jan 02, 2011 7:41 pm

In your template go to template > mail > order_confirm.tpl (or add that file from the default into your template).

Then near the bottom you'll see

Code: Select all

<?php echo $text_powered_by; ?> <a href="http://www.opencart.com" style="text-decoration: none; color: #374953;">OpenCart</a>
Removing that should work.

http://scarletandjones.com/
http://sharpdressedman.co.uk/
http://coffincompany.co.uk/
http://horsesculptures.co.uk/
If I've helped you out, why not buy me a beer? http://craigmurray.me.uk


User avatar
Active Member

Posts

Joined
Wed Mar 24, 2010 9:07 pm
Location - London

Post by kingdonk » Tue Jan 04, 2011 12:48 am

Thanks for the help. the sites taking place and am slowly understaning more and how opencart is structured for making my own changes but am still stook with the css file for positioning the tabs/logo.

Ive attached the photo of of what the site looks like with the logo and as you can notice the tabs on the right have a large gap between them and the bar below where as with the standard logo there is no gap.

What change needs to be made to the css file to remove the gap. anything i try just seems to break it further.

Screen shot 2011-01-04 at 03.42.06.png

Screen shot 2011-01-04 at 03.42.06.png (36.33 KiB) Viewed 9205 times


Newbie

Posts

Joined
Wed Dec 22, 2010 6:03 pm

Post by Chones » Tue Jan 04, 2011 2:50 am

In your stylesheet find

Code: Select all

#header .div3 {
	float: right;
	padding-top: 7px;
	height: 38px;
}
Try changing height to something bigger, like 70px;

That might work.

http://scarletandjones.com/
http://sharpdressedman.co.uk/
http://coffincompany.co.uk/
http://horsesculptures.co.uk/
If I've helped you out, why not buy me a beer? http://craigmurray.me.uk


User avatar
Active Member

Posts

Joined
Wed Mar 24, 2010 9:07 pm
Location - London

Post by kingdonk » Tue Jan 04, 2011 11:50 am

I tried that and also adding a height tag to div 2 but nothing changes. before realising it was the css file that needed editing i thought it just needed to br tag it to break it onto another line. any other suggestions?

Newbie

Posts

Joined
Wed Dec 22, 2010 6:03 pm

Post by Chones » Tue Jan 04, 2011 3:13 pm

try adding this to the same style

Code: Select all

margin-bottom: 100px;

http://scarletandjones.com/
http://sharpdressedman.co.uk/
http://coffincompany.co.uk/
http://horsesculptures.co.uk/
If I've helped you out, why not buy me a beer? http://craigmurray.me.uk


User avatar
Active Member

Posts

Joined
Wed Mar 24, 2010 9:07 pm
Location - London

Post by neosun » Thu Feb 10, 2011 3:01 am

fido-x wrote: Change:

Code: Select all

$_['text_powered_by'] = 'Powered By <a href="http://www.opencart.com">OpenCart</a><br /> %s &copy; %s'; 
to:

Code: Select all

$_['text_powered_by'] = '%s &copy; %s'; 
i prefer a change in the footer.tpl so i dont have to mess with files wich can get updated.
change in the footer.tpl

Code: Select all

<div class="div2"><?php echo $text_powered_by; ?></div>
to:

Code: Select all

<div class="div2"><?php echo substr($text_powered_by, 64); ?></div>
This will substring the first part of the text so only your shopname will be left

best regards

Newbie

Posts

Joined
Thu Feb 10, 2011 2:56 am
Who is online

Users browsing this forum: No registered users and 13 guests