Jump to content

PiLLaO

Members
  • Content count

    370
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by PiLLaO

  1. PiLLaO

    [Addon] Store Times BS

    Hi!, I think this piece of code are useless: catalog/includes/modules/content/header/cm_header_store_times.php function install($parameter = null) { // check for installation settings of addon 8044 Store Closed and use if present if (file_exists(DIR_FS_CATALOG . 'includes/opencloz.php')){ if (!defined('DIR_WS_INCLUDES')) define('DIR_WS_INCLUDES','../includes/'); include_once( DIR_FS_CATALOG . 'includes/opencloz.php'); initialize_open_cloze(); } $params = $this->getParams(); This line? if (!defined('DIR_WS_INCLUDES')) define('DIR_WS_INCLUDES','../includes/');
  2. PiLLaO

    Phone Orders

    Bug found on catalog/phone_orders.php Line 90 Replace "</forum>" by "</form>" (seems to autocompletition error) This wrong tag was giving me error with the form of ajax login
  3. PiLLaO

    Recover Cart Sales for Phoenix

    Sorry, you have reason. I set days to 0, and after push delete buttons reloads and set to 5 (default)
  4. PiLLaO

    Recover Cart Sales for Phoenix

    Delete button also delete cart
  5. PiLLaO

    Recover Cart Sales for Phoenix

    Hi Jack_mcs In Tools -> Recover Cart Sales -> Save button, delete the basket
  6. PiLLaO

    AJAX Attribute Manager support

    Since 2015 with ECMAScript 6, pure javascript it's more easy to use, near to jQuery but you don't need to load and extra file. If you use de "order editor" addon, you can view that not use jQuery and have ajax. The tendency is to program in pure javascript. GitHub removes from his frontend jQuery: https://github.blog/2018-09-06-removing-jquery-from-github-frontend/
  7. PiLLaO

    AJAX Attribute Manager support

    Hi, For those who want to replace Jquery for vanilla JS, catalog/includes/hooks/admin/categories/ajaxAttribManager.php Find: $(function() { $('#productTabs #productTabsMain').append('<li><a href="{$tab_link}">{$tab_title}</a></li>'); }); Replace with: document.querySelector('#productTabs #productTabsMain').innerHTML = document.querySelector('#productTabs #productTabsMain').innerHTML + '<li><a href="{$tab_link}">{$tab_title}</a></li>'; catalog/includes/hooks/admin/siteWide/ajaxAttribManager.php Find: $( window ).load(function() { goOnLoad(); }); Replace with: document.addEventListener('DOMContentLoaded', function() { goOnLoad(); }); Now you have a Jquery less entire addon
  8. PiLLaO

    Product listing

    Watermark was 0.6 Thanks!!!
  9. PiLLaO

    Product listing

    Hi @Rainer I think that I have something bad configured or I have a problem. The app creates a thumb of all pictures with configured size and another thumb with the original resolution but smaller size How can disable to create the thumb with original resolution? Thanks in advance.
  10. PiLLaO

    Sitemap SEO

    Hi Jack, Inside "After_2.3_BS_ONLY\catalog_Only_New_Files\admin\includes\languages\english" only exists: - sitemap.php - version_checker.php don't exists "modules/boxes" inside Best regards
  11. PiLLaO

    Sitemap SEO

    Seems to missing file, I have the same issue. catalog/includes/languages/english/modules/boxes/bm_sitemap_seo.php <--- Exists. catalog/admin/includes/languages/english/modules/ <--- Not exists. Best regards
  12. PiLLaO

    Sitemap SEO

    Hi Jack, I'm going to update from 2.0 to 2.2 and I look that in 'catalog/includes/functions/sitemap.php' still call to 'catalog/includes/filenames.php' to check if exists a define on the file using the function "GetFileName()". In 'catalog/includes/modules/sitemap.php' on line 61 are this code: if ($boxes['page_link_name'] === strtoupper($boxes['page_link_name'])) { //may not be a defined name $filename = GetFileName($boxes['page_link_name']); } else { $filename = $boxes['page_link_name'] ; } Are this ok? Thanks in advance
  13. PiLLaO

    ULTIMATE Seo Urls 5 - by FWR Media

    Hi!, It's possible to send emails from admin side with friendly url products link? Using Recovert Cart Sales it's send emails to customers, but links are not friendly url. Best Regads
  14. PiLLaO

    Can't install COD module

    See your error_log file in server Is better that don't show the admin url
  15. PiLLaO

    ULTIMATE Seo Urls 5 - by FWR Media

    Better replace this: require('includes/application_top.php'); if (http_response_code() == 404) { require('your_custom_404.php'); return false; } With this: require('includes/application_top.php'); if (http_response_code() == 404) { require('your_custom_404.php'); exit; } Best regards :)
  16. PiLLaO

    ULTIMATE Seo Urls 5 - by FWR Media

    In catalog/includes/modules/ultimate_seo_urls5/main/validator.php, if you find this private function validate() { // Get the incoming seo uri minus the session id Usu_Main::i()->setVar( 'request_compare_in', remove_session_id( htmlspecialchars_decode( Usu_Main::i()->getVar( 'original_request_uri' ) ) ) ); // Get a brand new url based on the querystring $new_url = htmlspecialchars_decode( tep_href_link( Usu_Main::i()->getVar( 'filename' ), Usu_Main::i()->getVar( 'request_querystring' ) ) ); // Strip the new url of domain name and session id to arrive at a comparible uri Usu_Main::i()->setVar( 'request_compare_new', remove_session_id( str_replace( array( HTTPS_SERVER, HTTP_SERVER ), '', $new_url ) ) ); /** * If $page_not_found has been set to bool true then the page module returned a result of bool false from the database * this means that the product/category etc does not exist so we need to show 404 headers and page. */ if ( false !== Usu_Main::i()->getVar( 'page_not_found' ) ) { $this->pageNotFound(); } // If the incoming uri and the newly created uri do not match then we need to 301 redirect to the new. if ( Usu_Main::i()->getVar( 'request_compare_in' ) != Usu_Main::i()->getVar( 'request_compare_new' ) ) { $this->redirect( $new_url ); } } // end method And change by this private function validate() { // Get the incoming seo uri minus the session id Usu_Main::i()->setVar( 'request_compare_in', remove_session_id( htmlspecialchars_decode( Usu_Main::i()->getVar( 'original_request_uri' ) ) ) ); // Get a brand new url based on the querystring $new_url = htmlspecialchars_decode( tep_href_link( Usu_Main::i()->getVar( 'filename' ), Usu_Main::i()->getVar( 'request_querystring' ) ) ); // Strip the new url of domain name and session id to arrive at a comparible uri Usu_Main::i()->setVar( 'request_compare_new', remove_session_id( str_replace( array( HTTPS_SERVER, HTTP_SERVER ), '', $new_url ) ) ); /** * If $page_not_found has been set to bool true then the page module returned a result of bool false from the database * this means that the product/category etc does not exist so we need to show 404 headers and page. */ if ( false !== Usu_Main::i()->getVar( 'page_not_found' ) ) { header( "HTTP/1.0 404 Not Found" ); return false; // $this->pageNotFound(); } // If the incoming uri and the newly created uri do not match then we need to 301 redirect to the new. if ( Usu_Main::i()->getVar( 'request_compare_in' ) != Usu_Main::i()->getVar( 'request_compare_new' ) ) { $this->redirect( $new_url ); } } // end method You get the catalog/index.php?cPath=1958 and catalog/product_info.php?products_id=2800 with de standart text of "product/category not found" and a 404 error. Now in product_info.php just after require('application_top') look if you have an 404 error and require your custom 404 page, your_custom_404.php must have require('includes/application_top.php'); commented require('includes/application_top.php'); if (http_response_code() == 404) { require('your_custom_404.php'); return false; } I must to check if on index will work this too. Bests regards
  17. PiLLaO

    ULTIMATE Seo Urls 5 - by FWR Media

    For example, Don't exists and Custom Error Server Pages shows a 404 Not found, in this case USU5 not take part. But, if you try with a non real category or product These urls really are: These files exists on server and in these cases USU5 take part, so the Custom Error Server Pages don't show a 404 because file exists. USU5 try to find these products or categories and can't find them so uses a php header to put the 404 error and call a file on server, at this time catalog/application_top.php, catalog/template_top.php, catalog/template_bottom.php and catalog/application_bottom.php are loaded and any custom 404 page that I try to use get error because you are load before application_top.php and other. USU5 uses a 404 page that not have the same look that oscommerce <?php /** * * ULTIMATE Seo Urls 5 PRO ( version 1.1 ) * * * @package USU5_PRO * @license http://www.opensource.org/licenses/gpl-2.0.php GNU Public License * @link http://www.fwrmedia.co.uk * @copyright Copyright 2008-2009 FWR Media * @copyright Portions Copyright 2005 ( rewrite uri concept ) Bobby Easland * @author Robert Fisher, FWR Media, http://www.fwrmedia.co.uk * @lastdev $Author:: Rob $: Author of last commit * @lastmod $Date:: 2010-12-21 22:45:02 +0000 (Tue, 21 Dec 2010) $: Date of last commit * @version $Rev:: 196 $: Revision of last commit * @Id $Id:: notfound_404.php 196 2010-12-21 22:45:02Z Rob $: Full Details */ /** * Page not found html with 404 header * @package USU5_PRO * * @var array $text - array of text strings to be used in the html */ $text = array( 'title' => 'Page not found', 'text' => 'The page you were looking for could not be found. Please click the below link to return to ' . STORE_NAME . ' <p><a href="' . tep_href_link( FILENAME_DEFAULT ) . '" title="' . STORE_NAME . '">' . STORE_NAME . '</a></p><br />' ); header( "HTTP/1.0 404 Not Found" ); ?> <title>Page Not Found</title> <div style="padding: 3em; font-family: verdana; margin: 3em; border: 1px solid #e5e5e5;"> <div style="background-color: #2E8FCA; font-size: 12pt; font-weight: bold; padding: 0.5em; color: #00598E;"> <div style="float: right; color: #0073BA; font-weight: bold; font-size: 16pt; margin-top: -0.2em;">FWR MEDIA</div><?php echo $text['title']; ?></div> <div style="padding: 0.5em; font-size: 9pt; font-family: verdana;"><?php echo $text['text']; ?></div></div> </div> And in this file tep_href_link and STORE_NAME works because catalog/application_top.php are previous loaded. Sorry for my poor english, I hope I can explain correctly.
  18. PiLLaO

    ULTIMATE Seo Urls 5 - by FWR Media

    Thanks you so much, but I tried this in this morning, Get the same look that oscommerce not possible, I must to copy the html and If I make any change, the 404 will be obsolete
  19. PiLLaO

    ULTIMATE Seo Urls 5 - by FWR Media

    With Ultime Seo Urls be FWR, products and categories not found have the same issue, the server_error.php needs to reload application_top, template_top, etc... and get error. Another urls that not found, works correctly
  20. PiLLaO

    ULTIMATE Seo Urls 5 - by FWR Media

    Hola Rainer, I tried to make it, but I can't show header, footer and categories box...
  21. PiLLaO

    ULTIMATE Seo Urls 5 - by FWR Media

    This 404 page don't have a look like the website, that's why I want to use a custom page instead this notfound_404.php
  22. PiLLaO

    ULTIMATE Seo Urls 5 - by FWR Media

    Hi again, I'm still trying to use my 404 custom page with USU5. The problem is that all requires inside my custom page (application_top.php, template_top.php, template_bottom.php and application_bottom.php) give me error because are already declared, and if I comment this requires or use require_once the page don't load. Anyone have any idea how can make it works?. Best regards
  23. Yesterday I was thinking about this :)
  24. PiLLaO

    QTPro BS

    Hello, What's the function of save "products_stock_attributes" in "orders_products"? I can not find the use, but I think it will be there for something EDITED: the reason is "tep_remove_order" Best regards :)
  25. PiLLaO

    AJAX Attribute Manager support

    No, all seem to works correctly. Ok, but will be a good idea to update addon with this line commented? Thanks to both :)
×