Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 35
  1. #11
    Join Date
    Feb 2011
    Posts
    5
    Plugin Contributions
    0

    Default Re: What's on Sale centerbox

    Hi, is there a way to get rid of the category images? My site does not use category images and I dont like the generic "no image" image that shows up in the sales list. I tried to comment out the line that calls for the category image however it just stops the script from working all together. Thank you for an awesome mod!

  2. #12
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,682
    Plugin Contributions
    123

    Default Re: What's on Sale centerbox

    Start by commenting out the call to zen_image in ./includes/templates/custom/common/tpl_sale_columnar_display.php. Once you get that working, you'll also want to delete the <td> and </td> that go around it.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  3. #13
    Join Date
    Feb 2011
    Posts
    8
    Plugin Contributions
    0

    Default Re: What's on Sale centerbox

    Thanks for this addon. I still cannot make it work on product listing, I suppose I do something wrong.

    Anyway, what I wanted to ask is:
    is there a way to show a sale's name (the one that I'm choosing when setting up sale in admin panel)?

  4. #14
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,682
    Plugin Contributions
    123

    Default Re: What's on Sale centerbox

    You'd have to write code; nothing is built in.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  5. #15
    Join Date
    Jul 2008
    Location
    Sydney, Australia
    Posts
    171
    Plugin Contributions
    0

    Default Re: What's on Sale centerbox

    Hi,

    Does this work with the ZC version 1.5.0.

    Thanks.

  6. #16
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,682
    Plugin Contributions
    123

    Default Re: What's on Sale centerbox

    Yes it does.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  7. #17
    Join Date
    Jul 2008
    Location
    Sydney, Australia
    Posts
    171
    Plugin Contributions
    0

    Default Re: What's on Sale centerbox

    Cheers, thanks.

    Anna

  8. #18
    Join Date
    Apr 2013
    Posts
    10
    Plugin Contributions
    0

    Default Re: What's on Sale centerbox

    Thank you for this mod. But I get crazy to turn on it on the Home page. It's appears on category pages, but on Home Page - not. My Zen Cart is 1.5.0 I triple checked instalation and the files merging. Any advices?

  9. #19
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,682
    Plugin Contributions
    123

    Default Re: What's on Sale centerbox

    Just tried it and it worked for me. Make sure in the file ./includes/modules/custom/sales_index.php that $show_sales is getting set to true. Double check the 2 configuration settings MAX_DISPLAY_SALE_PRODUCTS_INDEX and MAX_DISPLAY_SALE_CATEGORIES_INDEX.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  10. #20
    Join Date
    Apr 2013
    Posts
    10
    Plugin Contributions
    0

    Default Re: What's on Sale centerbox

    No, still not working. Can you take a look at my pl_index_default? Thanks a lot!
    PHP Code:
    <?php
    /**
     * Page Template
     *
     * Main index page<br />
     * Displays greetings, welcome text (define-page content), and various centerboxes depending on switch settings in Admin<br />
     * Centerboxes are called as necessary
     *
     * @package templateSystem
     * @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: tpl_index_default.php 3464 2006-04-19 00:07:26Z ajeh $
     */
    ?>

    <script type="text/javascript">
      $(document).ready(function() {
        $('a.moduleBox').click(function() { // show selected module(s)
        // variables
          var popID = $(this).attr('rel');
          var popNAV = $(this).attr('class');
        // clear out menu styles and apply active
          $('a.moduleBox').css('background', '');
          $(this).css('background', '');
        // hide all wrappers and display the one selected
          $('.centerBoxWrapper').hide();
          // check if all or single selection
          if (popID != 'viewAll') {
            $('#' + popID).show();
          } else {
           $('.centerBoxWrapper').show();
          }
        });
      });
    </script>

    <div class="centerColumn" id="indexDefault">
    <h1 id="indexDefaultHeading"><?php echo HEADING_TITLE?></h1>

    <?php if (SHOW_CUSTOMER_GREETING == 1) { ?>
    <h2 class="greeting"><?php echo zen_customer_greeting(); ?></h2>
    <?php ?>

    <!-- deprecated - to use uncomment this section
    <?php if (TEXT_MAIN) { ?>
    <div id="" class="content"><?php echo TEXT_MAIN?></div>
    <?php ?>-->

    <!-- deprecated - to use uncomment this section
    <?php if (TEXT_INFORMATION) { ?>
    <div id="" class="content"><?php echo TEXT_INFORMATION?></div>
    <?php ?>-->

    <?php if (DEFINE_MAIN_PAGE_STATUS >= and DEFINE_MAIN_PAGE_STATUS <= 2) { ?>
    <?php
    /**
     * get the Define Main Page Text
     */
    ?>
    <div id="indexDefaultMainContent" class="content"><?php require($define_page); ?></div>
    <?php ?>


    <div id="moduleMenu-wrapper">
    <?php
    // bof module navigation
    $show_display_nav $db->Execute(SQL_SHOW_PRODUCT_INFO_MAIN);
    if (
    $this_is_home_page) {
      echo 
    '';
    }
    echo 
    '<div id="moduleMenu">';
    while (!
    $show_display_nav->EOF) {
      switch (
    $show_display_nav->fields['configuration_key']) {
        case 
    'SHOW_PRODUCT_INFO_MAIN_FEATURED_PRODUCTS':
          echo 
    '<span class="navOne moduleSpan"><a href="javascript:void(0)" rel="featuredProducts" class="navOne moduleBox">' MODULE_TABS_FEATURED '</a></span>';
        break;
        case 
    'SHOW_PRODUCT_INFO_MAIN_SPECIALS_PRODUCTS':
          echo 
    '<span class="navThree moduleSpan"><a href="javascript:void(0)" rel="specialsDefault" class="navThree moduleBox">' HEADER_TITLE_SPECIALS '</a></span>';
        break;
        case 
    'SHOW_PRODUCT_INFO_MAIN_NEW_PRODUCTS':
          echo 
    '<span class="navTwo moduleSpan"><a href="javascript:void(0)" rel="whatsNew" class="navTwo moduleBox">' MODULE_TABS_NEW '</a></span>';
        break;
      }
      
    $show_display_nav->MoveNext();
    }
    //echo '<span id="navFour" class="moduleSpan"><a href="javascript:void(0)" id="navFour" rel="viewAll" class="moduleBox">All</a></span>';
    echo '<br class="clearBoth" />';
    echo 
    '</div>';
    // eof module navigation

      
    $show_display_category $db->Execute(SQL_SHOW_PRODUCT_INFO_MAIN);
      while (!
    $show_display_category->EOF) {
    ?>

    <!-- bof What's on Sale --> 
    <?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MAIN_SALES_PRODUCTS') { ?>
    <?php
    /**
     * display the Sale Products Center Box
     */
    require($template->get_template_dir('tpl_modules_sale_products.php',DIR_WS_TEMPLATE$current_page_base,'templates'). '/tpl_modules_sale_products.php');?>
    <?php 
    ?>
    <!-- eof What's on Sale -->
     
    <?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MAIN_FEATURED_PRODUCTS') { ?>
    <?php
    /**
     * display the Featured Products Center Box
     */
    ?>
    <?php 
    require($template->get_template_dir('tpl_modules_featured_products.php',DIR_WS_TEMPLATE$current_page_base,'templates'). '/tpl_modules_featured_products.php'); ?>
    <?php 
    ?>

    <?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MAIN_SPECIALS_PRODUCTS') { ?>
    <?php
    /**
     * display the Special Products Center Box
     */
    ?>
    <?php 
    require($template->get_template_dir('tpl_modules_specials_default.php',DIR_WS_TEMPLATE$current_page_base,'templates'). '/tpl_modules_specials_default.php'); ?>
    <?php 
    ?>

    <?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MAIN_NEW_PRODUCTS') { ?>
    <?php
    /**
     * display the New Products Center Box
     */
    ?>
    <?php 
    require($template->get_template_dir('tpl_modules_whats_new.php',DIR_WS_TEMPLATE$current_page_base,'templates'). '/tpl_modules_whats_new.php'); ?>
    <?php 
    ?>

    <?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MAIN_UPCOMING') { ?>
    <?php
    /**
     * display the Upcoming Products Center Box
     */
    ?>
    <?php 
    include(DIR_WS_MODULES zen_get_module_directory(FILENAME_UPCOMING_PRODUCTS)); ?><?php ?>


    <?php
      $show_display_category
    ->MoveNext();
      } 
    // !EOF
    ?>
    </div>
    </div>

 

 
Page 2 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. v151 Global sale function (Change the order of sale/save placement)
    By Trademagic in forum General Questions
    Replies: 2
    Last Post: 19 Dec 2013, 08:55 AM
  2. v139h how to turn off Sale graphic and % display on sale items?
    By jjj0923 in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 5 Feb 2012, 01:55 PM
  3. Centerbox Categories module vs. default Centerbox
    By notageek in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 27 Mar 2010, 08:11 AM
  4. Expired Sale Item still showing on sale
    By mgoodwindesign in forum General Questions
    Replies: 8
    Last Post: 7 Feb 2010, 01:04 AM
  5. Sale Price / Slash regular and show sale?
    By LilleyPadGifts in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 1
    Last Post: 11 Dec 2007, 11:40 PM

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