Jump to content

discxpress

Members
  • Content count

    884
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by discxpress

  1. Now it's working and the review appears on the product page. Thanks for your help 😊
  2. The error occurs when I click the Preview button.
  3. Yes that line is correct.
  4. There was an error with that file also
  5. Thank you. Will await your update.
  6. No Still there. I've tried re-uploading all the files.
  7. @raiwa I installed PWA 4.3.1 but it still says 4.2.0
  8. @raiwa Rainer I get the below error when in admin attempting to approve a review. Here's line 135: $reviews = $reviews_query->data_seek(0); I'm using PWA version 4.2.0 Phoenix I'm running Phoenix version 1.0.7.6
  9. discxpress

    KissIT Image Thumbnailer Support

    Thanks. The default image worked.
  10. discxpress

    QTPro BS

    Yes it's there. The error message threw me off. I got distracted. Thank you.
  11. discxpress

    QTPro BS

    @raiwa the latest Phoenix version of this module is missing includes/hooks/shop/siteWide/
  12. discxpress

    KissIT Image Thumbnailer Support

    Hello @raiwa I'm using the latest version of Kissit and I'm running Phoenix version 1.0.7.6 and I can't get the image not available to appear when there is no product image.
  13. @JcMagpie could you help me with this error? Thanks for your help.
  14. Using Phoenix version 1.0.7.6 and het this error when trying to install in admin: 1062 - Duplicate entry 'MODULE_HEADER_TAGS_JCM_BACK_TO_TOP_BC_COLOR' for key 'uq_configuration_key' insert into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Button Colour', 'MODULE_HEADER_TAGS_JCM_BACK_TO_TOP_BC_COLOR', '#FF9800', 'pick your button color', '6', '1', 'tep_cfg_select_option(array(\'greenyellow\', \'violet\', \'red\', \'blue\', \'green\', \'skyblue\', \'#FF9800\'), ', now()) Thanks
  15. @raiwa when you get a chance, will you look at the detailed changes for Phoenix 1.0.7.6.? Checkout_confirmation.php, checkout_payment.php, and checkout_process.php have changed. The edits are confusing. Thanks
  16. discxpress

    shop by price

    @raiwa I could never get it working. If you can, please PM me or post the code as you have it. Thank you.
  17. discxpress

    shop by price

    Where do I place ---> } I keep getting an error on line 78 when I remove it.
  18. discxpress

    shop by price

    Sorry I misunderstood. Where to put } ? EDIT: Please show me how you have it in your code.
  19. discxpress

    shop by price

    <?php /* $Id: cm_header_shop_by_price.php $Loc: catalog/includes/modules/content/header/ 2020 Shop by Price 5.2 CE Phoenix by @raiwa info@oscaddons.com www.oscaddons.com Based on: 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 Modified by -GuiGui- (http://www.gpuzin.com) - 07/03/2008 - fix the title and work with the contribution " Product Listing in Columns" Copyright (c) 2020 Rainer Schmied All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ class cm_header_shop_by_price extends abstract_executable_module { const CONFIG_KEY_BASE = 'MODULE_CONTENT_HEADER_SHOP_BY_PRICE_'; function __construct() { parent::__construct(__FILE__); $this->description .= '<p>by @raiwa <u><a target="_blank" href="http://www.oscaddons.com">www.oscaddons.com</a></u></p>'; } if ($GLOBALS['PHP_SELF'] == 'index.php') { function execute() { global $currencies, $currency, $request_type, $current_category_id; $content_width = (int)MODULE_CONTENT_HEADER_SHOP_BY_PRICE_CONTENT_WIDTH; $price_ranges = Array(); $price_ranges_array = explode(',', constant('MODULE_CONTENT_HEADER_SHOP_BY_PRICE_PRICE_RANGE_' . $currency)); $price_ranges[0] = MODULE_CONTENT_HEADER_SHOP_BY_PRICE_LESS_THAN . $this->format0($price_ranges_array[0], false); for ($price_range=1; $price_range<sizeof($price_ranges_array); $price_range++) { $price_ranges[$price_range] = $this->format0($price_ranges_array[$price_range-1]). " − " . $this->format0($price_ranges_array[$price_range]); } $price_ranges[sizeof($price_ranges_array)] = MODULE_CONTENT_HEADER_SHOP_BY_PRICE_MORE_THAN . $this->format0($price_ranges_array[sizeof($price_ranges_array)-1]); $price_ranges[sizeof($price_ranges_array)+1] = MODULE_CONTENT_HEADER_SHOP_BY_PRICE_ALL; $price_range_list = null; $price_range_list[] = array('id' => '0', 'text' => PULL_DOWN_DEFAULT ); for ($range=1; $range<sizeof($price_ranges)+1; $range++) { $price_range_list[] = array('id' => $range, 'text' => $price_ranges[$range-1] ); } $range = null; if ( isset($_GET['range']) ) { $range = $_GET['range']; } elseif ( isset($_GET['lrange']) ) { $range = $_GET['lrange']+1; } $tpl_data = [ 'group' => $this->group, 'file' => __FILE__ ]; include 'includes/modules/content/cm_template.php'; } } protected function get_parameters() { $config_parameters = [ 'MODULE_CONTENT_HEADER_SHOP_BY_PRICE_STATUS' => [ 'title' => 'Enable Shop by Price Module', 'value' => 'True', 'desc' => 'Do you want to add the module to your shop?', 'set_func' => "tep_cfg_select_option(['True', 'False'], ", ], 'MODULE_CONTENT_HEADER_SHOP_BY_PRICE_CONTENT_WIDTH' => [ 'title' => 'Content Width', 'value' => '4', 'desc' => 'What width container should the content be shown in?', 'set_func' => "tep_cfg_select_option(['12', '11', '10', '9', '8', '7', '6', '5', '4', '3', '2', '1'], ", ], 'MODULE_CONTENT_HEADER_SHOP_BY_PRICE_SORT_ORDER' => [ 'title' => 'Sort Order', 'value' => '25', 'desc' => 'Sort order of display. Lowest is displayed first.', ], 'MODULE_CONTENT_HEADER_SHOP_BY_PRICE_USE_FAST_TAX_QUERY' => [ 'title' => 'Use fast Tax Query', 'value' => 'True', 'desc' => 'Should work for most shops with standard tax settings.<br>Set to false if you have very complicate tax sttings with several Tax zones/types and get missing products in range results.', 'set_func' => "tep_cfg_select_option(['True', 'False'], ", ], 'MODULE_CONTENT_HEADER_SHOP_BY_PRICE_USE_DECIMAL' => [ 'title' => 'Use decimal places', 'value' => 'False', 'desc' => 'Do you want to use decimal places for the price ranges?', 'set_func' => "tep_cfg_select_option(['True', 'False'], ", ], ]; require_once(DIR_FS_CATALOG . 'includes/system/versioned/1.0.7.4/currencies.php'); $currencies = new currencies(); foreach($currencies->currencies as $key => $value) { $config_parameters['MODULE_CONTENT_HEADER_SHOP_BY_PRICE_PRICE_RANGE_' . $key] = [ 'title' => 'Price Range ' . $key, 'value' => '1,2,3,5,10', 'desc' => 'Price Range Steps separated by comma for ' . $key . ' currency.<br>Default:"10,20,30,50,100"<br>If decimals, use point for decimal separator. Example: 2.50', ]; } return $config_parameters; } function format0($number, $currency_type = '', $currency_value = '') { global $currencies, $currency, $calculate_currency_value; if (empty($currency_type)) $currency_type = $currency; if ( defined('MODULE_CONTENT_HEADER_SHOP_BY_PRICE_USE_DECIMAL') && MODULE_CONTENT_HEADER_SHOP_BY_PRICE_USE_DECIMAL == 'True') { if ($calculate_currency_value == true) { $rate = (tep_not_null($currency_value)) ? $currency_value : $currencies->currencies[$currency_type]['value']; $format_string = $currencies->currencies[$currency_type]['symbol_left'] . number_format(tep_round($number * $rate, $currencies->currencies[$currency_type]['decimal_places']), $currencies->currencies[$currency_type]['decimal_places'], $currencies->currencies[$currency_type]['decimal_point'], $currencies->currencies[$currency_type]['thousands_point']) . $currencies->currencies[$currency_type]['symbol_right']; } else { $format_string = $currencies->currencies[$currency_type]['symbol_left'] . number_format(tep_round($number, $currencies->currencies[$currency_type]['decimal_places']), $currencies->currencies[$currency_type]['decimal_places'], $currencies->currencies[$currency_type]['decimal_point'], $currencies->currencies[$currency_type]['thousands_point']) . $currencies->currencies[$currency_type]['symbol_right']; } } else { if ($calculate_currency_value == true) { $rate = (tep_not_null($currency_value)) ? $currency_value : $currencies->currencies[$currency_type]['value']; $format_string = $currencies->currencies[$currency_type]['symbol_left'] . number_format(tep_round(round($number * $rate, $round_places), $currencies->currencies[$currency_type]['decimal_places']), 0, $currencies->currencies[$currency_type]['decimal_point'], $currencies->currencies[$currency_type]['thousands_point']) . $currencies->currencies[$currency_type]['symbol_right']; } else { $format_string = $currencies->currencies[$currency_type]['symbol_left'] . number_format(tep_round($number, $currencies->currencies[$currency_type]['decimal_places']), 0, $currencies->currencies[$currency_type]['decimal_point'], $currencies->currencies[$currency_type]['thousands_point']) . $currencies->currencies[$currency_type]['symbol_right']; } } return $format_string; } } @raiwa
  20. discxpress

    shop by price

    That code removed it from all pages.
  21. discxpress

    shop by price

    1. It may be the button spinner causing it. I may consider removing it. 2. Ok. I don't know know anything about $PHP_SELF check 😄 I wish I knew how to code.
  22. discxpress

    shop by price

    I have 2 more issues: 1. The back button doesn't work. The page just loops. 2. The Shop by Price module appears on every page. Maybe because it's in the header.
  23. discxpress

    shop by price

    That worked. Thank you
  24. discxpress

    shop by price

    Updated. Thanks for your time with this. I have a question and a minor issue. The module searches and displays results of products that are not in the category. How to get header module to appear in the center?
×