Results 1 to 10 of 10
  1. #1
    Join Date
    Aug 2007
    Posts
    38
    Plugin Contributions
    0

    Default A few questions (cause my eye are crossin!)

    Ok, I finally feel like I'm getting somewhere. After several layout changes, I'm approaching a stalemate with the code. I've got a few things - and would love some advise.

    1. I'm trying to put a rounded border around each product listing, similar to this
    http://www.babylonink.com/gallery.html

    After several dives into the forum and code, I got nothin. I'm using the snazzy rounded corners method.

    2. How do I remove the border from the contact us/create an account forms? I found what I thought was the css for <form> but it hasn't worked and I'm at a loss.

    3. On my 'Create An account' page, the form has gone all wonky. That is about all I can say for that. Here is a link.

    Any help would be muchly appreciated, as I've been staring at this for 3 days now. Thanks in advance!

  2. #2
    Join Date
    Sep 2007
    Location
    Dublin, Ireland
    Posts
    1,288
    Plugin Contributions
    8

    Default Re: A few questions (cause my eye are crossin!)

    1- Is that not your site??? In which case the rounded corners look fine.

    2- I think you are going to have to edit the CUSTOM\templates\tpl_contact_us_default.php and CUSTOM\templates\tpl_create_account_default.php and/or CUSTOM\templates\tpl_modules_create_account.php

    3- Had a look at your stylesheet. There are width elements all over the place. A quick kludge would be to insert "width: 90%;" into your fieldset style but it would be better to find out why the divs are being scaled like they are.
    Andrew

    Andrew Moore
    Omnicia Agile Development
    www.omnicia.com

  3. #3
    Join Date
    Aug 2007
    Posts
    38
    Plugin Contributions
    0

    Default Re: A few questions (cause my eye are crossin!)

    Ah, note about #1 - that is my site, however the rounded corners there are all done with CSS and HTML and are not linked into the Zen-Cart shopping cart. I'm trying to move everything over to ZC. Thanks for the other info, I'll give it a try.

  4. #4
    Join Date
    Aug 2007
    Posts
    38
    Plugin Contributions
    0

    Default Re: A few questions (cause my eye are crossin!)

    Okie dokie - a few updates. Maybe this will be useful to someone else.

    • To remove the border around the contact form and/or the registration form, you have to apply a style to the FIELDSET in the stylesheet for border:none.
    • If you want to selectively apply a border, you will have to create a class for the FIELDSET and apply it in the appropriate tpl_file. Lovely.
    • Adding the width:90% to the fieldset straightened out the wonky create page. No idea why it was like that, other than it wasn't specified.

    Still holding out for a solution to putting a border around the product listings. Traditional methods don't work, because I'm difficult and want to put rounded boxes around the listings, not just a CSS border.

    Any ideas?

  5. #5
    Join Date
    Sep 2007
    Location
    Dublin, Ireland
    Posts
    1,288
    Plugin Contributions
    8

    Default Re: A few questions (cause my eye are crossin!)

    I'll have a look in the morning
    Andrew

    Andrew Moore
    Omnicia Agile Development
    www.omnicia.com

  6. #6
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: A few questions (cause my eye are crossin!)

    http://www.sitepoint.com/article/rou...css-javascript
    Rounded Corners with CSS and JavaScript

    A good read on the basics. Good method for stand-alone code as well.

  7. #7
    Join Date
    Sep 2007
    Location
    Dublin, Ireland
    Posts
    1,288
    Plugin Contributions
    8

    Default Re: A few questions (cause my eye are crossin!)

    Thanks for that Rob- learnt a couple of nice new tips.
    Andrew

    Andrew Moore
    Omnicia Agile Development
    www.omnicia.com

  8. #8
    Join Date
    Aug 2007
    Posts
    38
    Plugin Contributions
    0

    Default Re: A few questions (cause my eye are crossin!)

    Yes, nice article! However, I'm still at a the blocked point: where to apply a technique within the PHP structure/page? tpl_columnar_display.php seems to provide no solution and I don't know which pages/pages need to be modified to achieve this result.

    It appears the product list is created by tables, and further broken down by even/odd assignments. This is where the confusion comes in.

  9. #9
    Join Date
    Sep 2007
    Location
    Dublin, Ireland
    Posts
    1,288
    Plugin Contributions
    8

    Default Re: A few questions (cause my eye are crossin!)

    Rogue- that can be over-ridden by your own custom text. What we need to work out is the additions to the CSS and the actual PHP code itself. I presume you are using a custom override so we can play with the code a little without impacting the Zencart core. I'll have another look in the morning and get back to you.
    Andrew

    Andrew Moore
    Omnicia Agile Development
    www.omnicia.com

  10. #10
    Join Date
    Sep 2007
    Location
    Dublin, Ireland
    Posts
    1,288
    Plugin Contributions
    8

    Default Re: A few questions (cause my eye are crossin!)

    okay- what you need to do is find tpl_tabular_display.php (it's in includes/templates/template_default/common). Copy this to your custom folder, common subfolder. This is the file that creates the tabled display of products. Change this to include your rounded boxes (as per the HTML that you created).

    Then find the following code in your custom tpl_main_page.php

    PHP Code:
    <?php
     
    /**
      * prepares and displays center column
      *
      */
      
    echo $body_code;
     require(
    $body_code); ?>
    Either add the following line after the code shown or replace the code shown with:

    PHP Code:
    <?php require($template->get_template_dir('tpl_tablular_display.php',DIR_WS_TEMPLATE$current_page_base,'common'). '/tpl_tabular_display.php'); ?>
    Andrew

    Andrew Moore
    Omnicia Agile Development
    www.omnicia.com

 

 

Similar Threads

  1. A few questions...
    By bendparker in forum Templates, Stylesheets, Page Layout
    Replies: 18
    Last Post: 21 Oct 2008, 06:17 PM
  2. Few Questions on a few issues.
    By RSprinkel in forum General Questions
    Replies: 6
    Last Post: 10 Mar 2007, 12:02 PM
  3. Few questions.
    By paperzombie in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 6 Dec 2006, 12:17 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