Jump to content

Daresh

Members
  • Posts

    3,244
  • Joined

  • Last visited

  • Days Won

    44

Daresh last won the day on July 4

Daresh had the most liked content!

Profile Information

  • Location
    Poland
  • First Name
    Dariusz
  • Last Name
    Tryba
  • Activity
    Freelancer

Recent Profile Visitors

13,848,176 profile views

Daresh's Achievements

  1. Warto sprawdzić czy nie ma jakichś zmian w plikach Presty. Możesz użyć poniższego skryptu, wrzucić go do folderu admina i otworzyć w przeglądarce. <?php if (!defined('_PS_ADMIN_DIR_')) define('_PS_ADMIN_DIR_', getcwd()); include(_PS_ADMIN_DIR_ . '/../config/config.inc.php'); $c = new Checker(); echo '<pre>'; $c->displayAjaxCheckFiles(); class Checker { public function displayAjaxCheckFiles() { $this->file_list = array('missing' => array(), 'updated' => array()); $xml = @simplexml_load_file(_PS_API_URL_ . '/xml/md5/' . _PS_VERSION_ . '.xml'); if (!$xml || !isset($xml->ps_root_dir[0])) { die(var_export(($this->file_list))); } $this->getListOfUpdatedFiles($xml->ps_root_dir[0]); die(var_export($this->file_list)); } public function getListOfUpdatedFiles(SimpleXMLElement $dir, $path = '') { $exclude_regexp = '(install(-dev|-new)?|themes|tools|cache|docs|download|img|localization|log|mails|translations|upload|modules|override/(:?.*)index.php$)'; $admin_dir = basename(_PS_ADMIN_DIR_); foreach ($dir->md5file as $file) { $filename = preg_replace('#^admin/#', $admin_dir . '/', $path . $file['name']); if (preg_match('#^' . $exclude_regexp . '#', $filename)) { continue; } if (!file_exists(_PS_ROOT_DIR_ . '/' . $filename)) { $this->file_list['missing'][] = $filename; } else { $md5_local = md5_file(_PS_ROOT_DIR_ . '/' . $filename); if ($md5_local != (string) $file) { $this->file_list['updated'][] = $filename; } } } foreach ($dir->dir as $subdir) { $this->getListOfUpdatedFiles($subdir, $path . $subdir['name'] . '/'); } } }
  2. It should be done using some additional module that allows to be automated with a CRON task. Nobody updates stock manually, as it can change very often. I do modules like this for my customers on a daily basis. Very often there is some additional logic that needs to be taken into account. For example applying a margin on a price, setting visibility, settings "allow out of stock" option and so on... Sometimes the CSV file is publicly available, sometimes some credentials are needed to download it. There are many many cases here, so I prefer a dedicated approach.
  3. Instead of Captcha try Coludflare Turnstile. It appears to be more effective in blocking spam. A free module is available on GitHub.
  4. Hi! We have one customer running PS 1.7.6.8 on mySQL 8.4. Everything is working fine there.
  5. It shouldn't. Maybe it is a theme issue, something checks that field
  6. This is not the right table, it's an old column, always set to 0, check the _stock_available table for the actual stock data.
  7. The minimum is to apply the patch to the files of the module, your version seems to be very close to the one mentioned in the report: https://security.friendsofpresta.org/modules/2023/01/05/appagebuilder.html#patch
  8. The procedure that I often use is: 1. turn od debug profiling 2. see wchich modules are in use on various pages of the shop 3. optimize it by adding exceptions in Back Office It can help a lot, cutting off unused modules by half from the areas that they have nothing to do anyway.
  9. How exactly you change the link to "collections/patio-lawn-garden/benches"? As far as I remember, by default there is no such category hierarchy in the links.
  10. Did you delete the payment data from Stripe module's database tables?
  11. Is it live to see? The classic theme should not behave like this as far as I remember...
  12. Exactly! So the question is does this order got sent to Stripe and it will overwrite it all the time, or can it be removed on the store level (from some Stripe database tables). Probably some custom module would be required here, one that knows what Stripe does and is able to remove some information from it.
  13. It's not easy because in general, payment modules may have their own tables in the database, storing additional data related to orders. So changing a payment method to another one would require knowing it precisely and what it requires. Maybe that's why there is no such functionality in PrestaShop. Even if you change the payment related columns in the database (prefix_orders table), the Stripe module that you have may keep some data related to that order. So to change the payment method in a clean way, it would be recommended to also remove everything related to that order from Stripe's tables.
  14. It does not look like it's coming from the default theme, must be some additional script.
×
×
  • Create New...