Jump to content
thirty bees forum

musicmaster

Members
  • Posts

    675
  • Joined

  • Last visited

  • Days Won

    43

Posts posted by musicmaster

  1. I uploaded a new version of Prestools. Quite a lot of changes.

    @CassimMulti-feature should now work for Thirty Bees. You need to download both to download this version and the newest version of the paid-for software.

    @30knees"Proportionate tax for shipping and wrapping" should now work as in Thirty Bees.

    Other parts that had major revisions:

     - the repair part of integrity checks

     - the adding of images in product-edit

     - indexation

    The manual also got some updates.

    Don't forget to use ctrl-F5 on your PC after the update in order to reload ignoring the browser cache. Otherwise you might be running the new version with the old javascript file.

    • Like 1
  2. Once under Prestashop I built a custom validation routine for the address2 field of the customer registration form. It was quite simple:

    In classes/Address.php I gave address2 it own validation routine (in the original it uses isAddress:

     'address1'        => ['type' => self::TYPE_STRING, 'validate' => 'isAddress', 'required' => true, 'size' => 128],
      'address2'        => ['type' => self::TYPE_STRING, 'validate' => 'isAddress2', 'size' => 128],`

    address2() was then declared in classes/Validation.php.

     public static function isAddress2($address) 
     {  
       return empty($address) || preg_match(Tools::cleanNonUnicodeSupport('/^[^!<>?=+@{}_$%]+$/u'), $address);
     }

    However, this doesn't work with Thirty Bees. I get a javascript error as soon as I add some content in the address2 field. The strange thing is that it doesn't even make an ajax call. The error (in js/validate.js) I get looks so:

    address2.jpg.87aebeef60b4238bc90e04de1e2e1394.jpg

    What is going wrong here. And what can I do to have a custom validation?

  3. On 3/26/2023 at 11:40 PM, movieseals said:

    You probably caught it while it was renewing.  Just checked and everything is fine: https://www.whynopadlock.com/results/b6467bb6-d31e-4837-9104-5dc0cc4ca4b6

    The padl
    ock is working even when there was cart issues.

    Your SSL problems are still there. https://librairiezbookstore.com works but https://www.librairiezbookstore.com gives an error.

    Also when I am on the checkout page (https://librairiezbookstore.com/en/quick-order) and I open the browser console I see several errors.

     

  4. 2 hours ago, 30knees said:

    Hi @musicmaster,

    We started using Prestools to edit orders. For one order, I needed to edit the shipping costs. That worked fine. 

    However, the associated taxes weren't updated accordingly:

    image.thumb.png.6fe541aa3b0e044b1130c222af4a4b8d.png

    You'll see that the total tax and the shipping tax are wrong.

    Shipping 23,36 € x 19 % = 4,44 €

    Total 98,36 € x 19 % = 18,69 €

    Is this a limitation of the module or a bug or a user mistake?

    Thank you.

    Which program are you using? I don't recognize the page. This is not order-edit.php.

  5. I noticed that a lot of VAT numbers that are rejected are not really bad. Instead they are not correctly formatted. 

     - Many people enter use separators like a space or a dot. So "123 456 789" instead of "123456789".

     - The entry is case sensitive. Quite a few people enter lowercase where as far as I have seen always uppercase is required.

     - For some countries the country iso-code is part of the string. For others not. This goes often wrong.

    In some cases people don't notice the rejection and without noticing it pay the VAT. It would be good to have a popup when a VAT number is rejected.

    It would also be nice when the software provided automatic correction.

  6. What is the function of the triggercontroller?

    When I load a product page I see that a call is made to index.php?controller=trigger&ts=1677152722

    What is returned is {"status":"failed","error":"Forbidden"}

    When I look into the source code I see something about a scheduler but that doesn't make things much clearer. The line "ServiceLocator::getInstance()->getScheduler();" gives me nightmares about Symfony style complexity.

  7. Corrected

    I mentioned the likely problem in my page about updating the Panda theme

    The problem is that some themes use parts of the themeconfigurator module even while it is not active. However, inactive modules are not updated during the update process. The solution is to download a recent version of the themeconfigurator module or Thirty Bees and copy the newer version of the module in place of the old one.

    • Thanks 1
  8. 15 hours ago, Pedalman said:

    Well, I am pretty certain that there are lots of old db entries from modules etc we dont use for a long time. But I am just a merchant and think that I should therefore install a fresh installation and migrate shop data (only) to get rid of old entries.

    Sounds like you should consider my Copy_shopdata tool.

    https://www.prestashop.com/forums/topic/445453-copy-shopdata-script-for-upgrading-and-fixing-buggy-shops-by-copying-business-data-and-images/

  9. I recently posted a list of fixes for Panda so that it can run without problems with the latest PHP and TB versions.

    It would be nice when there was some kind of contact with SunnyToo so that such changes are absorbed in the version that they sell. I think Smile or Datakick should handle such contacts.

    • Like 2
  10. 2 hours ago, jn1 said:

    Solved. I had a strange .htaccess file in my prestool-directory.

    I have problems to get prestools running on TB 1.4 after an upgrade. I tried to install prestools again. But only will get

    403

    Forbidden

    You don't have permission to access this resource.

    The permissions for the prestools directory are 755 and the files have 644

    Any ideas

     

    Glad you solved it.

    .htaccess can indeed cause strange problems.

  11. I have a problem with the Attribute Wizard Pro module: it displays the prices excl. VAT.

    When I searched for the cause I found that AWP uses a flag with the name "displayPrice" to indicate whether products should be displayed with or without VAT. It appears that Thirty Bees has in js/tools.js a function with the name displayPrice() and that interferes with this variable. This function is only present in Thirty Bees - not in Prestashop. 

    Does anyone have a proven solution to solve this?

  12. 5 hours ago, tomek said:

    Sorry, I am a bit lost 😉
    When I create a new shop, the COOKIE_KEY and COOKIE_IV are different from the old one. When I change it to the old COOKIE_*, then I cannot login.

    I cannot change the COOKIE_* things before running the shop installation (but after copying the TB data to my ftp). Doing it afetr installation results in failure of login into a new shop.

    Fine. Keep your new keys. But then don't import customer tables from other shops.

  13. 40 minutes ago, tomek said:

    datakick, when I copy those to a new shop I cannot even login to it - it says something like that:

    The user does not exists or password is invalid

     

    The employee and the customer tables use the same encryption. So either you import them both from the old shop and use its Cookie and Rijndael keys or you create them both in the new shop.

×
×
  • Create New...