Page 1 of 9 123 ... LastLast
Results 1 to 10 of 85
  1. #1
    Join Date
    Jan 2013
    Posts
    104
    Plugin Contributions
    0

    Default Help with some PHP editing a new template (Picaflor)

    There are a few things I need help editing on my site still and a lot of it seems like it's PHP.

    But where can I find the index.html so I can edit things like body etc? All I can find are PHP files

    To start I'm having issues with the logo showing up

    The website is http://visionaryscience.net/ and I have uploaded the new logo & edited the code correctly (I thought) but not sure why the logo image isn't showing up? Anyone have any ideas? I followed the Picaflor directions as follows:

    Create your logo in your image editing program and upload it to includes/templates/yorkshire_clean/images.

    Open includes/languages/english/yorkshire_clean/header.php in a plain text editor. Find this code on or around line 24:

    Code:
    define('HEADER_ALT_TEXT', 'Yorkshire Clean :: Free Template by www.picaflor-azul.com');
    define('HEADER_LOGO_WIDTH', '235px');
    define('HEADER_LOGO_HEIGHT', '60px');
    define('HEADER_LOGO_IMAGE', 'logo.png');
    
        Replace "Yorkshire Clean :: Free Template by www.picaflor-azul.com" with your site name and tag line here
        Replace "235px" with your logo width
        Replace "60px" with your logo height
        Replace "logo.png" with the name of your logo image
    
    define('HEADER_ALT_TEXT', 'Your store name :: your store tag line');
    define('HEADER_LOGO_WIDTH', 'height in px');
    define('HEADER_LOGO_HEIGHT', 'width in px');
    define('HEADER_LOGO_IMAGE', 'your logo name .png');
    Code:
    <?php
    /**
     * @package languageDefines
     * @copyright Copyright 2003-2006 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: header.php 2940 2006-02-02 04:29:05Z drbyte $
     */
    
    // header text in includes/header.php
      define('HEADER_TITLE_CREATE_ACCOUNT', 'Create Account');
      define('HEADER_TITLE_MY_ACCOUNT', 'My Account');
      define('HEADER_TITLE_CART_CONTENTS', 'Shopping Cart');
      define('HEADER_TITLE_CHECKOUT', '<span class="header-checkout">Checkout</span>');
      define('HEADER_TITLE_TOP', 'Top');
      define('HEADER_TITLE_CATALOG', 'Home');
      define('HEADER_TITLE_LOGOFF', 'Log Out');
      define('HEADER_TITLE_LOGIN', 'Log In');
      define('HEADER_TITLE_PROMO1', '<span class="promo-big">FREE SHIPPING</span><br />on all orders over <span class="promo-green">$50.00</span>');
    
    // definiitions for header icons
      define('HEADER_ICON_HOME', 'home.png');
      define('HEADER_ICON_LOGOFF', 'logoff.png');
      define('HEADER_ICON_ACCOUNT', 'account.png');
      define('HEADER_ICON_LOGIN', 'login.png');
      define('HEADER_ICON_CART', 'cart.png');
      define('HEADER_ICON_CHECKOUT', 'checkout.png');
    
    
    // added defines for header alt and text
      define('HEADER_ALT_TEXT', 'VisionaryScience.net Bringing Tomorrows Vision Today');
      define('HEADER_SALES_TEXT', 'Bringing Tomorrows Vision Today');
      define('HEADER_LOGO_WIDTH', '574px');
      define('HEADER_LOGO_HEIGHT', '120px');
      define('HEADER_LOGO_IMAGE', 'visionarysciencelogo.jpg');
    
    // header Search Button/Box Search Button
      define('HEADER_SEARCH_BUTTON','Search');
      define('HEADER_SEARCH_DEFAULT_TEXT', 'Enter search keywords here');
    
    ?>

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,024
    Plugin Contributions
    3

    Default Re: Help with some PHP editing a new template (Picaflor)

    You have the image listed as visionarysciencelogo.jpg. The browser is looking for visionarysciencelogo.png.

    BTW, there are no HTML files to edit in Zencart. All pages are created on the fly from PHP files and database data and presented to the browser as HTML.

  3. #3
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Help with some PHP editing a new template (Picaflor)

    There is no index.html to edit. All the HTML output is created at runtime by various PHP files with info from the database, and sent to your browser. When you click a link to another page, the one you are on evaporates and the next one is built and sent to you.
    So you need to locate the correct PHP file that builds the element you want to edit. What exactly do you want to change aside from the logo?

    It is currently looking for
    includes/templates/template_default/images/visionarysciencelogo.png
    because it couldn't find
    includes/templates/yorkshire_clean/images/visionarysciencelogo.png
    but you say you are using visionarysciencelogo.jpg, and when I change the HTML output using Firebug to look for that, the logo displays correctly on your site.

  4. #4
    Join Date
    Jan 2013
    Posts
    104
    Plugin Contributions
    0

    Default Re: Help with some PHP editing a new template (Picaflor)

    I made both a jpg & .png & neither one of them were showing up for me.

    Normally I only use .png's when I need a transparent background.

    Since I already have the .jpg file uploaded, what/where do I need to change the HTML output code to reflect this?

  5. #5
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Help with some PHP editing a new template (Picaflor)

    Since I already have the .jpg file uploaded, what/where do I need to change the HTML output code to reflect this?
    Not html but php

    Look for

    /includes/languages/english/template_name/header.php

    Replace template_name with your template name
    Zen-Venom Get Bitten

  6. #6
    Join Date
    Jan 2013
    Posts
    104
    Plugin Contributions
    0

    Default Re: Help with some PHP editing a new template (Picaflor)

    Ahh wonderful! It seems I finally got it to work. Needs a little CSS, but at least it's there!

    Now what about cleaning up the stuff at the bottom:

    Copyright © 2013 VisionaryScience.net. Powered by Zen Cart.
    Zen cart templates by Picaflor Azul.

    I want to leave the Copyright 2013 visionaryscience.net

    But I want to delete the rest.

    Thanks.

  7. #7
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,024
    Plugin Contributions
    3

    Default Re: Help with some PHP editing a new template (Picaflor)

    It's in english.php, though I think a small link is the least we can do to say 'thanks' for a great piece of free shopping cart software.

  8. #8
    Join Date
    Jan 2013
    Posts
    104
    Plugin Contributions
    0

    Default Re: Help with some PHP editing a new template (Picaflor)

    Hmm, when I delete
    Code:
    '</a>. Powered by <a href="http://www.zen-cart.com" target="_blank">Zen Cart</a>'
    in the english.php it breaks the page:

    Code:
    define('FOOTER_TEXT_BODY', 'Copyright &copy; ' . date('Y') . ' <a href="' . zen_href_link(FILENAME_DEFAULT) . '" target="_blank">' . STORE_NAME . '</a>. Powered by <a href="http://www.zen-cart.com" target="_blank">Zen Cart</a>');
    Any idea why?

  9. #9
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Help with some PHP editing a new template (Picaflor)

    Try this

    Code:
    define('FOOTER_TEXT_BODY', 'Copyright &copy; ' . date('Y') . ' <a href="' . zen_href_link(FILENAME_DEFAULT) . '" target="_blank">' . STORE_NAME . '</a>);
    Zen-Venom Get Bitten

  10. #10
    Join Date
    Jul 2009
    Location
    picaflor-azul.com
    Posts
    6,930
    Plugin Contributions
    45

    Default Re: Help with some PHP editing a new template (Picaflor)

    Quote Originally Posted by kobra View Post
    Try this

    Code:
    define('FOOTER_TEXT_BODY', 'Copyright © ' . date('Y') . ' <a href="' . zen_href_link(FILENAME_DEFAULT) . '" target="_blank">' . STORE_NAME . '</a>);
    I just wanted to post to let you know that if you read the readme.html file included in the template package most of your questions will be answered ;)

    Thanks,

    Anne

 

 
Page 1 of 9 123 ... LastLast

Similar Threads

  1. Replies: 3
    Last Post: 2 Mar 2012, 02:10 PM
  2. Help with editing php files
    By goldnuggetsales.com in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 10 Dec 2009, 11:46 AM
  3. Help with editing NEW PRODUCTS page
    By kevinmc3 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 27 Oct 2006, 10:56 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR