Jump to content
thirty bees forum

selwynorren

Members
  • Posts

    46
  • Joined

  • Last visited

Posts posted by selwynorren

  1. On 4/16/2024 at 4:27 PM, Kashir2000 said:

    It's rather complicated for first time. I spent some time writing a module for GA4, Analytics and Google ADs tracking, as well as Consent gathering module.
    So if you consider ConsentMode v2, proper sending of events,  proper event description and order (this includes edit of php/templates to add variables etc.).
    Also, don't forget Offline measurement protocol (server-server reporting) to track data with utmost accuracy.

    Then you have lots of work. Few days of analyzing how it works and get to know how to set it up properly - because without proper CMv2 it will not track your data. Don't think anyone will be able to explain it in short.

    > I can not use the Analytics module at all neither can we use the gapi module either. 
    Why you can't use module?

    So the default Analytics module does not acknowledge the GA4 codes at all. If I use that module I get no traffic inbound to analytics at all.
    "the API module just shows an error:"
    Cannot retrieve test results or there is no data in your account, yet which is not true as there is most definitely data in the account

  2. Yup so I double checked again today, no opcache installed at all, and I uninstalled data mining for statistics module and then re-installed it, now the back office is calling for this module to be updated. In the back office its showing version 2.0.3 however the files itself is version 2.0.4. So clearly the modules are updating, but its not reading the correct module version of whats installed.

    I am not 100% sure how it works, however I had a look on the database in the modules table and i see statsdata module showing 2.0.4 which is indeed the latest version. So in the database I manually changed it to 2.0.3 and then ran the module update again, never changed it in the database at all and module still shows it needs to be updated, however files reflect the correct version

    I then went and changed the version number in the statsdata.php to an old version number and then ran the module update again, the version number was updated again, yet the back-office shows the incorrect version number.

    Now here is where it got very interesting. I deleted everything inside that module folder except the stasdata.php, ran the module update, it re-downloaded everything and then for the first time showed 2.0.4 in the back office I also looked in the database and it updated there correctly as well. So this means there is something in the module folder that was not updating. So I looked at the next module giving me the same issues, which was the html block module. so I looked at tbhtmlblock.php and it showed the correct version number, however the config.xml file showed what my back office was showing. I delete that file, ran the module update and voila, it updates perfectly.

    So somehow the back office was reading this xml file but when updating it was not updating this file at all. No idea why, however after deleting the file, running the update, it worked perfectly.

    As a final test I changed the config.xml module version back to an old number, ran the module update and we are back to the first problem. So at the core of it all, this config.xml file is not being updated at all. his is causing all the headaches we are experiencing

    I hope this helps someone struggling with the issue. You are not going mad, your system is kinda broken, but finally figured out a short term fix. We just need to figure out why this is not updating the xml file

  3. Hi all,

    So I am lost, how do I setup conversion tracking in GA4? I need my analytics to show my sales conversions, yet at the moment it tracks nothing despite sales being made. I can not use the Analytics module at all neither can we use the gapi module either.

    So I have the tracking in the custom code section, and I am able to track quite successfully the amount of sales made, however I am unsure of how to track the sales values. Old Analytics method used to be so easy, GA4 and my brain is fried.

    I would greatly appreciate any advice

  4. @datakick Please help out again. I ordered my renewal but I made a mistake and it is about to bill me for 12 months in advance, however there is not way for me to cancel my order and fix it. Are you able to clear it form your side?

  5. Hey Guys,

    So for years I always supported Thirtybees with a small monthly contribution. Now after the new change and the new support system, I am notified I need to terminate my previous support with Paypal. If I click the link I get the following error message...

     There was an error communicating with PayPal to retrieve information about the Subscription.

    I cannot renew my support at all. Its been months now. Can anyone please help me here?

  6. 30 minutes ago, the.rampage.rado said:

    Last thing I can think of is clicking on the double arrows. Does it clear this page's cache and does it show correct information afterwards.

    It's very hard to replicate such edge cases as this is probably some server related issue as many users are already on 1.5 and post 1.5 and they don't report such issues as of now.

    Hmm Which double arrows do you mean? This cannot be a server issue as I literally downgraded to 1.4.0 on that exact same installation and it works, yet the moment I upgraded again to 1.5.0 it stops working. Same as 1.5.1

    I have found other cases as well, however I reported that on GitHub and created a solution which I just need @Traumflug to test if its viable.

  7. 5 minutes ago, selwynorren said:

    Just a quick update on this issue. I downgraded my store to TB 1.4.0 (Still Same server and same php8.1 settings) and now the module reflect the correct updates. This must mean there is an issue on the 1.5.1 installation?

    I will try upgrading it to 1.5.0 and see if it still replicates itself

    1.5.0 does exactly the same

  8. On 12/23/2023 at 5:27 PM, selwynorren said:

    Just to also say, I had initially install the 7.4 version, but theme deleted the entire catalog and installed the 8.1 version

    Just a quick update on this issue. I downgraded my store to TB 1.4.0 (Still Same server and same php8.1 settings) and now the module reflect the correct updates. This must mean there is an issue on the 1.5.1 installation?

    I will try upgrading it to 1.5.0 and see if it still replicates itself

  9. Just now, selwynorren said:

    Howdy, Yeah I have tried in Firefox (Good ol Faithful), chrome and Brave and I have teh same results in all three. So that means its definitely not a caching issue, but for sure either server configuration, or small bud.

    I have the same version installed on a different server, and that doe snot use php 8.1 and I don't have the issue at all

    Just to also say, I had initially install the 7.4 version, but theme deleted the entire catalog and installed the 8.1 version

  10. 13 minutes ago, the.rampage.rado said:

    And no bueno?

    Sometimes this happens and it's cache related issue, either the thirtybees cache is not working correctly or the browser cache is fuzzy...

    Yeah that was my initial thought, which as I stated I cleared cache, history cookies and everything. The update works, but teh back office does not detect it, so it just keeps saying to update the module

  11. 6 minutes ago, selwynorren said:

    Hi All,

    So I have an interesting one. Brand new install (Downloaded this morning and installed v1.5.1 for PHP 8.1. It shows, BeesBlog, CoreUpdater and Block Newsletter need to be updated. So do the normal run of updating them, however the back office still shows it needs to be updated. When I look at the file in the modules folder. It seems it has been updated. Just back office is not recognizing it.

    Is there perhaps a specific PHP module that I may be missing?

    Just to confirm. It defiantly does execute the update of the module. Example coreupdater.php now show 1.6.6 instead of the reported 1.6.5. If it updated any other files I have no idea.

    There is also no error_log generated and if I activate debugging, no errors are produced either.
     

    I have also cleared browser history and all cache and cookies aswell

  12. Hi All,

    So I have an interesting one. Brand new install (Downloaded this morning and installed v1.5.1 for PHP 8.1. It shows, BeesBlog, CoreUpdater and Block Newsletter need to be updated. So do the normal run of updating them, however the back office still shows it needs to be updated. When I look at the file in the modules folder. It seems it has been updated. Just back office is not recognizing it.

    Is there perhaps a specific PHP module that I may be missing?

  13. I have teh recaptcha module installed and it seems to be working very well.

    However, every now and then I still get spam emails coming through, so I have to assume it's someone manually filling out the form, however it seems most unlikely. I have no idea at all how they are still getting through.

    I saw a post from nemoPS that prevents certain emails and message contents from being used, however as the recaptcha already has an override, I have no idea how to join these successfully. I am about 90% there, I can either get it that is gives the relevant error message, however then a legitimate form does not go through, or I still get the warning, however it still sends the email.

    Can someone please review the code and help fixing the stupid blunders I am making. OOP PHP simply just escapes me.

    <?php
    /**
     * Copyright (C) 2017-2018 thirty bees
     *
     * NOTICE OF LICENSE
     *
     * This source file is subject to the Academic Free License (AFL 3.0)
     * that is bundled with this package in the file LICENSE.md.
     * It is also available through the world-wide-web at this URL:
     * http://opensource.org/licenses/afl-3.0.php
     * If you did not receive a copy of the license and are unable to
     * obtain it through the world-wide-web, please send an email
     * to license@thirtybees.com so we can send you a copy immediately.
     *
     * @author    thirty bees <modules@thirtybees.com>
     * @copyright 2017-2018 thirty bees
     * @license   Academic Free License (AFL 3.0)
     */
    class ContactController extends ContactControllerCore
    {
        /*
        * module: nocaptcharecaptcha
        * date: 2022-12-15 09:48:15
        * version: 1.1.2
        */
        public function postProcess()
        {
            if (!Module::isEnabled('nocaptcharecaptcha')
                || !@filemtime(_PS_MODULE_DIR_.'nocaptcharecaptcha/nocaptcharecaptcha.php')
            ) {
                return parent::postProcess();
            }
            require_once _PS_MODULE_DIR_.'nocaptcharecaptcha/nocaptcharecaptcha.php';
            $recaptcha = new NoCaptchaRecaptcha();
            if (Tools::isSubmit('submitMessage') && $recaptcha->needsCaptcha('contact', trim(Tools::getValue('from')))) {
                $recaptchalib = new NoCaptchaRecaptchaModule\RecaptchaLib(Configuration::get('NCRC_PRIVATE_KEY'));
                $resp = $recaptchalib->verifyResponse(Tools::getRemoteAddr(), Tools::getValue('g-recaptcha-response'));
                if ($resp == null || !($resp->success)) {
                    if ($resp->error_codes[0] === 'invalid-input-secret') {
                        $this->errors[] = Tools::displayError(
                            Translate::getModuleTranslation(
                                'nocaptcharecaptcha',
                                'The reCAPTCHA secret key is invalid. Please contact the site administrator.',
                                'configure'
                            )
                        );
                    } elseif ($resp->error_codes[0] === 'google-no-contact') {
                        if (!Configuration::get('NCRC_GOOGLEIGNORE')) {
                            $this->errors[] = Tools::displayError(
                                Translate::getModuleTranslation(
                                    'nocaptcharecaptcha',
                                    'Unable to connect to Google in order to verify the captcha. Please check your server settings or contact your hosting provider.',
                                    'configure'
                                )
                            );
                        }
                    } else {
                        $this->errors[] = Tools::displayError(
                            Translate::getModuleTranslation(
                                'nocaptcharecaptcha',
                                'Your captcha was wrong. Please try again.',
                                'configure'
                            )
                        );
                    }
                    $this->context->smarty->assign('authentification_error', $this->errors);
                    return;
                }
            }
            // return parent::postProcess();
    
            if(Tools::isSubmit('submitMessage')) {
     
                $message = Tools::getValue('message');
                $from = Tools::getValue('from');
     
                $banned_in_email = ['.ru', 'ericjonesmyemail@gmail.com', '.vn'];
                $banned_content = ['email marketing', 'AIWriter'];
     
                foreach ($banned_in_email as $string) {
                    if(strstr($from, $string))
                        $this->errors[] = Tools::displayError('This email address is not allowed');
                    return;
                }
     
                foreach ($banned_content as $string) {
                    if(strstr($message, $string))
                        $this->errors[] = Tools::displayError('Invalid Content');
                    return;
                }
            }
            parent::postProcess();
        }
    }

    I would really appreciate any help or advice

  14. This is awesome, so for total number of uses I should just set it to a crazy high number for now? is there not an option where we can set it to 0 for example which means there wont be a limit at all (Or even -1 which could translate to no limit)

     

    Even the date validity, how would one set that to ensure it remain valid no matter when they sign up

     

    P.S Thanks so much for the quick feedback

  15. Hey Datakick, thanks so much

    Just a quick other question related to newsletter signups. The system works, however I noticed it does not generate a voucher code in the cart rules at all, Is this how its supposed to work? Do I have to manually specify the cart rule before hand? however would I then know how many to make available as I wont be able to predict how many signups I would get? or can this limit be set to infinite numbers? How would I be able to restrict it to a specific user, otherwise it could be used over and over again by the same customer

  16. Hey Datakick,

    Yeah a bot prevention would be so much better as you say the confirmation email is always sent and if they report this as spam and it happens often enough, then domain can get banned or have limitations placed on it. This for being innocent and not sending spam - lol.

    I see there is a badbot module available in the marketplace, would this be helpful?

  17. Hi All,\\Does anyone have some advice on how to minimise the amount of spam newletter subscriptions? I have activated that each subscriber must activate the subscription, however some spammers seem to get around this. There is no recaptcha capability for it and so I see thousands of signups over a 30 day period.

    Gratefully only the subscribers that have confirmed their subscriptions are active, however it also still means thousands of emails go out and then get listed as spam. This is frustrating.

    I would really appreciate some advise here

  18. yeah I found that if I right click, select save as it fails and in chrome on a resume it downloads. The hard part is I am the hosting provider ha ha ha. While we were using 1.3 it worked and then just before going love I upgraded to 1.4 which is why I thought it could be an application issue.

    Any ideas to point me where I can possibly look on the server (I have also used the flag to disable mod_security) but I still have the issue. I would really appreciate any direction for where to start looking

×
×
  • Create New...