Jump to content

ruden

Members
  • Content count

    74
  • Joined

  • Last visited

Everything posted by ruden

  1. var_dump($_POST['formid'], $sessiontoken); ???
  2. 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.
  3. XML Sitemap Generator For all version osCommerce create an XML sitemap for the products, categories and manufacturers, that can be submitted to Google, Bing. Install --------- Unzip the archive and upload the files on server. In admin/includes/functions/general.php Find function tep_redirect($url) { global $logger; Add after // start add-on xml sitemap generator global $current_page; if (in_array($current_page, ['categories.php', 'manufacturers.php'])) { if (file_exists(DIR_FS_CATALOG . 'sitemap-index.xml')) { @unlink(DIR_FS_CATALOG . 'sitemap-index.xml'); } } // end add-on xml sitemap generator Using -------- Sign in to Google Search Console or Bing Webmaster Tools and add sitemap URL http://example.com/sitemap.php
  4. ruden

    Hook System

    Hook System Only 2.3.x.x version osCommerce Some addons use a hook system, use for compatibility. This is commit @haraldpdl Hooks #254 https://github.com/osCommerce/oscommerce2/pull/254/files Install ------- In /includes/application_top.php Add code to the bottom of the file, before the last closing ?> require(DIR_FS_CATALOG . 'includes/classes/hooks.php'); $OSCOM_Hooks = new hooks('shop'); In /admin/includes/application_top.php Add code to the bottom of the file, before the last closing ?> require(DIR_FS_CATALOG . 'includes/classes/hooks.php'); $OSCOM_Hooks = new hooks('admin');
  5. ruden

    Google reCAPTCHA v3

    Include class hooks two times remove duplicate in /includes/application_top.php and /admin/includes/application_top.php require(DIR_FS_CATALOG . 'includes/classes/hooks.php');
  6. ruden

    Google reCAPTCHA v3

    I find it difficult to answer. View error logs.
  7. ruden

    Google reCAPTCHA v3

    @Tiff13 Installed Hook System? https://apps.oscommerce.com/p9Yyp&hook-system
  8. ruden

    Google reCAPTCHA v3

    Check for errors Open the console in a browser F12 and check for errors in the php logs on the server.
  9. ruden

    Google reCAPTCHA v3

    Add-on updated Add support Hook System ⚠️ This add-on use Hook System, for versions below < 2.3.5 install Hook System https://apps.oscommerce.com/p9Yyp&hook-system Create directory includes/hooks/shop/pwa_account Copy file includes/hooks/shop/create_account/Recaptcha3.php in includes/hooks/shop/pwa_account In file includes/hooks/shop/pwa_account/Recaptcha3.php replace $this->form_name = basename(dirname(__FILE__)); $this->form_name = 'create_account';
  10. ruden

    if this bundle then that help

    $bundleContents = ''; $bundle_query = tep_db_query("SELECT pb.subproduct_id, pb.subproduct_qty, p.products_id, pd.products_name, pd.language_id FROM products p LEFT JOIN products_bundles pb ON (pb.bundle_id=p.products_id) LEFT JOIN products_description pd ON (pd.products_id=pb.subproduct_id) WHERE p.products_model = '" . $order->products[$i]['model'] . "' AND pd.language_id = '1'"); while ($bundle_info = tep_db_fetch_array($bundle_query)) { $bundleContents .= '<br /><em style="font-size:12px;">&nbsp;&nbsp;' . $bundle_info['subproduct_qty'] . ' x ' . $bundle_info['products_name'] . '</em>'; }
  11. still need to add check extension mysqlnd function tep_db_fetch_all($db_query) { // check if "mysqlnd" driver is used if (extension_loaded('mysqlnd') && function_exists('mysqli_fetch_all')) { return mysqli_fetch_all($db_query, MYSQLI_ASSOC); } else { $data = []; while ($row = tep_db_fetch_array($db_query)) { $data[] = $row; } return $data; } }
  12. ruden

    XML Sitemap Generator

    add fix addon updated
  13. ruden

    Upgrade from 2.3.5 to Phoenix??

    No and never will be "new system" this v2.4 and v.3 they are "buried" Phoenix is a bootstrap design wrapper, for my yes, compatible core level
  14. ruden

    XML Sitemap Generator

    If run sitemap.php, then a new xml files will be generated
  15. ruden

    XML Sitemap Generator

    Why should categories be opened first, xml producer, and then sitemap-index.xml Cannot open categories or manufacturer xml without running sitemap.php Google will always run the file sitemap.php and read sitemap-index.xml If you specify sitemap-index.xml in the Google search console, it will not work.
  16. ruden

    XML Sitemap Generator

    Yes, I will do so, for compatibility v2.3.x addon is added https://apps.oscommerce.com/p9Yyp&hook-system Initially, it worked, but if a lot of products all terribly slowed down. A link will be added to generate the map in dashboard (module security check)
  17. ruden

    Product price chage module for 2.3.4.1

    @eagleg tax not used? find $insert = 'insert into temp_rates values '; foreach ($tax_classes as $id => $data) { $insert .= '(' . $id . ',' . $tax_classes[$id]['tax_rate'] . '),'; } replace with if (!empty($tax_classes)) { $insert = 'insert into temp_rates values '; foreach ($tax_classes as $id => $data) { $insert .= '(' . $id . ',' . $tax_classes[$id]['tax_rate'] . '),'; } }
  18. ruden

    Product price chage module for 2.3.4.1

    https://apps.oscommerce.com/XpKWd&quick-update-bs this addon?
  19. Backup/Restore Big Database For all version osCommerce ⚠️ > Warning: Create an backup database in your hosting control panel and create backup database in your store admin panel. Features -------- + significantly reduces file size .sql + significantly increases speed Backup/Restore + bug fixed in text input for entering command into console Install ------- Rename file /admin/backup.php to /admin/backup.php_bak Unzip the archive and upload the file on server. Testing ------- Create and restore a backup database in your store admin panel. Check recent orders, products to match data. Crash ----- Delete file /admin/backup.php Rename file /admin/backup.php_bak to /admin/backup.php Restore last copy of the database in admin tool. Or restore a backup database in your hosting control panel
  20. ruden

    Google reCAPTCHA v3

    and replace protected function -> function
  21. ruden

    Google reCAPTCHA v3

    For which page do you want to install recaptcha?
  22. ruden

    Google reCAPTCHA v3

    For login.php it doesn't make sense add recaptcha recaptcha works for pages contact_us.php and create_account.php
×