Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2006
    Location
    Montreal, Canada
    Posts
    2,279
    Plugin Contributions
    0

    Default need a modification to special page. adding additional div

    Hello.
    I need to add additional div to special page.

    currently stock zencart special page contains
    <div class ="specialsListBoxContents "> </div>

    i need to add second div wrapped by original div like

    <div class="specialsListBoxContents ">
    <div class="seconddiv>
    </div>
    </div>

    file needed to be modified is in includes / modules/ pages/ specials/ main_template_var.php
    however , the code there is a bit complex for me to modify . any help would be appreciated
    thanks.

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

    Default Re: need a modification to special page. adding additional div

    In this line
    PHP Code:
          $list_box_contents[$row][$col] = array('params' => 'class="specialsListBoxContents"' ' ' 'style="width:' $col_width '%;"',
                                                 
    'text' => '<a href="' zen_href_link(zen_get_info_page($specials->fields['products_id']), 'cPath=' zen_get_generated_category_path_rev($specials->fields['master_categories_id']) . '&products_id=' $specials->fields['products_id']) . '">' . (($specials->fields['products_image'] == '' and PRODUCTS_IMAGE_NO_IMAGE_STATUS == 0) ? '' zen_image(DIR_WS_IMAGES $specials->fields['products_image'], $specials->fields['products_name'], SMALL_IMAGE_WIDTHSMALL_IMAGE_HEIGHT) . '</a>') . '<br /><a href="' zen_href_link(zen_get_info_page($specials->fields['products_id']), 'cPath=' zen_get_generated_category_path_rev($specials->fields['master_categories_id']) . '&products_id=' $specials->fields['products_id']) . '">' $specials->fields['products_name'] . '</a><br />' $products_price); 
    add your new wrapper div markup before and after the 'text' => content
    PHP Code:
                'text' => '<a href="' zen_href_link(...      ... '</a><br />' $products_price); 
    like this:
    PHP Code:
                'text' => '<div class="seconddiv><a href="' zen_href_link(...      ... '</a><br />' $products_price) . '</div>'

  3. #3
    Join Date
    Jul 2006
    Location
    Montreal, Canada
    Posts
    2,279
    Plugin Contributions
    0

    Default Re: need a modification to special page. adding additional div

    Thank you .
    That did the job .

 

 

Similar Threads

  1. v150 Adding a <div> to a single category page
    By Terrill_Taylor in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 20 Aug 2013, 09:42 AM
  2. Need help adding new, special, and featured products to Home page on Custom Template
    By HipChickDesigns in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 23 Feb 2011, 08:21 PM
  3. Adding extra Div on Categories page
    By lightup in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 27 Nov 2010, 07:01 PM
  4. Need Help Adding Special
    By braggweb in forum Setting Up Specials and SaleMaker
    Replies: 3
    Last Post: 1 Jun 2009, 09:37 PM
  5. Need help adding additional hidden fields to products
    By Zeroca in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 14 Jan 2008, 03:55 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