Thread: Basic editing

Results 1 to 8 of 8
  1. #1
    Join Date
    Oct 2008
    Posts
    141
    Plugin Contributions
    0

    red flag Basic editing

    I've only just installed zencart so I'm about as green as it gets, but I do have a couple of phpbb forums which I've customised quite heavily without problems. I'm struggling to find even the most basic edits though - I've browsed the stylesheet.css (for the classic template) looking for a way to widen my page to about 930 pixels and just cant find it. Any suggestions?
    I also want to modify the page layout slightly for category index pages, and then for the individual product pages, but am having problems there too - in phpbb I'd simply edit index_body.tpl file for that, but it doesn't seem that zencart uses this hierarchy. Is there a tutorial somewhere for modifying the layout of particular pages to give me an idea of where to look?
    I've ordered a hard copy of the book from lulu.com but I think its going to be a week or more before that turns up and I'm eager to get editing!
    Many thanks for any assistance

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Basic editing

    To change the page width you would tweak the width setting for the mainWrapper ID in the classic/css/stylesheet.css file.

    For the rest we would need to know more specifically what you wished to do to be able to assess whether the changes are best achieved by editing the structure of the relevant templates, or the associated CSS.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  3. #3
    Join Date
    Oct 2008
    Posts
    141
    Plugin Contributions
    0

    Default Re: Basic editing

    Quote Originally Posted by kuroi View Post
    To change the page width you would tweak the width setting for the mainWrapper ID in the classic/css/stylesheet.css file.
    D'oh... how could I have missed that? Yup, of course, thats it. Thanks for spotting it!

    Quote Originally Posted by kuroi View Post
    For the rest we would need to know more specifically what you wished to do to be able to assess whether the changes are best achieved by editing the structure of the relevant templates, or the associated CSS.
    Okay, well there isn't too much I want to change, really.
    Generically, I'd like to suppress the banner that appears lowermost on all pages - the file thats called zencart_468_60_02.gif. I tried the advice in http://www.zen-cart.com/wiki/index.php/Top_10_questions about footers, but that was editing the 'powered by zencart' text under the IP address which I'm happy to keep, its the big banner underneath I want to get rid of! I'd have expected that to be in a file called 'footer.php' or 'footer.tpl' etc, but they dont appear to exist!

    Then clicking a product category from my index takes me to a category listing page, with my sidebars enabled. All good, except that the listing contains 3 'columns' with the thumbnail in the left one, text in centre, and price/buy it now button in the right. I'd rather only have TWO columns, with the image and price on left, and the text having the full remaining width of centre and right column.

    Finally, on the individual item page, I'd like to add another icon somewhere near the PREV/NEXT buttons with 'free delivery' or whatever, and at the foot of that page an editable field where I can place some additional text (I'm thinking that I'd like a box there with "Not quite what you're looking for? Try this suggested alternative instead" sort of thing).

  4. #4
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Basic editing

    Quote Originally Posted by travellers View Post
    Generically, I'd like to suppress the banner that appears lowermost on all pages - the file thats called zencart_468_60_02.gif. I tried the advice in http://www.zen-cart.com/wiki/index.php/Top_10_questions about footers, but that was editing the 'powered by zencart' text under the IP address which I'm happy to keep, its the big banner underneath I want to get rid of! I'd have expected that to be in a file called 'footer.php' or 'footer.tpl' etc, but they dont appear to exist!
    Easy. Just turn it off in the Admin (Admin > Tools > Banner Manager

    Quote Originally Posted by travellers View Post
    Then clicking a product category from my index takes me to a category listing page, with my sidebars enabled. All good, except that the listing contains 3 'columns' with the thumbnail in the left one, text in centre, and price/buy it now button in the right. I'd rather only have TWO columns, with the image and price on left, and the text having the full remaining width of centre and right column.
    A bit more complicated. This listing is designed to put each item into its own cell / column. Although you can change the items displayed and the order (Admin > Configuration > Product Listing) you would need to roll up your sleeves and tweak the code to change the layout. I'd recommend starting with the common/tpl_tabular_display.php template, but treading very carefully as this template is also used elsewhere.

    Quote Originally Posted by travellers View Post
    Finally, on the individual item page, I'd like to add another icon somewhere near the PREV/NEXT buttons with 'free delivery' or whatever
    This could be done by editing the tpl_product_info_default.php template, or by adding it as a banner, most easily as one of the sidebox banners.

    Quote Originally Posted by travellers View Post
    and at the foot of that page an editable field where I can place some additional text (I'm thinking that I'd like a box there with "Not quite what you're looking for? Try this suggested alternative instead" sort of thing).
    Sounds like you're looking for one of the cross-sell add-ons available from the link at the top of this page.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  5. #5
    Join Date
    Oct 2008
    Posts
    141
    Plugin Contributions
    0

    Default Re: Basic editing

    Quote Originally Posted by kuroi View Post
    Easy. Just turn it off in the Admin (Admin > Tools > Banner Manager
    Hmmm... You're good at this, aint ya?

    Quote Originally Posted by kuroi View Post
    A bit more complicated. This listing is designed to put each item into its own cell / column. Although you can change the items displayed and the order (Admin > Configuration > Product Listing) you would need to roll up your sleeves and tweak the code to change the layout. I'd recommend starting with the common/tpl_tabular_display.php template, but treading very carefully as this template is also used elsewhere.
    THanks for that - you've told me more than enough that this is something I should leave alone until I'm a bit more familiar with the concepts used.


    Quote Originally Posted by kuroi View Post
    This could be done by editing the tpl_product_info_default.php template, or by adding it as a banner, most easily as one of the sidebox banners.
    Thats the one - thanks, I'll have a gentle play with that later.

    Quote Originally Posted by kuroi View Post
    Sounds like you're looking for one of the cross-sell add-ons available from the link at the top of this page.
    You could well be right. But, looking at the 'Template Alterations' category, how would I know? I mean, Yes, they do have a (very) brief description, maybe 50 words or so, but thats your lot. There's no picture of what it does, some of them dont even have a description at all, but they could be just what I want. It seems that the only way of discovering if the modification is one that anyone would find useful is to download it, install it, look at your site, and then say "Euch, I dont like that at all". Thats unbelievably frustrating!

  6. #6
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Basic editing

    A little dated, but this might help.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  7. #7
    Join Date
    Oct 2008
    Posts
    141
    Plugin Contributions
    0

    Default Re: Basic editing

    Quote Originally Posted by kuroi View Post
    A little dated, but this might help.
    Thanks for that - I'll download it and give it a go. Meanwhile, I cant find the file you referred to earlier - tpl_product_info_default.php. You couldn't tell me where it hangs out could you?
    Cheers!

  8. #8
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Basic editing

    That's probably because I was typing from memory and misnamed it. It's actually tpl_product_info_display.php.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

 

 

Similar Threads

  1. Basic Template Editing?
    By ojhernandez in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 5 Sep 2010, 03:11 AM
  2. basic questions
    By outeredge2 in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 5 Apr 2010, 05:25 PM
  3. Some very basic questions from a very basic noobie
    By wellnessclub in forum General Questions
    Replies: 9
    Last Post: 5 May 2009, 04:39 PM
  4. Basic Information
    By strat in forum Installing on a Windows Server
    Replies: 3
    Last Post: 24 Oct 2006, 05:05 AM
  5. Basic changes
    By fromp in forum Basic Configuration
    Replies: 9
    Last Post: 22 May 2006, 04:40 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg