Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation since 12/18/2020 in Posts

  1. 3 points
    burt

    Clickjacking Vulnerability?

    https://htaccessbook.com/increase-security-x-security-headers/ Gives more reading for you (or your host). In my opinion, typical fake email designed to make people worry.
  2. 2 points
    mikabee

    Phoenix Installation via Softaculous

    My service provider added CE Phoenix to their version of Softaculous 😀
  3. 2 points
    Denzel

    TinyMCE editor for admin

    The TinyMCE has issues with the required argument of html5. Found some threads on stack and git... This fix works for me with Phoenix CE 1.0.7.12: Add this lines into the init call into the hook: setup: function (editor) { editor.on('change', function (e) { editor.save(); }); } so that it looks like this: <?php /* Copyright (c) 2019, C Poole 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. */ /* HOW TO USE you can either load the js file needed for TinyMCE locally or via the TinyMCE CDN (if you have a api key if using TinyMCE CDN use the url proivded to you by TinyMCE if loading tinymce locally <script src="path/to/where/you/saved/it"></script> I recommend using the TinyMCE CDN, as it will keep it up to date. HOW TO ADD TO OTHER TEXTAREAS You will need to add the name of the textera to the selector line e.g. if the textarea name is example_name[1] you need to put , textarea[name^="example_name"] it will then load it on all textareas with example_name so if you have a multi language store, it will load for all languages if the textarea is not on the categories or manufacors page then you will neeed to add the filename to the $good_pages variable HOW TO ADD/RE,OVE PLUGINS AND WHAT APPEARS IN THE TOOLBARS this is done by simply adding/removing stuff from the plugins or toolbar settings it is just what i use personally */ class hook_admin_siteWide_tinymce { var $version = '1.0.3'; var $sitestart = null; var $siteend = null; var $good_pages = ['categories.php', 'manufacturers.php', 'info_pages.php']; // what pages do you want to load the tinymce editor on function listen_injectSiteEnd() { $this->siteend .= '<!-- tiny mce -->' . PHP_EOL; $this->siteend .= '<script src="https://cdnjs.cloudflare.com/ajax/libs/tinymce/5.0.15/tinymce.min.js"></script>' . PHP_EOL; $tinyScript = <<<eod <script> tinymce.init({ selector: 'textarea[name^="products_description"], textarea[name^="categories_description"], textarea[name^="manufacturers_description"], textarea[name^="page_text"]', // Select all textarea we want to use it on height: 500, width: "100%", forced_root_block : false, theme: 'silver', plugins: [ 'advlist autolink lists link image charmap print preview hr anchor pagebreak', 'searchreplace wordcount visualblocks visualchars code fullscreen', 'insertdatetime media nonbreaking save table contextmenu directionality', 'emoticons template paste textcolor colorpicker textpattern imagetools codesample toc' ], toolbar1: 'undo redo | insert | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image', toolbar2: 'print preview media | forecolor backcolor | codesample fontselect fontsizeselect', image_advtab: true, relative_urls : true, remove_script_host : true, content_css: [ 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.8.1/css/all.min.css', 'https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.3.1/css/bootstrap.min.css' ], setup: function (editor) { editor.on('change', function (e) { editor.save(); }); } }); </script> eod; if (in_array(basename($_SERVER['PHP_SELF']), $this->good_pages)) { $this->siteend .= $tinyScript . PHP_EOL; return $this->siteend; } } } I have already added the Info-Pages textareas. Maybe Craig @puddlec can upload it as update into the marketplace.
  4. 2 points
    Jack_mcs

    Product Quantity Box

    A new version has been uploaded with these changes: Added the word quantity before the quantity box. Suggested by member @davinci8. Added a top quantity box that displays at the top of the page. Both modules are synced to work together. Added up/down arrows for changing the quantity. Added an "Already in Cart" option. Suggested by member @kgtee. Changed the add products module to be 7.4 compatible. Found by @artfulweb. Changed the product_info change to be be compatible with the latest Phoenix version (1.0.7.12). Changed the code to display the word "Quantity" if the arrows are not used. Moved the javascript to a hook. Moved the css to a hook. Renamed the template file to match the Phoenix standard.
  5. 1 point
    raiwa

    Featured Products BS

    You can delete the part with $cat_name in that line in the template file also:
  6. 1 point
    raiwa

    Featured Products BS

    Just remove that line in the cm_i_featured_products.php module. It's unused there and I have this fix prepared for the next update.
  7. 1 point
    vmn

    Purchase without account for 2.3.4 and BS2334

    I just upgraded to Phoenix 1.0.7.12. A couple of changes are needed in cd_guest.php: public function build_db_values(&$db_tables, $customer_details, $table = 'both') { //1.0.7.12 deprecated tep_guarantee_subarray($db_tables, 'customers'); Guarantor::guarantee_subarray($db_tables, 'customers'); $db_tables['customers']['customers_guest'] = $customer_details['guest']; } public function build_db_aliases(&$db_tables, $table = 'both') { //1.0.7.12 deprecated tep_guarantee_subarray($db_tables, 'customers'); Guarantor::guarantee_subarray($db_tables, 'customers'); $db_tables['customers']['customers_guest'] = 'guest'; }
  8. 1 point
    Jack_mcs

    Header Tags SEO

    A new version has been uploaded with these changes: Changed the code in the HTS display module in admin to prevent php warnings. Changed the code in the HTS test file in admin to prevent php warnings. Changed the code in admin/categories.php to automatically fill in the stock SEO fields. Found by @alix32. Corrected link in Version Checker that gave incorrect results. Removed some unused defines left over from a previous version. Note: These changes only apply to Phoenix shops 1.0.7.4 and later.
  9. 1 point
    The following works for us (with thanks to @ecartz for solution). After: const CONFIG_KEY_BASE = 'MODULE_SHIPPING_FLAT_'; Insert: public function __construct() { parent::__construct(); if ($this->enabled && isset($GLOBALS['order']->info['total']) && ($GLOBALS['order']->info['total'] < 30)) { $this->enabled = false; } }
  10. 1 point
    raiwa

    [Contribution] Ship In Cart

    @zeeshop, Hotfix for Phoenix 1.0.7.12: In includes/modules/content/cm_sc_shipping.php line 64 add this: public function get_country_id() { return null; } public function get_zone_id() { return null; } so the whole snippet should look like this: if (!isset($GLOBALS['customer'])) { $GLOBALS['customer'] = new class { public function fetch_to_address($to = null) { return []; } public function get($key, $to = 0) { return null; } public function get_default_address_id() { return null; } public function get_country_id() { return null; } public function get_zone_id() { return null; } }; } or just use this file: cm_sc_shipping.php However there may appear other issues.
  11. 1 point
    They are always linked to several tables. And if there are thousands of products, customers, orders? 😉
  12. 1 point
    Fiber

    Dutch translation osC Phoenix 1.0.6.2

    Update Dutch/Nederlands OSCOM CE Phoenix v1.0.7.12 OSCOM CE Phoenix v1.0.7.12
  13. 1 point
    raiwa

    KissIT Image Thumbnailer Support

    As far as I know, WebP images are not (yet) supported by the GD library which is used to generate the thumbs. Edit: just checked and the latest version has it added: https://www.php.net/manual/en/function.imagetypes.php but the support needs to be added to kiss it. I’ll check for the next update. But I don’t know if that version is already widely installed on the servers.
  14. 1 point
    raiwa

    Wholesale (SPPC lite)

    Uploaded Wholesale Lite Version 4.3.1 Compatibility: Phoenix 1.0.7.9 - 1.0.7.11 PHP 7.0-7.4 ------------------------------------------------------------------------------------------------------------- Older Phoenix 1.0.6.x - 1.0.7.7 versions please use Wholesale (SPPC lite) 4.2.0. Older Phoenix 1.0.5.x versions please use Wholesale (SPPC lite) 4.1.1. Older Phoenix 1.0.3.0 - 1.0.4.x versions please use Wholesale (SPPC lite) 4.1.0. Older Phoenix 1.0.1.0 - 1.0.2.x versions please use Wholesale (SPPC lite) 4.0.1. Older 2.3.4.(1.) BS3 based responsive versions please use Wholesale (SPPC lite) 3.0.4 Older 2.3.4.(1.) versions please use Wholesale (SPPC lite) 2.0r1 ------------------------------------------------------------------------------------------------------------- Version 4.3.1: - Fixed notice errors in Admin : Categories/Products => New Product Thanks to @Nige-A - Fixed error for tax exempt wholesaler feature. Thanks to @tcdeveer3
  15. 1 point
    vmn

    KissIT Image Thumbnailer Support

    Hi, I'm using Phoenix 1.0.7.11 and KissIT 3.4.2 and noticed that it creates empty folders for gallery images. I verified this using stock versions of 1.0.7.11 and KissIT. The function tep_image in kiss_it_image.php first creates a folder and the function _generateThumbnail in Image_Helper.php does not need it, because thumbs are not used for gallery images. This fix works for me. No empty folders will be created after applying it. In kiss_it_image.php tep_image replace the lines between // Create thumbs sub dirs and .htaccess. and // End create subdirectory and .htaccess. as follows //VMN NOT NEEDED Create thumbs sub dirs and .htaccess. //VMN build thumbs sub dir path, in case it's needed $thumbs_dir_path = str_replace('images/', 'images/' . KISSIT_THUMBS_MAIN_DIR . $width .'_'.$height.'/', dirname($src) . '/'); //VMN MOVED TO Image_Helper _generateThumbnail if(!is_dir($thumbs_dir_path)) { //VMN MOVED TO Image_Helper _generateThumbnail mkdir($thumbs_dir_path,0775,true); //VMN MOVED TO Image_Helper _generateThumbnail } //VMN NOT NEEDED because sub dirs are created using mkdir('path',mode,true) //VMN NOT NEEDED $thumbs_dir = ''; //VMN NOT NEEDED $thumbs_dir_paths = explode("/",$thumbs_dir_path); //VMN NOT NEEDED for ($i=0, $n=sizeof($thumbs_dir_paths); $i<$n; $i++) { //VMN NOT NEEDED $thumbs_dir .= $thumbs_dir_paths[$i] . '/'; //VMN NOT NEEDED if(!is_dir($thumbs_dir)) { //VMN NOT NEEDED mkdir($thumbs_dir, 0775); //VMN NOT NEEDED } //VMN NOT NEEDED create .htacces protection like in main image dir //VMN NOT NEEDED if (($i==$n-1) && (!is_file($thumbs_dir . '.htaccess')) ) { //VMN NOT NEEDED $hpname = $thumbs_dir . '.htaccess'; //VMN NOT NEEDED if ($hp = fopen($hpname,'w')) { //VMN NOT NEEDED fwrite($hp,$htacces); //VMN NOT NEEDED fclose($hp); //VMN NOT NEEDED } //VMN NOT NEEDED } //VMN NOT NEEDED} // end for //VMN NOT NEEDED End create subdirectory and .htaccess. There is no unnecessary creation of thumbs subfolders and htaccess files. The main thumbs folder htaccess will protect supbfolders as well. The only reference of $thumbs_dir_path is in $image = new Image_Helper(...). ================ in Image_Helper.php _generateThumbnail below the line: //make sure the thumbnail directory exists. 1. comment out/remove the lines //VMN NOT NEEDED if ( !is_writable ( $this->thumbs_dir_path ) ) { //VMN NOT NEEDED trigger_error ( 'Cannot detect a writable thumbs directory!', E_USER_NOTICE ); //VMN NOT NEEDED } //VMN The check below is already done in _checkImage returning 'no_thumb_required' //VMN NOT NEEDED if ( is_readable ( $this->_thumb_src ) ) { //VMN NOT NEEDED $this->_calculated_width = (int)$this->attributes['width']; //VMN NOT NEEDED $this->_calculated_height = (int)$this->attributes['height']; //VMN NOT NEEDED return $this->src = $this->_thumb_src; //VMN NOT NEEDED } 2. add //VMN moved from kiss_it_image.php if(!is_dir($this->thumbs_dir_path)) { mkdir($this->thumbs_dir_path,0775,true); // true ->Allows the creation of nested directories specified in the pathname } Do you see any problems with this approach?
  16. 1 point
    bitit.it

    Discount Code 5.3.2 phoenix in 1.0.7.9

    Discount_Codes_5.3.2_Phoenix+italiano.zip
  17. 1 point
    Uploaded new package Purchase without account 4.3.4r1 with the missing file inlcuded: /templates/default/includes/ext/modules/content/reviews/write_pwa.php Update: Just copy/upload this file. Compatibility: CE Phoenix 1.0.7.9.+. Tested with Phoenix 1.0.7.11. PHP 7.0-7.4 Older Phoenix versions please use PWA Phoenix 4.3.0.-4.3.2 Older CE BS versions please use PWA for BS 3.0.5 Older 2.3.4.(1.) versions please use PWA for BS 2.5r2 Changes Version. 4.3.4 - fixed sql error in create_account_pwa.php. Thanks to @vmn
  18. 1 point
    Mike @Mikepo, you are right. I missed to include that file in the package: write_pwa.php It goes like you say in: templates/default/includes/ext/modules/content/reviews/write_pwa.php Please check and confirm. I'll then upload the update.
  19. 1 point
    raiwa

    Featured Products BS

    The your report was quite unprecise: when click on catalog/featured products should have been: when selecting in admin: "Catalog/Featured Products" http error 500 is displayed this was not this kind of error. You got a blank page if error reporting was switched off or you got the error message I posted above. Please try to be more precise and give accurate information when you report a problem.
  20. 1 point
    ruden

    Google reCAPTCHA v3

    Google reCAPTCHA v3 For all version osCommerce stops bots from spamming account creation and contact us. Install --------- Unzip the archive and upload the files on server. In the admin side menu Modules -> Boxes -> button Install Module -> select modules Google reCAPTCHA v3 -> button Install Module Setting ---------- Go to reCAPTCHA v3 page https://www.google.com/recaptcha/intro/v3.html and register your store. Add Site key and Secret key to module settings.
  21. 1 point
    chavojr8

    Discount Code BS

    Ok. They seemed to work other than that, so I really wasn't expecting it to be a compatibility issue. I figured I was just trying to get it to do something it wasn't intended to do. Thanks
  22. 1 point
    I used a similar add-on years ago (with OsC 2.2) for a sign shop that sold vinyl material by the square foot. I may be able to find the add-on if I look through some old hard drives.
  23. 1 point
    Woodenhearts

    Where do i start!

    Hello, Brand, brand new to this environment and I'm looking for an update I was advised to come here by the software. Is there an easy step guide, as I am just starting out building my first shop and I'm rather overwhelmed as to where to start. (it took a while to get into the admin section, but I did it!) Thank you
  24. 1 point
    ArtcoInc

    How To Install SSL Correctly

    @XplorMedia There are 3 areas that need to be set up correctly ... 1) Your website is XplorMedia.com. It is NOT www.XplorMedia.com. Note the www. prefix. You need to make sure that your SSL certificate and website name match. 2a) You need to make sure your .htaccess file redirects people to the correct name. In other words, if people type www.XplorMedia.com, your .htaccess file needs to redirect them to XplorMedia.com (without the www.). 2b) Your .htaccess file must then redirect people to your https:// site. 3) In osCommerce, there are two configuration files: <shop root>/includes/configure.php <shop root>/<your admin directory>/includes/configure.php BOTH of these need to be edited to reflect that you are using a SSL certificate. For example, <?php define('HTTP_SERVER', 'https://XplorMedia.com'); define('HTTPS_SERVER', 'https://XplorMedia.com'); define('ENABLE_SSL', true); Note that there is no www. in the URLs (since your site, and SSL certificate aren't using it), that the httpS is in BOTH URLs, and that ENABLE_SSL is set to true. HTH Malcolm
  25. 1 point
    Muchas gracias Rainer!!! Se que están pasando un mal momento en España. Ojala todo mejore pronto, cuídate mucho!!!
×