

Yabber
-
Posts
90 -
Joined
-
Last visited
-
Days Won
14
Content Type
Profiles
Forums
Gallery
Downloads
Articles
Store
Blogs
Posts posted by Yabber
-
-
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.
-
1
-
-
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 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
-
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.
-
Google Analytics is an application composed of millions of bugs showing only fake data. It can falsify data by up to 11000%.
Why use it? -
-
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
-
1
-
-
On github I saw that to smarty version 4.5.5 developer from prestashop added support for PHP 8.4
https://github.com/smarty-php/smarty/releases -
-
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} -
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. -
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>
-
I modified the module to make it work properly in multishop mode: https://github.com/thirtybees/tbhtmlblock/pull/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. -
@WayneB This module from Prestashop addons is not even worth 1 EUR. It only redirects from the product page to the contact form without sending any data about which product the customer is asking about.
Such a button in the product.tpl template can be made in 5 minutes for free. -
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.
-
Maybe you have some prestashop module installed that overrides AdminTaxRulesGroup controller?
-
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
-
Clean up the tb_guest and tb_connections database tables (data in these tables is unnecessary). These tables store millions of records and on cheap shared hosting (with many different limits) the SQL query is not able to execute.
-
@datakick By the way, I looked at the structure of several wordpress optimization plugins and all of them use this library for CSS and JS minification: https://github.com/matthiasmullie/minify
The advantage is that this library does not load any dependent libraries like mrclay/minify.
So maybe it is worth converting thirtybees module to this library?-
1
-
-
I did HTML minification tests using three different PHP libraries for HTML minification.
The server's TTFB time increased by up to 6 times.
Also, with dynamically generated HTML pages, this is a feature that brings no benefits.-
1
-
-
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.
-
-
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.-
1
-
tiktok
in English
Posted
https://addons.prestashop.com/en/promotions-gifts/85637-tiktok-for-business-social-commerce-module.html
Download and install module for prestashop 1.6.1.