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
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 ...
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
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 //-->
i read from wiki already but still doesn't know how to convert .. :S
Bookmarks