Jump to content
glassraven

Search by Price Infobox

Recommended Posts

I think I have installed it.

 

But I have some issues.

 

The box is messed up. and when I click on any price range, the resulting page is out of borders ( page messes up).

 

Please have a look at my store.

 

http://www.imgup.ws/dukan

 

Thank you in advance.

 

PS: I installed the fixes along with the full package.

 

 

catalog/includes/languages/english.php

 

<?php
/*
 $Id: english.php,v 1.114 2003/07/09 18:13:39 dgw_ Exp $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/

// look in your $PATH_LOCALE/locale directory for available locales
// or type locale -a on the server.
// Examples:
// on RedHat try 'en_US'
// on FreeBSD try 'en_US.ISO_8859-1'
// on Windows try 'en', or 'English'
@setlocale(LC_TIME, 'en_US.ISO_8859-1');

define('DATE_FORMAT_SHORT', '%m/%d/%Y');  // this is used for strftime()
define('DATE_FORMAT_LONG', '%A %d %B, %Y'); // this is used for strftime()
define('DATE_FORMAT', 'm/d/Y'); // this is used for date()
define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S');

////
// Return date in raw format
// $date should be in format mm/dd/yyyy
// raw date is in format YYYYMMDD, or DDMMYYYY
function tep_date_raw($date, $reverse = false) {
 if ($reverse) {
return substr($date, 3, 2) . substr($date, 0, 2) . substr($date, 6, 4);
 } else {
return substr($date, 6, 4) . substr($date, 0, 2) . substr($date, 3, 2);
 }
}

// if USE_DEFAULT_LANGUAGE_CURRENCY is true, use the following currency, instead of the applications default currency (used when changing 

language)
define('LANGUAGE_CURRENCY', 'USD');

// Global entries for the <html> tag
define('HTML_PARAMS','dir="LTR" lang="en"');

// charset for web pages and emails
define('CHARSET', 'iso-8859-1');

// page title
define('TITLE', STORE_NAME);
// SHOP BY PRICE CONTRIB
// shop by price box text in includes/boxes/shop_by_price.php
define('BOX_HEADING_SHOP_BY_PRICE', 'Shop By Price');
// header text in includes/header.php
define('HEADER_TITLE_CREATE_ACCOUNT', 'Create an Account');
define('HEADER_TITLE_MY_ACCOUNT', 'My Account');
define('HEADER_TITLE_CART_CONTENTS', 'Cart Contents');
define('HEADER_TITLE_CHECKOUT', 'Checkout');
define('HEADER_TITLE_TOP', 'Top');
define('HEADER_TITLE_CATALOG', 'Catalog');
define('HEADER_TITLE_LOGOFF', 'Log Off');
define('HEADER_TITLE_LOGIN', 'Log In');

// footer text in includes/footer.php
define('FOOTER_TEXT_REQUESTS_SINCE', 'requests since');

// text for gender
define('MALE', 'Male');
define('FEMALE', 'Female');
define('MALE_ADDRESS', 'Mr.');
define('FEMALE_ADDRESS', 'Ms.');

// text for date of birth example
define('DOB_FORMAT_STRING', 'mm/dd/yyyy');

// categories box text in includes/boxes/categories.php
define('BOX_HEADING_CATEGORIES', 'Categories');

// manufacturers box text in includes/boxes/manufacturers.php
define('BOX_HEADING_MANUFACTURERS', 'Manufacturers');

// whats_new box text in includes/boxes/whats_new.php
define('BOX_HEADING_WHATS_NEW', 'What\'s New?');

// quick_find box text in includes/boxes/quick_find.php
define('BOX_HEADING_SEARCH', 'Quick Find');
define('BOX_SEARCH_TEXT', 'Use keywords to find the product you are looking for.');
define('BOX_SEARCH_ADVANCED_SEARCH', 'Advanced Search');

// specials box text in includes/boxes/specials.php
define('BOX_HEADING_SPECIALS', 'Specials');

// reviews box text in includes/boxes/reviews.php
define('BOX_HEADING_REVIEWS', 'Reviews');
define('BOX_REVIEWS_WRITE_REVIEW', 'Write a review on this product!');
define('BOX_REVIEWS_NO_REVIEWS', 'There are currently no product reviews');
define('BOX_REVIEWS_TEXT_OF_5_STARS', '%s of 5 Stars!');

// shopping_cart box text in includes/boxes/shopping_cart.php
define('BOX_HEADING_SHOPPING_CART', 'Shopping Cart');
define('BOX_SHOPPING_CART_EMPTY', '0 items');

// order_history box text in includes/boxes/order_history.php
define('BOX_HEADING_CUSTOMER_ORDERS', 'Order History');

// best_sellers box text in includes/boxes/best_sellers.php
define('BOX_HEADING_BESTSELLERS', 'Bestsellers');
define('BOX_HEADING_BESTSELLERS_IN', 'Bestsellers in<br>  ');

// notifications box text in includes/boxes/products_notifications.php
define('BOX_HEADING_NOTIFICATIONS', 'Notifications');
define('BOX_NOTIFICATIONS_NOTIFY', 'Notify me of updates to <b>%s</b>');
define('BOX_NOTIFICATIONS_NOTIFY_REMOVE', 'Do not notify me of updates to <b>%s</b>');

// manufacturer box text
define('BOX_HEADING_MANUFACTURER_INFO', 'Manufacturer Info');
define('BOX_MANUFACTURER_INFO_HOMEPAGE', '%s Homepage');
define('BOX_MANUFACTURER_INFO_OTHER_PRODUCTS', 'Other products');

// languages box text in includes/boxes/languages.php
define('BOX_HEADING_LANGUAGES', 'Languages');

// currencies box text in includes/boxes/currencies.php
define('BOX_HEADING_CURRENCIES', 'Currencies');

// information box text in includes/boxes/information.php
define('BOX_HEADING_INFORMATION', 'Information');
define('BOX_INFORMATION_PRIVACY', 'Privacy Notice');
define('BOX_INFORMATION_CONDITIONS', 'Conditions of Use');
define('BOX_INFORMATION_SHIPPING', 'Shipping & Returns');
define('BOX_HEADING_PRICE_RANGE', 'Select a Price Range');
define('BOX_INFORMATION_CONTACT', 'Contact Us');
// SHOP BY PRICE CONTRIB
// shop by price box text in includes/boxes/shop_by_price.php
define('BOX_HEADING_SHOP_BY_PRICE', 'Shop By Price');

// tell a friend box text in includes/boxes/tell_a_friend.php
define('BOX_HEADING_TELL_A_FRIEND', 'Tell A Friend');
define('BOX_TELL_A_FRIEND_TEXT', 'Tell someone you know about this product.');

// checkout procedure text
define('CHECKOUT_BAR_DELIVERY', 'Delivery Information');
define('CHECKOUT_BAR_PAYMENT', 'Payment Information');
define('CHECKOUT_BAR_CONFIRMATION', 'Confirmation');
define('CHECKOUT_BAR_FINISHED', 'Finished!');

// pull down default text
define('PULL_DOWN_DEFAULT', 'Please Select');
define('TYPE_BELOW', 'Type Below');

// javascript messages
define('JS_ERROR', 'Errors have occured during the process of your form.\n\nPlease make the following corrections:\n\n');

define('JS_REVIEW_TEXT', '* The \'Review Text\' must have at least ' . REVIEW_TEXT_MIN_LENGTH . ' characters.\n');
define('JS_REVIEW_RATING', '* You must rate the product for your review.\n');

define('JS_ERROR_NO_PAYMENT_MODULE_SELECTED', '* Please select a payment method for your order.\n');

define('JS_ERROR_SUBMITTED', 'This form has already been submitted. Please press Ok and wait for this process to be completed.');

define('ERROR_NO_PAYMENT_MODULE_SELECTED', 'Please select a payment method for your order.');

define('CATEGORY_COMPANY', 'Company Details');
define('CATEGORY_PERSONAL', 'Your Personal Details');
define('CATEGORY_ADDRESS', 'Your Address');
define('CATEGORY_CONTACT', 'Your Contact Information');
define('CATEGORY_OPTIONS', 'Options');
define('CATEGORY_PASSWORD', 'Your Password');

define('ENTRY_COMPANY', 'Company Name:');
define('ENTRY_COMPANY_ERROR', '');
define('ENTRY_COMPANY_TEXT', '');
define('ENTRY_GENDER', 'Gender:');
define('ENTRY_GENDER_ERROR', 'Please select your Gender.');
define('ENTRY_GENDER_TEXT', '*');
define('ENTRY_FIRST_NAME', 'First Name:');
define('ENTRY_FIRST_NAME_ERROR', 'Your First Name must contain a minimum of ' . ENTRY_FIRST_NAME_MIN_LENGTH . ' characters.');
define('ENTRY_FIRST_NAME_TEXT', '*');
define('ENTRY_LAST_NAME', 'Last Name:');
define('ENTRY_LAST_NAME_ERROR', 'Your Last Name must contain a minimum of ' . ENTRY_LAST_NAME_MIN_LENGTH . ' characters.');
define('ENTRY_LAST_NAME_TEXT', '*');
define('ENTRY_DATE_OF_BIRTH', 'Date of Birth:');
define('ENTRY_DATE_OF_BIRTH_ERROR', 'Your Date of Birth must be in this format: MM/DD/YYYY (eg 05/21/1970)');
define('ENTRY_DATE_OF_BIRTH_TEXT', '* (eg. 05/21/1970)');
//kgt - discount coupons
define('ENTRY_DISCOUNT_COUPON_ERROR', 'The coupon code you have entered is not valid.');
define('ENTRY_DISCOUNT_COUPON_AVAILABLE_ERROR', 'The coupon code you have entered is no longer valid.');
define('ENTRY_DISCOUNT_COUPON_USE_ERROR', 'Our records show that you have used this coupon %s time(s).  You may not use this code more 

than %s time(s).');
define('ENTRY_DISCOUNT_COUPON_MIN_PRICE_ERROR', 'The minimum order total for this coupon is %s');
define('ENTRY_DISCOUNT_COUPON_MIN_QUANTITY_ERROR', 'The minimum number of products required for this coupon is %s');
define('ENTRY_DISCOUNT_COUPON_EXCLUSION_ERROR', 'Some or all of the products in your cart are excluded.' );
define('ENTRY_DISCOUNT_COUPON', 'Coupon Code:');
define('ENTRY_DISCOUNT_COUPON_SHIPPING_CALC_ERROR', 'Your calculated shipping charges have changed.');
//end kgt - discount coupons
define('ENTRY_EMAIL_ADDRESS', 'E-Mail Address:');
define('ENTRY_EMAIL_ADDRESS_ERROR', 'Your E-Mail Address must contain a minimum of ' . ENTRY_EMAIL_ADDRESS_MIN_LENGTH . ' characters.');
define('ENTRY_EMAIL_ADDRESS_CHECK_ERROR', 'Your E-Mail Address does not appear to be valid - please make any necessary corrections.');
define('ENTRY_EMAIL_ADDRESS_ERROR_EXISTS', 'Your E-Mail Address already exists in our records - please log in with the e-mail address or 

create an account with a different address.');
define('ENTRY_EMAIL_ADDRESS_TEXT', '*');
define('ENTRY_STREET_ADDRESS', 'Street Address:');
define('ENTRY_STREET_ADDRESS_ERROR', 'Your Street Address must contain a minimum of ' . ENTRY_STREET_ADDRESS_MIN_LENGTH . ' characters.');
define('ENTRY_STREET_ADDRESS_TEXT', '*');
define('ENTRY_SUBURB', 'Suburb:');
define('ENTRY_SUBURB_ERROR', '');
define('ENTRY_SUBURB_TEXT', '');
define('ENTRY_POST_CODE', 'Post Code:');
define('ENTRY_POST_CODE_ERROR', 'Your Post Code must contain a minimum of ' . ENTRY_POSTCODE_MIN_LENGTH . ' characters.');
define('ENTRY_POST_CODE_TEXT', '*');
define('ENTRY_CITY', 'City:');
define('ENTRY_CITY_ERROR', 'Your City must contain a minimum of ' . ENTRY_CITY_MIN_LENGTH . ' characters.');
define('ENTRY_CITY_TEXT', '*');
define('ENTRY_STATE', 'State/Province:');
define('ENTRY_STATE_ERROR', 'Your State must contain a minimum of ' . ENTRY_STATE_MIN_LENGTH . ' characters.');
define('ENTRY_STATE_ERROR_SELECT', 'Please select a state from the States pull down menu.');
define('ENTRY_STATE_TEXT', '*');
define('ENTRY_COUNTRY', 'Country:');
define('ENTRY_COUNTRY_ERROR', 'You must select a country from the Countries pull down menu.');
define('ENTRY_COUNTRY_TEXT', '*');
define('ENTRY_TELEPHONE_NUMBER', 'Telephone Number:');
define('ENTRY_TELEPHONE_NUMBER_ERROR', 'Your Telephone Number must contain a minimum of ' . ENTRY_TELEPHONE_MIN_LENGTH . ' characters.');
define('ENTRY_TELEPHONE_NUMBER_TEXT', '*');
define('ENTRY_FAX_NUMBER', 'Fax Number:');
define('ENTRY_FAX_NUMBER_ERROR', '');
define('ENTRY_FAX_NUMBER_TEXT', '');
define('ENTRY_NEWSLETTER', 'Newsletter:');
define('ENTRY_NEWSLETTER_TEXT', '');
define('ENTRY_NEWSLETTER_YES', 'Subscribed');
define('ENTRY_NEWSLETTER_NO', 'Unsubscribed');
define('ENTRY_NEWSLETTER_ERROR', '');
define('ENTRY_PASSWORD', 'Password:');
define('ENTRY_PASSWORD_ERROR', 'Your Password must contain a minimum of ' . ENTRY_PASSWORD_MIN_LENGTH . ' characters.');
define('ENTRY_PASSWORD_ERROR_NOT_MATCHING', 'The Password Confirmation must match your Password.');
define('ENTRY_PASSWORD_TEXT', '*');
define('ENTRY_PASSWORD_CONFIRMATION', 'Password Confirmation:');
define('ENTRY_PASSWORD_CONFIRMATION_TEXT', '*');
define('ENTRY_PASSWORD_CURRENT', 'Current Password:');
define('ENTRY_PASSWORD_CURRENT_TEXT', '*');
define('ENTRY_PASSWORD_CURRENT_ERROR', 'Your Password must contain a minimum of ' . ENTRY_PASSWORD_MIN_LENGTH . ' characters.');
define('ENTRY_PASSWORD_NEW', 'New Password:');
define('ENTRY_PASSWORD_NEW_TEXT', '*');
define('ENTRY_PASSWORD_NEW_ERROR', 'Your new Password must contain a minimum of ' . ENTRY_PASSWORD_MIN_LENGTH . ' characters.');
define('ENTRY_PASSWORD_NEW_ERROR_NOT_MATCHING', 'The Password Confirmation must match your new Password.');
define('PASSWORD_HIDDEN', '--HIDDEN--');

define('FORM_REQUIRED_INFORMATION', '* Required information');

// constants for use in tep_prev_next_display function
define('TEXT_RESULT_PAGE', 'Result Pages:');
define('TEXT_DISPLAY_NUMBER_OF_PRODUCTS', 'Displaying <b>%d</b> to <b>%d</b> (of <b>%d</b> products)');
define('TEXT_DISPLAY_NUMBER_OF_ORDERS', 'Displaying <b>%d</b> to <b>%d</b> (of <b>%d</b> orders)');
define('TEXT_DISPLAY_NUMBER_OF_REVIEWS', 'Displaying <b>%d</b> to <b>%d</b> (of <b>%d</b> reviews)');
define('TEXT_DISPLAY_NUMBER_OF_PRODUCTS_NEW', 'Displaying <b>%d</b> to <b>%d</b> (of <b>%d</b> new products)');
define('TEXT_DISPLAY_NUMBER_OF_SPECIALS', 'Displaying <b>%d</b> to <b>%d</b> (of <b>%d</b> specials)');

define('PREVNEXT_TITLE_FIRST_PAGE', 'First Page');
define('PREVNEXT_TITLE_PREVIOUS_PAGE', 'Previous Page');
define('PREVNEXT_TITLE_NEXT_PAGE', 'Next Page');
define('PREVNEXT_TITLE_LAST_PAGE', 'Last Page');
define('PREVNEXT_TITLE_PAGE_NO', 'Page %d');
define('PREVNEXT_TITLE_PREV_SET_OF_NO_PAGE', 'Previous Set of %d Pages');
define('PREVNEXT_TITLE_NEXT_SET_OF_NO_PAGE', 'Next Set of %d Pages');
define('PREVNEXT_BUTTON_FIRST', '<<FIRST');
define('PREVNEXT_BUTTON_PREV', '[<< Prev]');
define('PREVNEXT_BUTTON_NEXT', '[Next >>]');
define('PREVNEXT_BUTTON_LAST', 'LAST>>');

define('IMAGE_BUTTON_ADD_ADDRESS', 'Add Address');
define('IMAGE_BUTTON_ADDRESS_BOOK', 'Address Book');
define('IMAGE_BUTTON_BACK', 'Back');
define('IMAGE_BUTTON_BUY_NOW', 'Buy Now');
define('IMAGE_BUTTON_CHANGE_ADDRESS', 'Change Address');
define('IMAGE_BUTTON_CHECKOUT', 'Checkout');
define('IMAGE_BUTTON_CONFIRM_ORDER', 'Confirm Order');
define('IMAGE_BUTTON_CONTINUE', 'Continue');
define('IMAGE_BUTTON_CONTINUE_SHOPPING', 'Continue Shopping');
define('IMAGE_BUTTON_DELETE', 'Delete');
define('IMAGE_BUTTON_EDIT_ACCOUNT', 'Edit Account');
define('IMAGE_BUTTON_HISTORY', 'Order History');
define('IMAGE_BUTTON_LOGIN', 'Sign In');
define('IMAGE_BUTTON_IN_CART', 'Add to Cart');
define('IMAGE_BUTTON_NOTIFICATIONS', 'Notifications');
define('IMAGE_BUTTON_QUICK_FIND', 'Quick Find');
define('IMAGE_BUTTON_REMOVE_NOTIFICATIONS', 'Remove Notifications');
define('IMAGE_BUTTON_REVIEWS', 'Reviews');
define('IMAGE_BUTTON_SEARCH', 'Search');
define('IMAGE_BUTTON_SHIPPING_OPTIONS', 'Shipping Options');
define('IMAGE_BUTTON_TELL_A_FRIEND', 'Tell a Friend');
define('IMAGE_BUTTON_UPDATE', 'Update');
define('IMAGE_BUTTON_UPDATE_CART', 'Update Cart');
define('IMAGE_BUTTON_WRITE_REVIEW', 'Write Review');

define('SMALL_IMAGE_BUTTON_DELETE', 'Delete');
define('SMALL_IMAGE_BUTTON_EDIT', 'Edit');
define('SMALL_IMAGE_BUTTON_VIEW', 'View');

define('ICON_ARROW_RIGHT', 'more');
define('ICON_CART', 'In Cart');
define('ICON_ERROR', 'Error');
define('ICON_SUCCESS', 'Success');
define('ICON_WARNING', 'Warning');

define('TEXT_GREETING_PERSONAL', 'Welcome back <span class="greetUser">%s!</span> Would you like to see which <a href="%s"><u>new 

products</u></a> are available to purchase?');
define('TEXT_GREETING_PERSONAL_RELOGON', '<small>If you are not %s, please <a href="%s"><u>log yourself in</u></a> with your account 

information.</small>');
define('TEXT_GREETING_GUEST', 'Welcome <span class="greetUser">Guest!</span> Would you like to <a href="%s"><u>log yourself in</u></a>? Or 

would you prefer to <a href="%s"><u>create an account</u></a>?');

define('TEXT_SORT_PRODUCTS', 'Sort products ');
define('TEXT_DESCENDINGLY', 'descendingly');
define('TEXT_ASCENDINGLY', 'ascendingly');
define('TEXT_BY', ' by ');

define('TEXT_REVIEW_BY', 'by %s');
define('TEXT_REVIEW_WORD_COUNT', '%s words');
define('TEXT_REVIEW_RATING', 'Rating: %s [%s]');
define('TEXT_REVIEW_DATE_ADDED', 'Date Added: %s');
define('TEXT_NO_REVIEWS', 'There are currently no product reviews.');

define('TEXT_NO_NEW_PRODUCTS', 'There are currently no products.');

define('TEXT_UNKNOWN_TAX_RATE', 'Unknown tax rate');

define('TEXT_REQUIRED', '<span class="errorText">Required</span>');

define('ERROR_TEP_MAIL', '<font face="Verdana, Arial" size="2" color="#ff0000"><b><small>TEP ERROR:</small> Cannot send the email through 

the specified SMTP server. Please check your php.ini setting and correct the SMTP server if necessary.</b></font>');
define('WARNING_INSTALL_DIRECTORY_EXISTS', 'Warning: Installation directory exists at: ' . dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . 

'/install. Please remove this directory for security reasons.');
define('WARNING_CONFIG_FILE_WRITEABLE', 'Warning: I am able to write to the configuration file: ' . 

dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php. This is a potential security risk - please set the right user 

permissions on this file.');
define('WARNING_SESSION_DIRECTORY_NON_EXISTENT', 'Warning: The sessions directory does not exist: ' . tep_session_save_path() . '. 

Sessions will not work until this directory is created.');
define('WARNING_SESSION_DIRECTORY_NOT_WRITEABLE', 'Warning: I am not able to write to the sessions directory: ' . tep_session_save_path() 

. '. Sessions will not work until the right user permissions are set.');
define('WARNING_SESSION_AUTO_START', 'Warning: session.auto_start is enabled - please disable this php feature in php.ini and restart the 

web server.');
define('WARNING_DOWNLOAD_DIRECTORY_NON_EXISTENT', 'Warning: The downloadable products directory does not exist: ' . DIR_FS_DOWNLOAD . '. 

Downloadable products will not work until this directory is valid.');

define('TEXT_CCVAL_ERROR_INVALID_DATE', 'The expiry date entered for the credit card is invalid.<br>Please check the date and try 

again.');
define('TEXT_CCVAL_ERROR_INVALID_NUMBER', 'The credit card number entered is invalid.<br>Please check the number and try again.');
define('TEXT_CCVAL_ERROR_UNKNOWN_CARD', 'The first four digits of the number entered are: %s<br>If that number is correct, we do not 

accept that type of credit card.<br>If it is wrong, please try again.');

define('FOOTER_TEXT_BODY', 'Copyright © ' . date('Y') . ' <a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . STORE_NAME . 

'</a><br>Powered by <a href="http://www.oscommerce.com" target="_blank">osCommerce</a>');
?>

 

catalog/includes/boxes/shop_by_price.php

 

<?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);

$info_box_contents = array();
$info_box_contents[] = array('text' => BOX_HEADING_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 //-->

Edited by Freelance GD

Share this post


Link to post
Share on other sites
Search By Price Infobox contribution

 

Search by Price Infobox allows the shopper select from a price range in an infobox. Ideal for a gift shop type application. Each language can have different price brackets to allow for currency differentiations.

 

No database modifications required.

Version 2.4 allows you to select from a dropdown list format or text list style format.

 

Installation document updated to be easier to follow.

Known issue: Items special prices not taken into account so if an items price is usually 24.99 but is reduced to 19.99 it will still apear in the 20-30 bracket not 10-20. I hope to release a bug fix in the next few days.

 

:) Sadie

can i have this for product attributes like colors?

Share this post


Link to post
Share on other sites

how to display shop_by_price in a dropdown menu but not in a infobox. I want to put it in the middle of the page?

Edited by jojojo

Share this post


Link to post
Share on other sites

Hi All,

 

I have just downloaded the latest shop by price contribution and installed it all ok on one of my shops, but it dont work to good on my second store. It all looks ok but when I click on a search range it comes up with the products under that search price range but the template does not come up (the screen is all white on the back ground and just shows the product pics and text). I have read all the fixes that I can find but they dont seem to work. Can someone please take a look at my site and try it out to see what I mean.

 

www.afterdarkaccessories.com

 

If someone can point me in right direction I would be very greatfull...

 

Thanks

 

Oh! the contribution shop_by_price is a great feature to have..

Share this post


Link to post
Share on other sites
hi all..

 

i'd like to use the shop by price infobox and im installing it now. it is said in the read me manual that i have to modify "/includes/sts_display_out.php" if i use STS, but i cant find this file in includes folder. I'm using STS mega power pack, hmm maybe it's version 4.5.2.

 

anybody can help me? thanks..

 

Did you manage to get this to work?

I can not get the box to show in a STS template site..

 

If found sts_display_out.php in /includes/modules/sts_inc/sts_display_out.php

Share this post


Link to post
Share on other sites

Hi all i have a strange issue with this mod, It was working as expected before i installed the infobox admin v2.25 mod.

 

The box on the index.php now displays the title heading (box and drop down menu) in french? I cant understand this as i have disabled the extra language files with OSC and I havent even installed the french version of this mod?

 

Can someone please help with this... I know abit about coding but this has me totally flummoxed as i cant even see where it is calling the french filename version from!!

 

Cheers in advance

Share this post


Link to post
Share on other sites

Installed the Shop by Price Add on. Getting this error Warning: Missing argument 3 for currencies::display_price(), called in D:\xampp\htdocs\shop17\includes\modules\product_listing.php on line 161 and defined in D:\xampp\htdocs\shop17\includes\classes\currencies.php on line 76

 

and

Warning: Missing argument 3 for currencies::display_price(), called in D:\xampp\htdocs\shop17\includes\modules\default_specials.php on line 30 and defined in D:\xampp\htdocs\shop17\includes\classes\currencies.php on line 76

 

Line 76 from includes/classes/currencies.php is this:

function display_price($products_id, $products_price, $products_tax, $quantity = 1) {
  global $customer_id;

 

 

Line 161 from includes/modules/product_listing.php is this:

$lc_text['products_price'] = ' ' . $currencies->display_price($listing[$x]['products_price'], tep_get_tax_rate($listing[$x]['products_tax_class_id'])) . ' ';

 

 

Line 30 from includes/modules/default_specials.php is this:

'text' => '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $default_specials["products_id"]) . '">' . tep_image(DIR_WS_IMAGES . $default_specials['products_image'], $default_specials['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $default_specials['products_id']) . '">' . $default_specials['products_name'] . '</a><br><s>' . $currencies->display_price($default_specials['products_price'], tep_get_tax_rate($default_specials['products_tax_class_id'])) . '</s><br><span class="productSpecialPrice">' . $currencies->display_price($default_specials['specials_new_products_price'], tep_get_tax_rate($default_specials['products_tax_class_id'])) . '</span>');

 

 

How do I get rid of these errors.

 

Thanks in advance

Share this post


Link to post
Share on other sites

´Hi all

 

I´m having trouble with

Changing Price Brackets

 

When i use shop by price and click 500- 800 i also get products for 900 ???? What am i doing wrong :( Some of the product shows right but some dont..

 

Here is my code for that:

 

$sel_currency = array();

$price_ranges = Array( 	"Under " .  $currencies->format(500) ,
					"Från " . $currencies->format(500) . " till " . $currencies->format(600),
					"Från " . $currencies->format(600). " till " . $currencies->format(800),
					"Från " . $currencies->format(800). " till " . $currencies->format(1000),
					"Över " . $currencies->format(1000),
					"Visa alla prisgrupper");

$price_min = Array(  0,
				500,
				600,
				800,
				1000,
				0);

$price_max = Array( 500,
				600,
				800,
				1000,
				0,
				0);

Share this post


Link to post
Share on other sites

Hi,

 

I installed this long wanted contrib. Very cool. However i have a little issue with it.

 

When i select for example: 10 to 20 euro products, it also shows products that cost more than 20 euro`s. For example 22.99.

 

Any way to fix this?

 

Thanks in advance.

 

hello,

i see you got to install this nice plugin can you install it for me ill pay you...

 

thanks

Share this post


Link to post
Share on other sites

I installed the contribution as indicated by the installation file and select any of the ranges, I get the following error:

 

 

Fatal error: Cannot redeclare tep_show_category() (previously declared in /home/regalos/www/includes/header.php:141) in /home/regalos/www/includes/boxes/categories.php on line 55

 

Help me, thank

Share this post


Link to post
Share on other sites

´Hi all

 

I´m having trouble with

Changing Price Brackets

 

When i use shop by price and click 500- 800 i also get products for 900 ???? What am i doing wrong :( Some of the product shows right but some dont..

 

Here is my code for that:

 

$sel_currency = array();

$price_ranges = Array( 	"Under " .  $currencies->format(500) ,
					"Från " . $currencies->format(500) . " till " . $currencies->format(600),
					"Från " . $currencies->format(600). " till " . $currencies->format(800),
					"Från " . $currencies->format(800). " till " . $currencies->format(1000),
					"Över " . $currencies->format(1000),
					"Visa alla prisgrupper");

$price_min = Array(  0,
				500,
				600,
				800,
				1000,
				0);

$price_max = Array( 500,
				600,
				800,
				1000,
				0,
				0);

 

 

Your values have to include all possibilities:

 

change it to:

 

 

$sel_currency = array();

$price_ranges = Array( 	"Under " .  $currencies->format(500) ,
					"Från " . $currencies->format(500) . " till " . $currencies->format(600),
					"Från " . $currencies->format(600). " till " . $currencies->format(800),
					"Från " . $currencies->format(900). " till " . $currencies->format(1000),
					"Över " . $currencies->format(1000),
					"Visa alla prisgrupper");

$price_min = Array(                     0,
				500,
				600,
				900,
				1000,
				0);

$price_max = Array(                     500,
				600,
				800,
				1000,
				0,
				0);

 

 

 

Chris


:|: Was this post helpful ? Click the LIKE THIS button :|:

 

See my Profile to learn more about add ons, templates, support plans and custom coding (click here)

Share this post


Link to post
Share on other sites

I installed the contribution as indicated by the installation file and select any of the ranges, I get the following error:

 

 

Fatal error: Cannot redeclare tep_show_category() (previously declared in /home/regalos/www/includes/header.php:141) in /home/regalos/www/includes/boxes/categories.php on line 55

 

Help me, thank

 

 

Post the code for that file.

 

 

Chris


:|: Was this post helpful ? Click the LIKE THIS button :|:

 

See my Profile to learn more about add ons, templates, support plans and custom coding (click here)

Share this post


Link to post
Share on other sites

Hi there,

 

A nice contribution. Is there any way it can be linked to show only the products in a particular price range from the category the customer is currently viewing, rather that the whole site?

 

Thanks

 

Dave

 

Hi,

 

Does anyone know how to make this? :huh:

Share this post


Link to post
Share on other sites

can anyone show me this contribution in action?


"Be who you are and say what you feel, because those who matter don't mind, and those that mind, don't matter." (Theodor Seuss Geisel)

Share this post


Link to post
Share on other sites

Great contribution. I've added a theme to my oscommerce template, how do I get my theme to show up, instead of the blank white background, when I use the search by price feature?

Share this post


Link to post
Share on other sites
blank.gifhi everyone.i have been using the shop by price contribution for sometime now however i recently installed it on a new store and everything works except when you select a price range the results page is completely messed up meaning that the header banner goes to the left and the rest of the page goes to the extreme right.any help or hint on this issue would be greatly appreciated.thanks in advance.

Share this post


Link to post
Share on other sites

I love this contribution but I have a problem. I like that when I am in a category, show the prices of those products, not the entire database. Do you know how I can do that?

Share this post


Link to post
Share on other sites

A nice contribution. Is there any way it can be linked to show only the products in a particular price range from the category the customer is currently viewing, rather that the whole site?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×