osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

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 ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Features Discussion

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 11-23-2006, 07:28 PM
New Member
 
Join Date: Sep 2006
Posts: 29
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
jikey
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 11-24-2006, 03:32 PM
New Member
 
Join Date: Sep 2006
Posts: 29
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
jikey
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 //-->
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 11-26-2006, 01:14 AM
New Member
 
Join Date: Sep 2006
Posts: 29
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
jikey
Default

i read from wiki already but still doesn't know how to convert .. :S
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Infobox problem jikey osCMax v2 Customization/Mods 2 11-14-2006 05:37 PM
infobox problem bersh31 osCMax v2 Customization/Mods 4 10-12-2006 10:45 PM
Shop by Price pefc2525 osCMax v2 Features Discussion 2 02-13-2006 08:45 PM
Problem installing infobox admin v2_23 sunspeks osCMax v2 Features Discussion 0 07-27-2005 07:04 AM
Shop By Price for BTS 1.5? prosam osCMax v1.7 Discussion 1 04-27-2005 07:48 AM


All times are GMT -8. The time now is 08:22 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax