Jump to content


Popular Content

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

  1. 5 points
    Addon download: https://apps.oscommerce.com/Imrlq&ultimate-seo-urls-rewritter-for-phoenix Features Ultimate SEO URL rewrites the standard Phoenix URLs to make them more user friendy and with multi-language support. Products URLs can be composed with any combination of product, category, manufacturer or model names in any order. It can be changed and the old URL will redirect to the new one. For example if you choose category/brand/model/product-name and if the uri type is path based your product url will look like: www.mysite.com/vegetables-von-peacock-green-tomatoes-gtom-p-6.html instead of the regular: www.mysite.com/product_info.php?products_id=6 Multilanguage and SEO It also adds the ability to diferentiate URLs by language, creating different URL addresses for each one, something crucial if you want your pages to be indexed correctly by browsers depending on its target language. Stock Phoenix returns the same URI for all the language localized versions of a page. This app will make them different pages, i.e.: Default language (English): www.mysite.com/green-tomatoes-p-6.html Second language (Spanish): www.mysite.com/es/tomates-verdes-p-6.html Third language (French): www.mysite.com/fr/tomates-vertes-p-6.html Note default language will not include the language path (/en/, /es/, /fr/, /de/...) Canonical and hreflang tags The app also includes canonical and hreflang modules that adds differentiating tags to these pages. This highly improves Phoenix SEO capabilities for multi-lingual shops. With the canonical tags Info pages will be linked to their corresponding .php file, avoiding the spiders finding duplicated content, i.e.; www.mysite.com/info.php?pages_id=1 will become www.mysite.com/privacy-cookie-policy-pi-1.html and both canonicat tags on these pages will point to www.mysite.com/privacy.php as the default URL for the same content. With hreflang tags each page will containg links of other localized version of itself: English <link rel="alternate" hreflang="en" href="http://www.mysite.com/my-great-category-c-3.html" /> German <link rel="alternate" hreflang="de" href="http://www.mysite.com/de/meine-super-kategorie-c-3.html" /> Spanish <link rel="alternate" hreflang="es" href="http://www.mysite.com/es/mi-estupenda-categoria-c-3.html" /> Cache It also has the ability to cache URLs, using three methods: File, SQLite or Mysql based. This will improve the page generation times by saving database queries, specially on sites with lots of products and categories or servers with low resources. 404 error page You can personalize your "404 Not found" page. The template is located at: /templates/default/includes/pages/notfound_404.php. It will return correct 404 header unlike stock one does. Sitemap Included in this package is a sitemap generator compatible with multiple languages. It will generate separate sitemaps for products, categories and other pages. To generate the sitemap you must access /sitemaps/index.php directory of your website. This task can be automated if you wish. Changelog: R3.0.0 (December 2020) Initial release for Phoenix Hopefully there will be no need of doing any more major changes in the app unless core code changes drastically. For earlier versions download R2.09 at https://apps.oscommerce.com/5GV7s&ultimate-seo-urls-5-pro Allow to processs links outside root folder (ie. ext/directory). New installation process. No core code changes or edits needed anymore. New admin configuration page Removed support for database language conversions (only file conversions allowed). New Canonical module New 404 error page with template support. Support for write.php (write reviews) and info.php (editable pages) special pages included This app is based on Ultimate SEO URLS 5 Pro for Oscommerce 2.3 by Jack_mcs (for older Oscommerce versions).
  2. 3 points
    Finally got Phoenix live and working as I want it. Now only updating if I want to add a feature. Leave it alone if its working.
  3. 3 points

    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.
  4. 2 points

    Phoenix Installation via Softaculous

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

    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 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.
  6. 2 points
    v1.0.7.12 is tagged and announced. https://www.oscommerce.com/Us&amp;News=173 Thank you to everybody who made this release a possibility and to everyone who continue to allow Phoenix to fly high and burn brightly. Seasons Greetings.
  7. 2 points

    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 ( 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.
  8. 1 point

    ULTIMATE Seo Urls 5 - by FWR Media

    Final version for CE Phoenix attached. I will open a new topic (this one is very old and almost nothing relates to the currrent app due to the huge amount of changes and fixes). I will upload it to the addons page soon, too. I didn't receive any feedback other than from @Omar_one. Does nobody consider this app of interest anymore? @zeeshop yes it works on phoenix Please download new package attached and see the readme included for instructions. Ultimate_SEO_Urls v3.0.0.zip
  9. 1 point

    Featured Products BS

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

    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.
  11. 1 point

    Purchase without account for 2.3.4 and BS2334

    I just upgraded to Phoenix A couple of changes are needed in cd_guest.php: public function build_db_values(&$db_tables, $customer_details, $table = 'both') { // 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') { // deprecated tep_guarantee_subarray($db_tables, 'customers'); Guarantor::guarantee_subarray($db_tables, 'customers'); $db_tables['customers']['customers_guest'] = 'guest'; }
  12. 1 point

    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 and later.
  13. 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; } }
  14. 1 point

    [Contribution] Ship In Cart

    You should always: - have a backup to be able to roll back - test an update on a separate sandbox store before updateing a live store
  15. 1 point

    Wholesale (SPPC lite)

    Hotfix for error in the store module under Phoenix In includes/modules/store/st_wholesale.php remove or comment out line 142: include_once(DIR_FS_CATALOG . 'includes/system/versioned/'); - The "What's new" box will not show the wholesale prices due to using the new product class - other errors may appear
  16. 1 point

    Stripe v3 module for SCA

    Hi Steve In Settings>emails there is a slider.
  17. 1 point
    René H4

    Featured Products BS

    Very nice and easy to use AddOn Rainer, thanks! (Running 1079 / 7.4)
  18. 1 point

    KissIT Image Thumbnailer Support

    Hi, I'm using Phoenix and KissIT 3.4.2 and noticed that it creates empty folders for gallery images. I verified this using stock versions of 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?
  19. 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.
  20. 1 point

    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
  21. 1 point

    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
  22. 1 point

    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
  23. 1 point
    Muchas gracias Rainer!!! Se que están pasando un mal momento en España. Ojala todo mejore pronto, cuídate mucho!!!
  24. 1 point

    TinyMCE editor for admin

    That's the advantage with the hook system that was used ( as well as using modules to add new features) , less chance of things going wrong. as well as so much simpler to install as well I've managed to break all sorts of things in the past when installing / updating addons in the past. i will of course check against future releases of phoenix, to make sure everything still works
  25. 1 point

    Warn on Duplicate UPC

    $.post it to a processing script onBlur. Similar as this: http://www.clubosc.com/unique-product-models-in-oscommerce.html