Results 1 to 3 of 3

Shop by price infobox problem please help~

This is a discussion on Shop by price infobox problem please help~ within the osCMax v2 Features Discussion forums, part of the osCmax v2.0 Forums category; hi .. i wanted to install this contribution in to oscmax by i'm poor in php... so need some1 to ...

      
  1. #1
    New Member
    Join Date
    Sep 2006
    Posts
    29
    Rep Power
    0


    Default Shop by price infobox problem please help~

    hi .. i wanted to install this contribution in to oscmax by i'm poor in php... so need some1 to help me to convert to code to match oscmax version..
    http://www.oscommerce.com/community/...,shop+by+price


    thank you

  2. #2
    New Member
    Join Date
    Sep 2006
    Posts
    29
    Rep Power
    0


    Default

    allright here is the code for the infobox can any1 help me convert it to matcg infobox admin?
    Code:
    <?php
    /*
      $Id: shop_by_price.php,v 2.4 2006/10/24 $
      
      Contribution by Meltus  http://www.highbarn-consulting.com
      Adapted for OsCommerce MS2 by Sylvio Ruiz suporte@leilodata.com
      Modified by Hugues Deriau on 09/23/2006 - display the price ranges in the selected currency
      Modified by Glassraven for dropdown list 24/10/2006 www.glassraven.com
      
      osCommerce, Open Source E-Commerce Solutions
      http://www.oscommerce.com
    
      Copyright (c) 2003 osCommerce
    
      Released under the GNU General Public License
    */
    ?>
    <!-- shop by price //-->
    <tr>
      <td>
    <?php
    require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_SHOP_BY_PRICE);
    
    // use dropdown list - comment out if using list format
    $shop_price_type = 'dropdown'; 
    
    // $info_box_contents = array();
    // $info_box_contents[] = array('text' => BOX_HEADING_SHOP_BY_PRICE);
    // new infoBoxHeading($info_box_contents, false, false);
    
    $info_box_contents = array();
    	
    if ($shop_price_type == 'dropdown') {
    	$price_range_list = '';
    	$price_range_list[] = array('id' => '0', 'text' => BOX_HEADING_SHOP_BY_PRICE );
    	
    	for ($range=0; $range<sizeof($price_ranges); $range++) {
    		$price_range_list[] = array('id' => $range, 'text' => $price_ranges[$range] );
    	}
    
    	$info_box_contents[] = array('form' => '<form name="shop_price" action="' . tep_href_link(FILENAME_SHOP_BY_PRICE) . '" method="get">' . tep_hide_session_id(),
    								 'align' => 'left',
    								 'text'  => tep_draw_pull_down_menu('range', $price_range_list, $range, 'onchange="this.form.submit();"  size="' . 1 . '" style="width: 100%"') . tep_hide_session_id());
    
    } else {
    	for ($range=0; $range<sizeof($price_ranges); $range++) {
    		$info_box_contents[] = array('align' => 'left',
    									 'text'  => '<a href="' . tep_href_link(FILENAME_SHOP_BY_PRICE, 'range=' . $range , 'NONSSL') . '">' . $price_ranges[$range] . '</a><br>');
    	}				
    }
    
    
     		new infoBox($info_box_contents);
      
    ?>
    	</td>
    </tr>
    <!-- shop_by_price //-->

  3. #3
    New Member
    Join Date
    Sep 2006
    Posts
    29
    Rep Power
    0


    Default

    i read from wiki already but still doesn't know how to convert .. :S

Similar Threads

  1. Infobox problem
    By jikey in forum osCmax v2 Customization/Mods
    Replies: 2
    Last Post: 11-14-2006, 06:37 PM
  2. infobox problem
    By bersh31 in forum osCmax v2 Customization/Mods
    Replies: 4
    Last Post: 10-12-2006, 11:45 PM
  3. Shop by Price
    By pefc2525 in forum osCMax v2 Features Discussion
    Replies: 2
    Last Post: 02-13-2006, 09:45 PM
  4. Problem installing infobox admin v2_23
    By sunspeks in forum osCMax v2 Features Discussion
    Replies: 0
    Last Post: 07-27-2005, 08:04 AM
  5. Shop By Price for BTS 1.5?
    By prosam in forum osCmax v1.7 Discussion
    Replies: 1
    Last Post: 04-27-2005, 08:48 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
  •