Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2010
    Posts
    319
    Plugin Contributions
    0

    Default Adding a new Product Type Info Page Layout options :: Product - General

    Hi,
    i want a despatch time to show in product lay out but would like to be able to switch it on and off, heres what ive done but it isnt working

    in database i entered

    INSERT INTO `product_type_layout` (`configuration_id`, `configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `product_type_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES ('','Show Despatch Time','SHOW_PRODUCT_INFO_DESPATCH','0','Display Despatch Time on Product Info 0= off 1= on',1,'','2010-04-26 17:33:15','2010-04-22 20:59:42',NULL,'zen_cfg_select_drop_down(array(array(\'id\'=>\'1\', \'text\'=>\'True\'), array(\'id\'=>\'0\', \'text\'=>\'False\')), ');

    then in

    /httpdocs/includes/templates/lite_red/templates/tpl_product_info_display.php

    <?php echo (($flag_show_product_info_despatch == 1) ? '<li><span class="product-info-label">'. 'Despatch Time' . '</span>' . ' : 1 - 3 Working Days' . '</li>' : '') . "\n"; ?>

    i can see the switch in admin but switching it on or off doesnt make a difference

    i can get my message to show using the quantity switch but would prefer to do it with seperate on off

    hope this makes sense
    thanks
    bryan

  2. #2
    Join Date
    Feb 2009
    Posts
    186
    Plugin Contributions
    1

    Default Re: Adding a new Product Type Info Page Layout options :: Product - General

    try this:

    Code:
    <?php
      if (SHOW_PRODUCT_INFO_DESPATCH == 'true') {
    ?>
    <li><span class="product-info-label">Despatch Time</span>: 1 - 3 Working Days</li>
    <?php
      }
    ?>

 

 

Similar Threads

  1. How would I change Product URL in Product Type Info Page to a different name
    By wtashby in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 21 Nov 2008, 11:11 PM
  2. Creating a new General Product Type
    By timps in forum Setting Up Categories, Products, Attributes
    Replies: 10
    Last Post: 1 Oct 2007, 03:11 AM
  3. Adding to general product type
    By ParadoX in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 7 Sep 2007, 10:43 PM
  4. Product Type Info Page Layout Options Not Working in Custom Template
    By johnd in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 5 Aug 2007, 04:09 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