Jump to content
thirty bees forum

datakick

Administrators
  • Posts

    2,894
  • Joined

  • Last visited

  • Days Won

    432

Community Answers

  1. datakick's post in Is there a way to turn off order confirmation emails for a certain type of payment method? was marked as the answer   
    What you mean by "maybe by email address" ?
    If the importer order has some sort of 'amazon' email address, you could use my conseqs module to block sending emails. You can use Before email is sent trigger + conditions + Prevent sending email action. Condition can be based on email type + recipient email address
  2. datakick's post in a lot of php encryption and blowfish encryption warnings was marked as the answer   
    Yes, that is the problem.
    You have (for some reason) set your store to use PHP Encryption, but no encryption key is generated. No idea how this happened. 
    Because no encryption key exists, thirty bees will raise the first warning: "PHP Encryption can't be used because _PHP_ENCRYPTION_KEY_ constant is not defined."
    And fallback to Blowfish encryption. Blowfish encryption is deprecated, and raises the second warning.
    The fix is very simple.
    Go to Performance tab switch encryption to Blowfish. Save switch encryption to PHP Encryption Save That's it. When you change encryption from Blowfish to PHP Encryption, system will generate new encryption key if none exists.
  3. datakick's post in Multistore - change navbar-header color for specific store was marked as the answer   
    I've just pushed this to bleeding edge.
    Your body tag will now have class depending on selected context, for example mulstistore-context-all, multistore-context-group-1 or multistore-context-shop-2
    You can add custom css into <admin_dir>/themes/default/css/overrides.css
    body.multistore-context-shop-3 .bootstrap #header_infos { background-color: lightgreen; }  
  4. datakick's post in can't access shops (to create multiple shops) as superadmin was marked as the answer   
    This controller is available only after you enable Multistore feature in Preferences > General
  5. datakick's post in Can't import localization pack, cURL error 60 was marked as the answer   
    Your thirty bees store has "trust store" file that contains root certificates of all trusted certification authorities. This file is outdated in 1.3.0, and does not contain new root certificate that Lets Encrypt uses nowadays. Which causes your store to not trust any servers that are using certificates issued by Let's Encrypt. Including thirty bees api server.
    To fix this, all you need to do is update to latest thirty bees 1.4.0.
    If you can't do that, then you will have to manually download the truststore file: https://raw.githubusercontent.com/thirtybees/thirtybees/main/tools/cacert.pem
    and save it as /tools/cacert.pem inside your thirty bees installation. There should already be this file, you have to overwrite it.
  6. datakick's post in "New client" doesn't recognise existing clients - bug? was marked as the answer   
    Columns New client in order list is not stored anywhere. It just shows if the order is the first order created by this customer id. Every guest account has its own customer id, so it will indeed show true.
    You can merge customer accounts with the same email addresses if you wish.
  7. datakick's post in [TB1.5] JSON Module configuration error was marked as the answer   
    Module version 1.0.4 was not php8 compatible. Try new version 1.0.5
  8. datakick's post in [TB 1.5] nocaptcharecaptcha - cannot save settings was marked as the answer   
    This module is not PHP8 ready. 
    https://github.com/thirtybees/nocaptcharecaptcha/issues/12
  9. datakick's post in Homslider problem after latest update was marked as the answer   
    niara theme (and probably others) has its own override for homeslider template that tries to pick images from /modules/homeslider/images/ directory.
    You need to update this override template in niara theme:
    /themes/niara/modules/homeslider/homeslider.tpl
    changes are described here:
    https://github.com/thirtybees/niara/commit/15e5338e628fca184a339d6cde66c961bfeb8169
    or simply download this version and use it to replace the one in your theme: https://raw.githubusercontent.com/thirtybees/niara/15e5338e628fca184a339d6cde66c961bfeb8169/modules/homeslider/homeslider.tpl
     
     
  10. datakick's post in First login fails - Backoffice wrong redirect? was marked as the answer   
    Yep, this is a bug. Fixed in bleeding edge
  11. datakick's post in Shipping, delivery time bug? was marked as the answer   
    What tb version? I believe this was fixed already https://github.com/thirtybees/niara/commit/f56c79cd8566f349dec81c40ce9c8cd2f5a41864
  12. datakick's post in PayPal module undefined was marked as the answer   
    Thanks for reporting this. Actually, this particular issue is already fixed, and will be part of the next version of paypal module, when released
  13. datakick's post in PayPal guest checkout broken? was marked as the answer   
    We have investigated together with @Coachonko, and there indeed was a bug in PayPalPlus submit controller. Fixed by commit https://github.com/thirtybees/paypal/commit/cd4f8a5ff3062539d5ca013abf0158ffe467e5eb. Will be part of next module release
  14. datakick's post in SMTP permission denied #13 was marked as the answer   
    it can be... a lot if things. I dont think this is application issue, looks like env misconfiguration problem. For example:
    https://hpduy17.wordpress.com/2019/01/29/deal-with-swift-transportexception-when-sending-gmail-from-laravel-application/
  15. datakick's post in after making the purchase, the cart appears as abandoned was marked as the answer   
    There must be some error / exception during order validation process. Look into server error logs and inside /logs directory in thirty bees itself.
  16. datakick's post in Hi where's the place to decode the encrypted Server 500 error messages again? was marked as the answer   
    Advanced Parameters > Logs
  17. datakick's post in "You have an error in your SQL syntax" when trying to enable Features was marked as the answer   
    Fixed in latest bleeding edge, thanks for reporting this issue.
    https://github.com/thirtybees/thirtybees/commit/c024695e15c5a7f0f8c3b6fdf7859d150a577154
     
  18. datakick's post in Get page titles with smarty was marked as the answer   
    It's doable, but not very friendly. Look what static methods are available in Meta class. You could you getMetaByPage, or getCategoryMetas or getCmsMetas
    {assign var='contactMeta' value=Meta::getMetaByPage('contact', $lang_id)} {assign var='categoryMeta' value=Meta::getCategoryMetas(4, $lang_id, 'category')} {assign var='cmsMeta' value=Meta::getCmsMetas(9, $lang_id, 'cms')} <pre> contact title = {$contactMeta.title} category title = {$categoryMeta.meta_title} cms title = {$cmsMeta.meta_title} </pre>  
  19. datakick's post in Manual zip-code to zone mapping with override was marked as the answer   
    Something like this:
    <?php class Address extends AddressCore { // New function to get the postcode from the given address public static function getPostcodeByAddress($idAddress) { $idAddress = (int)$idAddress; if (!$idAddress) { return null; } return Db::getInstance(_PS_USE_SQL_SLAVE_)->getValue( (new DbQuery()) ->select('postcode') ->from('address', 'a') ->where('a.`id_address` = ' . $idAddress) ); } public static function getZoneById($idAddress) { // CUSTOMIZATION // Use the new function $postcode = static::getPostcodeByAddress($idAddress); // Minor islands and Venice if (in_array($postcode, array( "04027", // Ponza "80073", // Capri "09014", // Carloforte "98000", // Eolie, Salina "91023", // Favignana "58012", // Giglio "80070", // Ischia "07024", // La Maddalena "92010", // Lampedusa, Linosa "98055", // Lipari "91017", // Pantelleria "80079", // Procida "71040", // Tremiti "90010", // Ustica // Venezia begin "30121", "30122", "30123", "30124", "30125", "30126", "30127", "30128", "30129", "30130", "30131", "30132", "30133", "30134", "30135", "30136", "30137", "30138", "30139", "30140", "30141", "30142", "30143", "30144", "30145", "30146", "30147", "30148", "30149", "30150", "30151", "30152", "30153", "30154", "30155", "30156", "30157", "30158", "30159", "30160", "30161", "30162", "30163", "30164", "30165", "30166", "30167", "30168", "30169", "30170", "30171", "30172", "30173", "30174", "30175", "30176", // Venezia end "57031", "57032", "57033", "57036", "57037", "57038", "57039" // Elba ))) { return 10; // ID of the zone for these zip codes } // Livigno is even more expensive if (in_array($postcode, array("23030"))) { // Array because maybe more zip codes will be added in the future return 11; // ID of the zone for these zip codes } // fallback to original implementation return parent::getZoneById($idAddress); } }  
  20. datakick's post in HTMLPurifier's purpose was marked as the answer   
    Thankfully, this being open source, you can easily edit htmlpurifier configuration and adjust it to your needs. See Tools::purifyHTML
  21. datakick's post in product pages suddenly inaccessible 500 error was marked as the answer   
    This problem is caused by new column active in table 'tb_category_shop'. This column exits in bleeding edge only, so if you are back on 1.3.0 all you need to do is drop it:
    ALTER TABLE tbp5_category_shop DROP active; But obviously, this module will no longer work on bleeding edge (or future versions of thirty bees). As @wakabayashi wrote, the module author did not specify from which table active column should come -- that's not really their fault, as at the time they wrote the module only one active column existed in context of this query. 
    If you want to keep using this module, you will have to modify it, and fully specify table name / alias.
  22. datakick's post in Make new return request send an email was marked as the answer   
    This is not build in functionality.
    You can use my conseqs module to create a rule to send email when new recort 'Order Return' is created.
  23. datakick's post in Change terms of service on checkout to link not pop up was marked as the answer   
    This is unnecessary strict server settings. You should reconfigure your server to allow SAMEORIGIN for x-frame-options header. Your server currently returns 
    X-Frame-Options => DENY 
     
     
     
     
     
     
  24. datakick's post in One-off Items was marked as the answer   
    No, this is not supported. You can disable ordering out-of-stock items, but they are still displayed in categories.
    You can either
    edit your theme, and simply omit out-of-stock items from listing periodically run SQL update query to hide products that are out of stock. Something like this might work (please test) UPDATE tb_product_shop SET visibility = 'none' WHERE (SELECT SUM(quantity) FROM tb_stock_available sa WHERE sa.id_product = tb_product_shop.id_product) <= 0;  
  25. datakick's post in product features not displayed after 1.3? was marked as the answer   
    There you go.
    There you go. Looks like you have copied AdminProductsController.php to override/controllers/admin directory sometimes in the past, modified it slightly, and forgot about it.
    I suggest you delete this file.
    You should also investigate what it was that you modified, but I don't see many changes in the file.
×
×
  • Create New...