Jump to content
thirty bees forum

Yabber

Trusted Members
  • Posts

    90
  • Joined

  • Last visited

  • Days Won

    14

Posts posted by Yabber

  1. Unfortunately, but in order to track google Ads retargeting, it is necessary to add a GTM tag in the store.

    And about GTM integration with this cookie module it is best to ask the developer of this module. I don't buy any ads from google and have no need to do such integration.

    • Thanks 1
  2. 8 hours ago, 30knees said:

    Do you use it with Google Tag Manager by any chance?

    For analytics and statistics, I don't use any google apps like GTM or GA4 in the store, because these apps consist of nothing but errors and are completely worthless.

    I have the store integrated with Matomo in server-side mode without running any JS scripts on the front-end and without saving any cookies. And in Matomo I have 100% reliable data.

  3. 3 hours ago, Raymond said:

    I also still have a trouble with a raleway woff font, which cannot be served due to cors issues. the other raleway font weights, which are woff2 btw, do work. Still could not understand and could not solve this...

    All modern browsers support the WOFF2 font format, also there is no need to load other font formats: https://caniuse.com/woff2

  4. Enter this email from google in: Preferences -> Store Contacts: Shop email

    By the way, the store should use the store domain email. Using some junk email from google is zero professionalism. The customer doesn't know from whom he gets this email, maybe from the store, or maybe from some hackers.

     

  5. 24 minutes ago, wakabayashi said:

    But now I am little confused about the php 8.4. Does it mean the smarty version of the core, doesn't work with it? Or are we also just talking about some deprecation warnings?

    I installed Smarty v.4.5.5 on my thirtybees test version and enabled PHP 8.4

    So far no critical error has occurred, but there are hundreds of deprecation warnings in the logs.

    But this solution adopted in Smarty actually heavily complicates the upgrade to PHP 8.4

    • Thanks 1
  6. Since the release of that horribly unsuccessful version 1.7, there has been a mass escape of stores from PrestaShop. On average, over 20 thousand stores are disappearing each month.
    I think that in a year no one will know what PrestaShop was.

    presta-1.png

    presta-2.png

  7. This should work properly only via the module:

        public function hookActionPDFInvoiceRender(array $params)
        {
            if (isset($params['order_invoice_list'])) {
                foreach ($params['order_invoice_list'] as $orderInvoice) {
                    if (Validate::isLoadedObject($orderInvoice)) {
                        if ($member = $this->yourValidateCustomerMethod((int) $orderInvoice->id_order)) {
                            $this->context->smarty->assign(
                                [
                                    'member' => $member
                                ]
                            );
                        }
                    }
                }
            }
        }

    And in PDF template:

    {if isset($member) && $member}
        <p>{l s='Member number:' pdf='true'} {$member}</p>
    {/if}

     

  8. PDF Invoice attachment to "order_conf" email is generated in the PaymentModule class.
    The data for generated PDF Invoice is retrieved using the $order->getInvoicesCollection() method
    i.e.:
    public function getInvoicesCollection()
    {
        $orderInvoices = new PrestaShopCollection('OrderInvoice');
        $orderInvoices->where('id_order', '=', $this->id);
        return $orderInvoices;
    }

    And in PrestaShopCollection('OrderInvoice') there is definitely no custom data added by you to the customer's account.
    In your module, you can add your own custom data via the displayPDFInvoice hook.

     

  9. Google is the biggest virus and cancer of the internet 🙂 It's best not to use any Google services.
    It's best to serve movies from your own server. Below is the code for a responsive video with meta data and poster.

    <div class="embed-responsive embed-responsive-16by9" itemscope="" itemprop="VideoObject" itemtype="https://schema.org/VideoObject">
        <meta itemprop="name" content="Your video name">
        <meta itemprop="description" content="Your video description.">
        <meta itemprop="uploadDate" content="2024-02-12T16:28:00+02:00">
        <meta itemprop="contentUrl" content="https://your-domain.com/img/cms/your-video.mp4">
        <meta itemprop="thumbnailUrl" content="https://your-domain.com/img/cms/video-poster.avif">
        <video width="800" height="450" class="embed-responsive-item" preload="none" controls="controls" poster="https://your-domain.com/img/cms/video-poster.avif">
            <source src="https://your-domain.com/img/cms/your-video.mp4" type="video/mp4">
        </video>
    </div>

     

  10. A proper implementation of the multi-shipping option would require a very serious rebuild of the store engine.
    In PrestaShop, they have not been able to implement this solution and fix the split-order option for over 5 years, which has a lot of bugs: https://github.com/PrestaShop/PrestaShop/issues/15491
    And this solution would require all shipping companies offering modules for PrestaShop to make their modules from scratch.
    So I don't think this solution will ever be implemented.

  11. 8 hours ago, Smile said:

    Really its not possible from BO 🫣?

    Meta class has a description field, but it is used as a meta description.

    There are two hooks in the price-drop.tpl template: displayPricesDropTop and displayPricesDropBelow.
    In "tbhtmlblock" module, you would need to add support for these hooks and use this module to enter these descriptions.
    By modifying this module, you could immediately add support for the following hooks:
    - displayNewProductsTop and displayNewProductsBelow,
    - displayBestSalesTop and displayBestSalesBelow (not in the template, you also need to add it in the theme template).

    By the way, this "tbhtmlblock" module is incorrectly constructed because it does not work in multishop mode and it should be properly fixed.

     

  12. The override mechanism does not work for front-office themes.

    You can do it this way:
    1. in the /themes/ directory, copy the /niara/ directory to, for example, /niara-mytheme/
    2. in the Preferences -> Themes: "Advanced settings" configuration, change the directory for the Niara theme to "niara-mytheme"
    After such a change, the Core Upader will not overwrite the files from your "niara-mytheme" directory.

    And the truncation of the product name in the cart is also performed in ajax-cart.js

     

    Screenshot_20250307_042344.png

    Screenshot_20250307_043436.png

    Screenshot_20250307_044514.png

  13. 15 hours ago, datakick said:

    This does not impact HTML code, just CSS and JS

    "tbminifier" module supports actionMinifyHtml hook and in theory the HTML code should be minified. However, for some reason it doesn't work. In Prestashop 1.7 and 8, the smartyOutputContent method of the FrontController class adds support for the actionOutputHTMLBefore hook. And modules that perform HTML minification using this hook work correctly.

  14. Check your tax configuration in Localization -> Tax Rules
    Maybe you have deleted tax for some provinces.
    Screenshot below shows the default tax configuration for Canada imported by thirtybees.

    Screenshot_20250219_072155.png

  15. In all themes for Prestashop (both free and paid) there are hundreds of inconsistencies with the requirements of WCAG 2.2 AA https://www.w3.org/TR/WCAG22/. Also on Prestashop there is not a single store that meets the requirements of the 2019/882 directive, i.e. the European Accessibility Act.
    Both themes included in thirtybees also do not meet the requirements of WCAG 2.2 AA.
    With this validator https://wave.webaim.org/ you can check your store pages.

    • Like 1
×
×
  • Create New...