Results 1 to 10 of 33

Hybrid View

  1. #1
    Join Date
    Jan 2012
    Posts
    89
    Plugin Contributions
    0

    Default Adding Date Available with a message to items that will be sold...

    Hi All,

    Most of our items are in stock but there are instances where we sell items on 'Pre-Order' or 'Pre-Sale' bases, right now we had our items pages modified where the Available Date is further out, the system shows 'Pre-Order' but does show In Stock when Available Date Field left blank.

    Here are the two link for our web site:

    http://www.aydincoins.com/buy-silver/silver-rounds
    http://www.aydincoins.com/buy-silver...ce-fine-silver

    if you notice it says 'Pre-Order', I would like to modify the code to add the following message in red font:

    "This item will begin shipping on (Available Date Field).
    Orders containing this item will not ship until this item is available."

    how can I show the above message on the two pages I included here but only on items that are Pre-Order.

    The message should NOT display when the Available Date Field is blank or before today's date.


    Thank you

  2. #2
    Join Date
    Feb 2010
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: Adding Date Available with a message to items that will be sold...

    You will have to post a section of code from /includes/templates/YOUR_TEMPLATE/templates/tpl_product_info_display.php

    Zen stock code does what you are asking for just worded differently.

    In the above file look for something that looks like this:

    PHP Code:
    <!--bof Product date added/available-->
    <?php
      
    if ($products_date_available date('Y-m-d H:i:s')) {
        if (
    $flag_show_product_info_date_available == 1) {
    ?>
      <p id="productDateAvailable" class="productGeneral centeredContent"><?php echo sprintf(TEXT_DATE_AVAILABLEzen_date_long($products_date_available)); ?></p>
    <?php
        
    }
      } else {
        if (
    $flag_show_product_info_date_added == 1) {
    ?>
          <p id="productDateAdded" class="productGeneral centeredContent"><?php echo sprintf(TEXT_DATE_ADDEDzen_date_long($products_date_added)); ?></p>
    <?php
        
    // $flag_show_product_info_date_added
      
    }
    ?>
    <!--eof Product date added/available -->

  3. #3
    Join Date
    Jan 2012
    Posts
    89
    Plugin Contributions
    0

    Default Re: Adding Date Available with a message to items that will be sold...

    I am sorry but I didn't get what you said but here is the file below, what's the code to add the message, thank you.



    tpl_product_info_display.php
    PHP script text
    <?php
    /**
    * Page Template
    *
    * Loaded automatically by index.php?main_page=product_info.<br />
    * Displays details of a typical product
    *
    * @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_product_info_display.php 16242 2010-05-08 16:05:40Z ajeh $
    */
    //require(DIR_WS_MODULES . '/debug_blocks/product_info_prices.php');
    ?>
    <div class="centerColumn" id="productGeneral">

    <!--bof Form start-->
    <?php echo zen_draw_form('cart_quantity', zen_href_link(zen_get_info_page($_GET['products_id']), zen_get_all_get_params(array('action')) . 'action=add_product', $request_type), 'post', 'enctype="multipart/form-data"') . "\n"; ?>
    <!--eof Form start-->

    <?php if ($messageStack->size('product_info') > 0) echo $messageStack->output('product_info'); ?>

    <!--bof Category Icon -->
    <?php if ($module_show_categories != 0) {?>
    <?php
    /**
    * display the category icons
    */
    require($template->get_template_dir('/tpl_modules_category_icon_display.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_category_icon_display.php'); ?>
    <?php } ?>
    <!--eof Category Icon -->

    <!--bof Prev/Next top position -->
    <?php if (PRODUCT_INFO_PREVIOUS_NEXT == 1 or PRODUCT_INFO_PREVIOUS_NEXT == 3) { ?>
    <?php
    /**
    * display the product previous/next helper
    */
    require($template->get_template_dir('/tpl_products_next_previous.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_products_next_previous.php'); ?>
    <?php } ?>
    <!--eof Prev/Next top position-->

    <!--bof Product Name-->
    <h1 id="productName" class="productGeneral"><?php echo $products_name; ?></h1>
    <!--eof Product Name-->


    <div id="product-left">
    <center>
    <!--bof Main Product Image -->
    <?php
    if (zen_not_null($products_image)) {
    ?>
    <?php
    /**
    * display the main product image
    */
    require($template->get_template_dir('/tpl_modules_main_product_image.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_main_product_image.php'); ?>
    <?php
    }
    ?>
    <!--eof Main Product Image-->

    <br class="clearBoth" />
    </center>

    <!--bof Additional Product Images -->
    <?php
    /**
    * display the products additional images
    */
    require($template->get_template_dir('/tpl_modules_additional_images.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_additional_images.php'); ?>
    <!--eof Additional Product Images -->


    </div>


    <div id="product-right">
    <!--bof Reviews button and count-->
    <?php
    if ($flag_show_product_info_reviews == 1) {
    // if more than 0 reviews, then show reviews button; otherwise, show the "write review" button
    if ($reviews->fields['count'] > 0 ) { ?>

    <div id="productReviewLink" class="buttonRow back"><?php echo '<a href="' . zen_href_link(FILENAME_PRODUCT_REVIEWS, zen_get_all_get_params()) . '">Read the Reviews</a>'; ?></div>

    <?php

    echo '<div class="reviewCount"><span class="reviews-text">';
    if ($flag_show_product_info_reviews_count == 1) {
    echo TEXT_CURRENT_REVIEWS . ' <strong>' . $reviews->fields['count'] . '</strong></span>';



    $stars_image_suffix = str_replace('.', '_', zen_round($reviews_average_rating->fields['average_rating'] * 2, 0) / 2); // for stars_0_5.gif, stars_1.gif, stars_1_5.gif etc.

    $average_rating = zen_round($reviews_average_rating->fields['average_rating'], 2);
    echo TEXT_CURRENT_REVIEWS_RATING . '' . zen_image(DIR_WS_TEMPLATE_IMAGES . 'stars_' . $stars_image_suffix . '.gif', sprintf(BOX_REVIEWS_TEXT_OF_5_STARS, $average_rating));

    } else {
    echo '';
    }
    echo '</div>';
    ?>
    <?php } else { ?>
    <br class="clearBoth" />
    <div id="productReviewLink1" class="buttonRow back"><?php echo '<a href="' . zen_href_link(FILENAME_PRODUCT_REVIEWS, zen_get_all_get_params()) . '">Write a Review for this Product</a>'; ?></div>
    <br class="clearBoth" />
    <?php
    }
    }
    ?>
    <!--eof Reviews button and count -->



    <!--bof Product details list -->

    <?php if ( (($flag_show_product_info_model == 1 and $products_model != '') or ($flag_show_product_info_weight == 1 and $products_weight !=0) or ($flag_show_product_info_quantity == 1) or ($flag_show_product_info_manufacturer == 1 and !empty($manufacturers_name))) ) { ?>
    <div id="productDetailsList">
    <?php echo (($flag_show_product_info_model == 1 and $products_model !='') ? '' . TEXT_PRODUCT_MODEL . $products_model . '' : '') . "\n"; ?>
    <?php echo (($flag_show_product_info_weight == 1 and $products_weight !=0) ? '>' . TEXT_PRODUCT_WEIGHT . $products_weight . TEXT_PRODUCT_WEIGHT_UNIT . '' : '') . "\n"; ?>


    <?php
    if ($products_date_available > date('Y-m-d H:i:s')) {
    echo (($flag_show_product_info_quantity == 1) ? 'Pre-Order' : '') . "\n";
    }else{
    echo (($flag_show_product_info_quantity == 1) ? '' . ($products_quantity > 0 ? TEXT_PRODUCT_IN_STOCK : TEXT_PRODUCT_NOT_IN_STOCK) . '' : '') . "\n";
    }
    ?>

    <!--<?php echo (($flag_show_product_info_quantity == 1) ? '' . ($products_quantity > 0 ? TEXT_PRODUCT_IN_STOCK : TEXT_PRODUCT_NOT_IN_STOCK) . '' : '') . "\n"; ?>-->




    <?php echo (($flag_show_product_info_manufacturer == 1 and !empty($manufacturers_name)) ? '' . TEXT_PRODUCT_MANUFACTURER . $manufacturers_name . '' : '') . "\n"; ?>

    </div>
    <br class="clearBoth" />
    <?php
    }
    ?>
    <!--eof Product details list -->

    <br class="clearBoth" />

    <div id="back-instock">
    <?php
    // BEGIN CEON BACK IN STOCK NOTIFICATIONS 1 of 2
    if (!is_null($product_back_in_stock_notification_form_link)) {
    echo '<p>' . $product_back_in_stock_notification_form_link . '</p>';
    }
    // END CEON BACK IN STOCK NOTIFICATIONS 1 of 2
    ?>
    </div>
    <br class="clearBoth" />

    <!--bof Product Price block -->
    <h2 id="productPrices" class="productGeneral">
    <?php
    // base price
    if ($show_onetime_charges_description == 'true') {
    $one_time = '<span >' . TEXT_ONETIME_CHARGE_SYMBOL . TEXT_ONETIME_CHARGE_DESCRIPTION . '</span><br />';
    } else {
    $one_time = '';
    }
    echo $one_time . ((zen_has_product_attributes_values((int)$_GET['products_id']) and $flag_show_product_info_starting_at == 1) ? TEXT_BASE_PRICE : '') . zen_get_products_display_price((int)$_GET['products_id']);
    ?></h2>
    <!--eof Product Price block -->


    <!--bof Product Price block -->
    <h2 id="productPrices" class="productGeneral">
    <?php
    // base price
    //if ($show_onetime_charges_description == 'true') {
    //$one_time = '<span >' . TEXT_ONETIME_CHARGE_SYMBOL . TEXT_ONETIME_CHARGE_DESCRIPTION . '</span><br />';
    //} else {
    //$one_time = '';
    //}
    //$cheapest = zen_get_products_discount_price_qty((int)$_GET['products_id'],20000);
    //$cheapest = '$' . number_format($cheapest, 2);
    //$price = zen_get_products_actual_price((int)$_GET['products_id']);
    //$price = '$' . number_format($price, 2);

    if ( $cheapest != $price && ( !stristr($price,"productSpecialPrice") ) && ( !stristr($price,"call_for_prices") ) ) {
    echo 'Volume Pricing from: ' . $cheapest . '';
    }
    else {
    echo $price;
    }

    ?></h2>
    <!--eof Product Price block -->

    <!--bof Product Reward Points block -->
    <h2 id="productRewardPoints" class="productRewardPoints">
    <?php
    /**
    * display the product reward points
    */
    include($template->get_template_dir('/tpl_product_reward_points.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_product_reward_points.php');
    ?>
    </h2>
    <!--eof Product Reward Points block -->



    <center>
    <!--bof Quantity Discounts table -->
    <?php
    if ($products_discount_type != 0) { ?>
    <?php
    /**
    * display the products quantity discount
    */
    require($template->get_template_dir('/tpl_modules_products_quantity_discounts.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_products_quantity_discounts.php'); ?>
    <?php
    }
    ?>
    <!--eof Quantity Discounts table -->
    </center>

    <!--bof Attributes Module -->
    <?php
    if ($pr_attr->fields['total'] > 0) {
    ?>
    <?php
    /**
    * display the product atributes
    */
    require($template->get_template_dir('/tpl_modules_attributes.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_attributes.php'); ?>
    <?php
    }
    ?>
    <!--eof Attributes Module -->



    <!--bof free ship icon -->
    <?php if(zen_get_product_is_always_free_shipping($products_id_current) && $flag_show_product_info_free_shipping) { ?>
    <div id="freeShippingIcon"><?php echo TEXT_PRODUCT_FREE_SHIPPING_ICON; ?></div>
    <?php } ?>
    <!--eof free ship icon -->

    <br class="clearBoth" />

    <!--bof Add to Cart Box -->
    <?php
    if (CUSTOMERS_APPROVAL == 3 and TEXT_LOGIN_FOR_PRICE_BUTTON_REPLACE_SHOWROOM == '') {
    // do nothing
    } else {
    ?>
    <?php
    $display_qty = (($flag_show_product_info_in_cart_qty == 1 and $_SESSION['cart']->in_cart($_GET['products_id'])) ? '<p>' . PRODUCTS_ORDER_QTY_TEXT_IN_CART . $_SESSION['cart']->get_quantity($_GET['products_id']) . '</p>' : '');
    if ($products_qty_box_status == 0 or $products_quantity_order_max== 1) {
    // hide the quantity box and default to 1
    $the_button = '<input type="hidden" name="cart_quantity" value="1" />' . zen_draw_hidden_field('products_id', (int)$_GET['products_id']) . zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT);
    } else {
    // show the quantity box
    $the_button = PRODUCTS_ORDER_QTY_TEXT . '<input type="text" name="cart_quantity" value="' . (zen_get_buy_now_qty($_GET['products_id'])) . '" maxlength="6" size="4" /><br />' . zen_get_products_quantity_min_units_display((int)$_GET['products_id']) . '<br />' . zen_draw_hidden_field('products_id', (int)$_GET['products_id']) . zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT);
    }
    $display_button = zen_get_buy_now_button($_GET['products_id'], $the_button);
    ?>
    <?php if ($display_qty != '' or $display_button != '') { ?>
    <div id="cartAdd">
    <?php
    echo $display_qty;
    echo $display_button;
    ?>
    </div>
    <?php } // display qty and button ?>
    <?php } // CUSTOMERS_APPROVAL == 3 ?>
    <!--eof Add to Cart Box-->

    <br class="clearBoth" />

    <!--bof Ask a Question -->
    <div id="productQuestions" class="biggerText">

    <b><?php echo '<a href="' . zen_href_link(FILENAME_ASK_A_QUESTION, 'products_id=' . $_GET['products_id']) . '"><img src="includes/templates/ayd/images/ask-question.png" /></a>'; ?></b>
    </div>
    <!--eof Ask a Question-->



    </div>

    <br class="clearBoth" />



    <!--bof Product date added/available-->
    <?php
    if ($products_date_available > date('Y-m-d H:i:s')) {
    if ($flag_show_product_info_date_available == 1) {
    ?>
    <p id="productDateAvailable" class="productGeneral centeredContent"><?php echo sprintf(TEXT_DATE_AVAILABLE, zen_date_long($products_date_available)); ?></p>
    <?php
    }
    } else {
    if ($flag_show_product_info_date_added == 1) {
    ?>
    <p id="productDateAdded" class="productGeneral centeredContent"><?php echo sprintf(TEXT_DATE_ADDED, zen_date_long($products_date_added)); ?></p>
    <?php
    } // $flag_show_product_info_date_added
    }
    ?>
    <!--eof Product date added/available -->


    <?php
    if ($products_date_available > date('Y-m-d H:i:s')) {
    echo (($flag_show_product_info_quantity == 1) ? '<img src="includes/templates/ayd/images/pre-order.jpg" class="pre-order-image" />' : '') . "\n";
    }
    ?>





    <br class="clearBoth" />

    <!--bof Product description -->
    <?php if ($products_description != '') { ?>
    <div id="productDescription" class="productGeneral biggerText"><?php echo stripslashes($products_description); ?></div>
    <?php } ?>
    <!--eof Product description -->

    <!-- AddThis Button BEGIN -->
    <div class="addthis_toolbox addthis_default_style">
    <a class="addthis_button_facebook_like" fb:like:layout="button_count"></a>
    <a class="addthis_button_tweet"></a>
    <a class="addthis_counter addthis_pill_style"></a>
    </div>
    <script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#username=xa-4cd1ec2b08cdcb12"></script>
    <!-- AddThis Button END -->


    <br class="clearBoth" />



    <!--bof Prev/Next bottom position -->
    <?php if (PRODUCT_INFO_PREVIOUS_NEXT == 2 or PRODUCT_INFO_PREVIOUS_NEXT == 3) { ?>
    <?php
    /**
    * display the product previous/next helper
    */
    require($template->get_template_dir('/tpl_products_next_previous.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_products_next_previous.php'); ?>
    <?php } ?>
    <!--eof Prev/Next bottom position -->





    <!--bof Product date added/available-->
    <?php
    if ($products_date_available > date('Y-m-d H:i:s')) {
    if ($flag_show_product_info_date_available == 1) {
    ?>
    <p id="productDateAvailable" class="productGeneral centeredContent"><?php echo sprintf(TEXT_DATE_AVAILABLE, zen_date_long($products_date_available)); ?></p>
    <?php
    }
    } else {
    if ($flag_show_product_info_date_added == 1) {
    ?>
    <p id="productDateAdded" class="productGeneral centeredContent"><?php echo sprintf(TEXT_DATE_ADDED, zen_date_long($products_date_added)); ?></p>
    <?php
    } // $flag_show_product_info_date_added
    }
    ?>
    <!--eof Product date added/available -->

    <!--bof Product URL -->
    <?php
    if (zen_not_null($products_url)) {
    if ($flag_show_product_info_url == 1) {
    ?>
    <p id="productInfoLink" class="productGeneral centeredContent"><?php echo sprintf(TEXT_MORE_INFORMATION, zen_href_link(FILENAME_REDIRECT, 'action=url&goto=' . urlencode($products_url), 'NONSSL', true, false)); ?></p>
    <?php
    } // $flag_show_product_info_url
    }
    ?>
    <!--eof Product URL -->

    <!--bof Cross Sell -->
    <!--bof also purchased products module-->
    <?php require($template->get_template_dir('tpl_modules_also_purchased_products.php', DIR_WS_TEMPLATE, $current_page_base,'templates'). '/' . 'tpl_modules_also_purchased_products.php');?>
    <!--eof also purchased products module-->
    <!--eof Cross Sell -->

    <?php
    require($template->get_template_dir('tpl_modules_xsell_products.php', DIR_WS_TEMPLATE, $current_page_base,'templates'). '/' . 'tpl_modules_xsell_products.php');
    ?>

    <!--bof Form close-->
    </form>
    <!--bof Form close-->
    <?php // BEGIN CEON BACK IN STOCK NOTIFICATIONS 2 of 2
    if (isset($back_in_stock_notification_build_form) && $back_in_stock_notification_build_form) {
    // Build the notification request form

    /**
    * Load the template class
    */
    require_once(DIR_FS_CATALOG . DIR_WS_CLASSES . 'class.CeonXHTMLHiTemplate.php');

    // Load in and extract the template parts for Back In Stock Notification functionality
    $bisn_template_filename = $template->get_template_dir('inc.html.back_in_stock_notifications.html',
    DIR_WS_TEMPLATE, $current_page_base, 'templates') . '/' .
    'inc.html.back_in_stock_notifications.html';

    $bisn_template = new CeonXHTMLHiTemplate($bisn_template_filename);

    $bisn_template_parts = $bisn_template->extractTemplateParts();

    $back_in_stock_notification_form = new CeonXHTMLHiTemplate;

    // Load in the source for the form
    $back_in_stock_notification_form->setXHTMLSource(
    $bisn_template_parts['PRODUCT_INFO_BACK_IN_STOCK_NOTIFICATION_FORM']);

    // Add the form action, titles, labels and button
    $form_start_tag = zen_draw_form('back_in_stock_notification',
    zen_href_link(FILENAME_BACK_IN_STOCK_NOTIFICATION_SUBSCRIBE, zen_get_all_get_params(),
    $request_type), 'POST');

    $back_in_stock_notification_form->setVariable('back_in_stock_notification_form_start_tag',
    $form_start_tag);

    $product_back_in_stock_notification_form_title = BACK_IN_STOCK_NOTIFICATION_TEXT_FORM_TITLE;

    $back_in_stock_notification_form->setVariable('title',
    $product_back_in_stock_notification_form_title);

    $name_label = BACK_IN_STOCK_NOTIFICATION_TEXT_FORM_ENTRY_NAME;
    $email_label = BACK_IN_STOCK_NOTIFICATION_TEXT_FORM_ENTRY_EMAIL;
    $email_confirmation_label = BACK_IN_STOCK_NOTIFICATION_TEXT_FORM_ENTRY_CONFIRM_EMAIL;

    $back_in_stock_notification_form->setVariable('name_label', $name_label);
    $back_in_stock_notification_form->setVariable('email_label', $email_label);
    $back_in_stock_notification_form->setVariable('email_confirmation_label',
    $email_confirmation_label);

    $submit_button = zen_image_submit(BUTTON_IMAGE_NOTIFY_ME, BUTTON_NOTIFY_ME_ALT,
    'class="notify-me" name="notify_me"');
    $back_in_stock_notification_form->setVariable('submit_button', $submit_button);

    // Add in the introductory text
    $intro_text = sprintf(BACK_IN_STOCK_NOTIFICATION_TEXT_FORM_INTRO,
    htmlentities($products_name, ENT_COMPAT, CHARSET));
    $notice_text = BACK_IN_STOCK_NOTIFICATION_TEXT_FORM_NOTICE;

    $back_in_stock_notification_form->setVariable('intro', $intro_text);
    $back_in_stock_notification_form->setVariable('notice', $notice_text);

    // Add the customer's details to the form (empty unless logged in)
    $back_in_stock_notification_form->setVariable('name',
    $back_in_stock_notification_form_customer_name);
    $back_in_stock_notification_form->setVariable('email',
    $back_in_stock_notification_form_customer_email);
    $back_in_stock_notification_form->setVariable('cofnospam',
    $back_in_stock_notification_form_customer_email_confirmation);

    print $back_in_stock_notification_form->getXHTMLSource();
    }
    // END CEON BACK IN STOCK NOTIFICATIONS 2 of 2 ?>


    </div>

    Quote Originally Posted by rbarbour View Post
    You will have to post a section of code from /includes/templates/YOUR_TEMPLATE/templates/tpl_product_info_display.php

    Zen stock code does what you are asking for just worded differently.

    In the above file look for something that looks like this:

    PHP Code:
    <!--bof Product date added/available-->
    <?php
      
    if ($products_date_available date('Y-m-d H:i:s')) {
        if (
    $flag_show_product_info_date_available == 1) {
    ?>
      <p id="productDateAvailable" class="productGeneral centeredContent"><?php echo sprintf(TEXT_DATE_AVAILABLEzen_date_long($products_date_available)); ?></p>
    <?php
        
    }
      } else {
        if (
    $flag_show_product_info_date_added == 1) {
    ?>
          <p id="productDateAdded" class="productGeneral centeredContent"><?php echo sprintf(TEXT_DATE_ADDEDzen_date_long($products_date_added)); ?></p>
    <?php
        
    // $flag_show_product_info_date_added
      
    }
    ?>
    <!--eof Product date added/available -->

  4. #4
    Join Date
    Feb 2010
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: Adding Date Available with a message to items that will be sold...

    find:
    PHP Code:
    <?php
    if ($products_date_available date('Y-m-d H:i:s')) {
      echo ((
    $flag_show_product_info_quantity == 1) ? 'Pre-Order'  '') . "\n"
     }else{
     echo ((
    $flag_show_product_info_quantity == 1) ? ''  .  ($products_quantity TEXT_PRODUCT_IN_STOCK :  TEXT_PRODUCT_NOT_IN_STOCK) . '' '') . "\n";
    }
    ?>
    change to:
    PHP Code:
    <?php
    if ($products_date_available date('Y-m-d H:i:s')) {
    echo ((
    $flag_show_product_info_quantity == 1) ? TEXT_PRE_ORDER_BOF zen_date_long($products_date_available) . TEXT_PRE_ORDER_EOF '<br/>Pre-Order' '') . "\n";
    }else{
    echo ((
    $flag_show_product_info_quantity == 1) ? '' . ($products_quantity TEXT_PRODUCT_IN_STOCK TEXT_PRODUCT_NOT_IN_STOCK) . '' '') . "\n";
    }
    ?>
    create a file called: product_info_extras.php in /includes/languages/english/extra_definitions/YOUR_TEMPLATE_NAME

    add the following code to product_info_extras.php
    PHP Code:
    <?php
    /**
     *
     * @copyright Copyright 2013 rbarbour - ZCadditions
     * @license http://www.gnu.org/licenses/ GNU Public License V3.0
     * /includes/languages/english/extra_definitions/YOUR_TEMPLATE_NAME/product_info_extras.php
     */
     
    define('TEXT_PRE_ORDER_BOF','<font color="red">This item will begin shipping on (');
    define('TEXT_PRE_ORDER_EOF','). Orders containing this item will not ship until this item is available.</font>');

    ?>
    That's it

  5. #5
    Join Date
    Jan 2012
    Posts
    89
    Plugin Contributions
    0

    Default Re: Adding Date Available with a message to items that will be sold...

    I really appreciate your help, it worked perfectly but how can I show the same message on this page also:

    http://www.aydincoins.com/buy-silver/silver-rounds

  6. #6
    Join Date
    Feb 2010
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: Adding Date Available with a message to items that will be sold...

    The code for that page is in /includes/modules/YOUR_TEMPLATE_NAME/product_listing.php

    This code will differ from the previous.

 

 

Similar Threads

  1. v139h Adding Date Available to Product Listing
    By daniroe in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 28 Jul 2022, 06:37 PM
  2. v151 How To Track Items Sold Each Month That Were The Result Of A Referral
    By AZStolman in forum Templates, Stylesheets, Page Layout
    Replies: 14
    Last Post: 24 Jan 2015, 02:24 AM
  3. v139h Question about Products Date Available vs Sold Out
    By I wish I could in forum Installing on a Linux/Unix Server
    Replies: 0
    Last Post: 9 Aug 2012, 05:27 AM
  4. Adding Date Available to Product Listing page
    By safarce in forum General Questions
    Replies: 0
    Last Post: 14 Jun 2011, 07:04 PM
  5. Date items become available for purchase?
    By yarnyn in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 12 Aug 2008, 10:59 PM

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