Results 1 to 10 of 10
  1. #1
    Join Date
    Jun 2007
    Posts
    54
    Plugin Contributions
    0

    Default Need a code for tpl_specials.php

    Hi

    I have done something to my tpl_specials.php. each time a special comes up on the left sideboxes it drags my right sideboxes next to my left boxes. over the top of the middle content.

    Really weird so I figure if someone can help me with a fresh copy of the tpl_specials.php, and then I start again.

    Thanks to anyone that can help really appreciated


  2. #2
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default Re: Need a code for tpl_specials.php

    Candylea... You should really have a copy of the appropriate version of ZC on your local drive already. I suggest you get this sorted out pronto. Download ZC and unzip it on your local drive.

    There's no point anyone posting that file on this forum until we know what version you are using. Realise too, that the core file will not render any customisations you may have made.

  3. #3
    Join Date
    Jun 2007
    Posts
    54
    Plugin Contributions
    0

    Default Need a code for tpl_specials.php

    Hi

    I have done something to my tpl_specials.php. each time a special comes up on the left sideboxes it drags my right sideboxes next to my left boxes. over the top of the middle content.

    Really weird so I figure if someone can help me with a fresh copy of the tpl_specials.php, and then I start again.

    Thanks to anyone that can help really appreciated

  4. #4
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Need a code for tpl_specials.php

    Download a fresh copy of Zen Cart from Source Forge. http://sourceforge.net/project/showf...kage_id=171544
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  5. #5
    Join Date
    Sep 2008
    Location
    Gold Coast, Australia
    Posts
    55
    Plugin Contributions
    0

    Default Re: Need a code for tpl_specials.php

    Hi,
    I want all my specials to appear on one page when the user clicks on the specials link I created in the header navigation.
    Is there a way to display all the specials on a page like this.

    Sorry its a question and not an answer to the original problem.....but this is the first time I've written in this forum and I
    dont know how to post a new question. I've been all over the forum site and read all the terms and conditions, but cant find
    a spot to start a new thread. Can someone tell me how to do this??


    Thanks in advance

  6. #6
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: Need a code for tpl_specials.php

    The button near the top of each section of the forum that says "new thread".
    Mary Ellen
    I came; I saw; I Zenned
    Taking over the world... one website at a time
    Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

    Holzheimer
    Fan Odyssey

  7. #7
    Join Date
    Jun 2007
    Posts
    54
    Plugin Contributions
    0

    Default Re: Need a code for tpl_specials.php

    Quote Originally Posted by fairestcape View Post
    Candylea... You should really have a copy of the appropriate version of ZC on your local drive already. I suggest you get this sorted out pronto. Download ZC and unzip it on your local drive.

    There's no point anyone posting that file on this forum until we know what version you are using. Realise too, that the core file will not render any customisations you may have made.

    Thanks for your reply
    sorry my fault I'm using version 8 and I have edited my local copy and thought I had a extra copy. Download said it would take an hour so I thought on here would be quicker.
    This is my code and you can see I am only adding a css to the box called specials. but some how I have done something to the code I'm guessing any way

    tpl_special.php
    <?php
    /**
    * tpl_specials.php
    *
    * @package templateSystem
    * @copyright Copyright 2003-2007 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: tpl_specials.php 6128 2007-04-08 04:53:32Z birdbrain $
    */
    $content = "";

    $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="specials">' . "\n";
    $specials_box_counter = 0;
    while (!$random_specials_sidebox_product->EOF) {
    $specials_box_counter++;
    $specials_box_price = zen_get_products_display_price($random_specials_sidebox_product->fields['products_id']);
    $content .= '<div class="sideBoxContent centeredContent">';
    $content .= '<a href="' . zen_href_link(zen_get_info_page($random_specials_sidebox_product->fields["products_id"]), 'cPath=' . zen_get_generated_category_path_rev($random_specials_sidebox_product->fields["master_categories_id"]) . '&products_id=' . $random_specials_sidebox_product->fields["products_id"]) . '">' . zen_image(DIR_WS_IMAGES . $random_specials_sidebox_product->fields['products_image'], $random_specials_sidebox_product->fields['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT);
    $content .= '<br />' . $random_specials_sidebox_product->fields['products_name'] . '</a>';
    $content .= '<div>' . $specials_box_price . '</div>';
    $content .= '</div>';
    $random_specials_sidebox_product->MoveNextRandom();
    }
    ?>

    my css

    .specials{

    border-right: thin solid #FD0031;
    border-bottom: thin solid #FD0031;
    border-left: thin solid #FD0031;
    }


    any insite or I should download another copy of zencart

    thank you

  8. #8
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Need a code for tpl_specials.php

    Moderator's note - Your TWO threads have been merged. Please Do not post the same problem more than once.
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  9. #9
    Join Date
    Sep 2008
    Location
    Gold Coast, Australia
    Posts
    55
    Plugin Contributions
    0

    Default Re: Need a code for tpl_specials.php

    Ive looked on the site for the new thread button. Used search in safari to locate the words "new thread" with no luck. How do you post a new question ? can someone give me a screenshot please. I feel so stupid right now

  10. #10
    Join Date
    Sep 2008
    Location
    Gold Coast, Australia
    Posts
    55
    Plugin Contributions
    0

    Default Re: Need a code for tpl_specials.php

    found it sorry

 

 

Similar Threads

  1. need php code advice
    By finlander in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 8 Nov 2010, 08:13 AM
  2. Desperatley Need Help with PHP / MYSQL code
    By philip937 in forum General Questions
    Replies: 19
    Last Post: 7 Oct 2009, 06:47 PM
  3. Need PHP code hack helper for make news products of month.
    By explorer1979 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 29 Oct 2008, 04:19 PM
  4. Need help with tpl_header.php code changes
    By BlessIsaacola in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 9 Mar 2008, 12:00 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