Post by jonesy » Thu Jan 25, 2007 11:35 pm

Hi there, basically im after a bit of info regarding how to skin the site. Ive already created a page that i will use for my layout so basically im confused which page I need to edit. For instance im trying to change the layout of the index.php page, or full link as: shop/admin/index.php?view=home.

What file do i need to edit in there? I've tried the layouts one, and did a small test, uploaded it but it didnt seem to do anything, so was unsure if I was doing it right.

Any advice would be greatly apreciated.

New member

Posts

Joined
Fri Jan 19, 2007 5:19 pm

Post by Daniel » Thu Jan 25, 2007 11:59 pm

Hi,

catalog/ template/default/plugin/ to edit the home page and all other pages.
view= home is home.tpl

the templates for boxes on the left hand side are located:
catalog/ template/default/module/

layout is used on every page and is the main part of the template.

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by jonesy » Fri Jan 26, 2007 12:26 am

ahh thanks for that info.

Two queries now:

on that page (home.tpl) theres a bit of code:



where is the value of $heading_title  set?


The second thing. Im editing files/images and trying to upload, and its saying:

[16:25:03] Remote file exist check: "home.tpl".
[16:25:03] TYPE I
[16:25:03] 200 TYPE is now 8-bit binary
[16:25:03] SIZE home.tpl
[16:25:03] 213 529
[16:25:03] MDTM home.tpl
[16:25:03] 213 20061113100218
[16:25:03] No rule matched. Default Action="Ask".
[16:25:04] PASV ipstuff).
[16:25:04] Opening data connection to ipstuff Port: port
[16:25:04] STOR home.tpl
[16:25:05] 553 Can't open that file: Permission denied
[16:25:05] MDTM 20070125162326 home.tpl
[16:25:05] 550 Can't check for file existence
[16:25:05] TYPE A
[16:25:05] 200 TYPE is now ASCII
[16:25:05] PASV
[16:25:05] 227 Entering Passive Mode (ipstuff).
[16:25:05] Opening data connection to ipstuff Port: portstuff
[16:25:05] MLSD
[16:25:05] 150 Accepted data connection
[16:25:05] 3209 bytes transferred. (52.2 KB/s) (60 ms)
[16:25:05] 226-Options: -l
[16:25:05] 226 27 matches total
[16:25:05] Transfer failed.



The permission on that file is CHMOD: 755

Any ideas?

Thanks

New member

Posts

Joined
Fri Jan 19, 2007 5:19 pm

Post by Daniel » Fri Jan 26, 2007 1:59 pm

You need to ask you web host about this one. I think its to do with the linux ftp user permissions. Not the web user permission.

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by jonesy » Fri Jan 26, 2007 5:09 pm

ok will do, what about this bit:

on that page (home.tpl) theres a bit of code:



where is the value of $heading_title  set?

New member

Posts

Joined
Fri Jan 19, 2007 5:19 pm

Post by jonesy » Fri Jan 26, 2007 5:35 pm

hmmm, just thinking now. I can chmod if i do it via putty or similar but not ftp, so that seems to be OK now. But i still cant upload. I can upload other files and other folders around my dedicated server, just not any of the folders in my shop DIR.

Is it because they're still live on my website, I dont think this is actually a hosting issue because as I say; everything else is fine.

Any ideas please?

TO FURTHER THIS REPLY:

If i delete the file home.tpl for instance and then upload my new one, everything is fine.. and i can continue working, so this issue is fixed really; just the other one now about where the values are kept:

i.e where is:   the $heading_title set?
Last edited by jonesy on Fri Jan 26, 2007 5:56 pm, edited 1 time in total.

New member

Posts

Joined
Fri Jan 19, 2007 5:19 pm

Post by Daniel » Sat Jan 27, 2007 11:30 pm

jonesy wrote: hmmm, just thinking now. I can chmod if i do it via putty or similar but not ftp, so that seems to be OK now. But i still cant upload. I can upload other files and other folders around my dedicated server, just not any of the folders in my shop DIR.

Is it because they're still live on my website, I dont think this is actually a hosting issue because as I say; everything else is fine.

Any ideas please?

TO FURTHER THIS REPLY:

If i delete the file home.tpl for instance and then upload my new one, everything is fine.. and i can continue working, so this issue is fixed really; just the other one now about where the values are kept:

i.e where is:   the $heading_title set?
is first set in the language file catalog/language/plugin/home.php the it is set in the template unsing catalog/plugin/home.php.

Some of the    are dynamic (meaning set from a database query) and most are from the relevant language file.

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by jonesy » Wed Jan 31, 2007 5:57 pm

Thanks for the help so far, one other query:

if ive got a new page (myindex.tpl) in the dir catalog/template/default/plugin and within myindex.tpl i put:




 

   

    ">

   

 




The idea being, the categories list should be shown within my current designed template on myindex.tpl.

Any ideas why this isnt working?

Ive done the same for the latest products and that worked fine. is there anything else than needs altering for categories to be shown on my own page?

Cheers

New member

Posts

Joined
Fri Jan 19, 2007 5:19 pm

Post by Daniel » Thu Feb 01, 2007 12:39 pm

did u add the code to myindex.php in the main plugin directory and not the template plugin directory.

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by jonesy » Thu Feb 01, 2007 6:38 pm

hmm firstly i used myindex.tpl rather than .php in the dir: Catalog/template/default/plugin so taking it that thats wrong then?

New member

Posts

Joined
Fri Jan 19, 2007 5:19 pm

Post by jonesy » Thu Feb 01, 2007 7:30 pm

ive changed home.php in catalog/plugin to read: $template->set('content', $plugin->fetch('plugin/shop_index.php'));

and ive removed the shop_index.php file for a test. when i run the page mypage.com/shop/ it basically says cannot find plugin/shop_index.php

I then put the shop_index.php file in the place you suggested: catalog/plugin  and it still doesnt pick the file up.

It only reads the file if i put it in catalog/template/default/plugin. so any ideas?

Its weird because in the same shop_index.php file, it reads this bit of code fine:

           
                       
                 
  ">" title="" alt="" />
">




but for some reason wont display:


             
 

   

    ">

   

 




Its still displaying the categories of its own accord (im assuming something is still being told to display on the page aswell) but its not displaying where I want. By this I mean i can remove the bit of code above (for categories) and the categories still show.


Any ideas please?

New member

Posts

Joined
Fri Jan 19, 2007 5:19 pm

Post by Daniel » Fri Feb 02, 2007 12:53 am

you made a spelling mistake!

Code: Select all

$template->set('content', $plugin->fetch('plugin/shop_index.php'));
should be

Code: Select all

$template->set('content', $plugin->fetch('plugin/shop_index.tpl'));
the template file is not a php extention its .tpl

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by jonesy » Mon Feb 05, 2007 5:54 pm

well basically i did that as a test.

The thing is, your shopping cart is 100% correct for our needs, and works perfectly. Our problem is we've had a website thats been designed; and has taken a v.long time, because the content etc is generated from a DB and always changes.

With this in mind, basically what I need to do is take MY index.php page, which is the basis of our webpage, and add the bits in from your cart.

So far ive added the products list fine (categories) so this shows in my current file, but now im trying to do the same for the products. So i want to be able to use my index.php but include the products within my div if that makes sense.

Any suggestions? i know this isnt ideal but our website is not a normal steriotypical site, and brings a fair amount of complexion to it.

Obviously you havent got tons of spare time, so if you could give me a quick rundown of how to basically output products onto my page, id be most grateful. At the moment our page is running, and the products page is overlayed on our page if that makes sense.

Help?

:)

New member

Posts

Joined
Fri Jan 19, 2007 5:19 pm

Post by jonesy » Mon Feb 05, 2007 9:33 pm

i may have now done it  ;)

New member

Posts

Joined
Fri Jan 19, 2007 5:19 pm

Post by Daniel » Mon Feb 05, 2007 10:26 pm

jonesy wrote: well basically i did that as a test.

The thing is, your shopping cart is 100% correct for our needs, and works perfectly. Our problem is we've had a website thats been designed; and has taken a v.long time, because the content etc is generated from a DB and always changes.

With this in mind, basically what I need to do is take MY index.php page, which is the basis of our webpage, and add the bits in from your cart.

So far ive added the products list fine (categories) so this shows in my current file, but now im trying to do the same for the products. So i want to be able to use my index.php but include the products within my div if that makes sense.

Any suggestions? i know this isnt ideal but our website is not a normal steriotypical site, and brings a fair amount of complexion to it.

Obviously you havent got tons of spare time, so if you could give me a quick rundown of how to basically output products onto my page, id be most grateful. At the moment our page is running, and the products page is overlayed on our page if that makes sense.

Help?

:)
I have just set 2 web sites up with a lot of customisation using opencart.

http://www.peplink.com
http://www.pepwave.com

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by dmit » Thu Apr 05, 2007 6:29 pm

Daniel wrote:
I have just set 2 web sites up with a lot of customisation using opencart.

http://www.peplink.com
http://www.pepwave.com
Great work! Is it based on opencart only or is a combination of opencart and some other CMS engine?
Or is it an extremely patched / modified version of opencart made by yourself?

In fact, this link http://www.pepwave.com/products/surf/documentation/ is exactly what I'm looking for. I mean I need opencart to have a product description page not only with images, but also with links to other files like PDF, DOC, etc with short descriptions. Exactly as you have there.

Is it a kind of commercial version or you can release it as public domain?..

Newbie

Posts

Joined
Thu Apr 05, 2007 5:45 pm

Post by Daniel » Thu Apr 05, 2007 11:19 pm

The system I have set up is only based on opencart and I have added a lot of new features to get it to this level.

No public release of that system. I set it up for a company I was working for.

These features are not hard to implement and if all goes well on opencart I will release contrbutions simular to what I have done on peplink.

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by mmk » Sun May 18, 2008 10:46 pm

Your site looks great! How did you change the header color shading from default blue to a dark shade ?
And secondly, how did you manage to display a image at the center of the main page ?

I am new to php and your pointer will be appreciated.

mmk
Newbie

Posts

Joined
Tue May 06, 2008 4:27 am
Who is online

Users browsing this forum: No registered users and 3 guests