20 comments found.
The module is compatible with the progressive discount management system provided by the implementation of the European Omnibus law in Italian regulations, which states that ‘In case of progressive discounts, the price to be indicated is the price without any reduction before the first discount applied.’ In practice, in case of progressive discounts, such as sales or Black Friday, where the discount varies from day to day, the module should display the price without any reduction before the first discount applied during the campaign.
Currently not, the module displays price before the current reduction, not the first reduction. But we are considering adding this option in the future.
Thanks for your reply; does the module offers the option to hide some previous price? In this way I can hide the price reductions in case of progressive sales, managing manually.
Sorry, no option like this, it would be hard to manipulate the price history this way.
Does it support multiple languages?
Yes it does.
Dzień dobry, jak dokładnie wygląda hook aby umieścić najniższą cenę w innym miejscu na podstronie produktu? W dokumentacji nic o tym nie ma.
Ok już znalazłem na jakimś forum {hook h=’displayProductPriceBlock’ product=$product type=”after_price”} Tylko teraz on się dodaje z identyczną klasą jak ten poprzedni. Da się to jakoś rozróżnić żeby w CSS jeden schować albo w ogóle go wyłączyć?
{hook h=’displayProductPriceBlock’ product=$product type=”after_price”}
To trzeba zostawić sobie w szablonie tylko jeden, nie powielać go tylko przenieść w inne miejsce. Warto jednak zaznaczyć, że zgodnie z przepisami informacja o poprzedniej cenie powinna być w bezpośrednim sąsiedztwie ceny produktu, a nie gdzieś dalej.
co mogę zrobić aby informacja wyświetlała się w nowym wierszu pod ceną?
Powinna wystarczyć jakąś prosta dodatkowa reguła CSS. Na początek można spróbować zmienić display: inline-block; na display: block; w pliku views/css/gm_omniprice.css
Dziękuję
Cześć, klientowi instalowałem wtyczkę, wszystko zrobione według dokumentacji i, mimo tego nie wyświetla się po obniżeniu cen i promocji szablon Warehouse Co może być przyczyną ?
z góry dzięki za odpowiedź
Aby wyświetlały się ceny muszą być spełnione następujące warunki: 1. Aktualna cena jest ceną promocyjną 2. W historii cen jest zapisana przynajmniej jedna poprzednia cena, różna od aktualnej 3. Z szablonu karty produktu nie został usunięty zaczep displayProductPriceBlock z parametrem type=”after_price” (powinien być domyślnie w każdym szablonie)
Warto też pamiętać, że moduł zapamiętuje w danym dniu cenę tylko raz, aby oszczędzić miejsce w bazie danych.
There’s a strange bug with 1.1.5 and Warehouse theme’s Mega Menu
When I go on a product with visible row from the module all products have the same line under their names in Mega Menu. When you go to another page where the module is not visible this row is not visible.
Warehouse 3.8.7 Module 1.1.5 TB – edge
Also – a side question. Datakick removed a js function displayPrice here: https://github.com/thirtybees/thirtybees/commit/4908ec86b34a2fc3a78ea22508d0cdf42c5855bb
Will this affect this module by any means?
This module has practically no CSS so this effect must be realated to something else, some theme bug or a side effect of something…
In PS 1.6/TB the module uses the displayDiscounts JS function, so it should not be affected by removing displayPrice.
BTW. 1.1.5 had a cleanup bug, so please update to 1.1.6.
Since last few versions the module does not work for me. When indexing I don’t see the table and on save only 1 price is always visible -> the module does not show at any product.
Any advice what to check. Just tried installing 1.0.6 and it works (probably more recent versions will also work, but this is what I got on hand).
Hmm, latest changes were not that big and did not include any changes of the price gathering algorithm. Maybe please contact us by email so we can share some links and screenshots to be able to help you.
Are you planning to add a hook to product list? Because, unfortunately, many owners of shops demand it.
Adding this information to product list should be possible in exactly the same way as it is done on product page, just use the same hook with type=”after_price” parameter and put it in the tpl file responsible for product lists. The reason why it is not there by default is that adding this information would mess the design of the listings, making blocks with promotion products higher then other ones. So help from a frontend developer is required in this case either way to adjust the way it looks on the listing and is strongly dependent on the theme used.
it is working with other themes like AngarThemes? It is one year license or 4ever?
Yes, it is able to work with any theme. Some themes have the required hook removed or hidden, but bringing it back is 5 minutes of work. And it is 4ever
It seems to me that the module is still missing the display of the text “The price has not changed”. , when the price is not discounted or when the module is won fresh to Prestashop and we don’t have historical data and the price was discounted before the module was installed in the product it should automatically take the discounted price if the discount was added before the module was installed. But probably the best option would be to add “The price has not changed” what do you think?
If you say “the price has not changed” then you admit that the promotion is a fake one and the product never had a normal price but is on a discount since forever But if the promotion is added before the module was installed then we have a solution to display the current discounted price as the lowest one, but it’s not offical since we believe it’s not precisely according to the new law. Please contact us directly and we’ll explain what to do.
Thank you for your answer!
Hello
Running it on latest TB I get the following error:
Message: Undefined index: id_product
Location: modules/gm_omniprice/gm_omniprice.php line 1272
Hello, this is probably some notice that does not affect the script execution, but we will look into it, thanks.
Yes, I don’t see any issues. Probably it occured during the save indexation. The product is a pack.
In the current version, this line is inside the cleanup script, which version are you using exactly?
1.0.13
$productId = (int) $params[‘id_product’];
Allright, I see what it is. It’s harmless but we will take care of it in the future updates so it won’t appear anywhere.
Thank you! I just submitted it for future reference – less rows in the error log – happier clients!
Updating to 1.0.15 I have bigger problem: (error appears when clicking Configure)
Not unique table/alias: ‘c’
in file /home/user/public_html/domain.com/classes/Group.php at line 426
408: * @param bool $count
409: * @param int $start
410: * @param int $limit
411: * @param bool $shopFiltering
412: *
413: * @return array|false|int
414: *
415: * @throws PrestaShopException
416: /
417: public function getCustomers($count = false, $start = 0, $limit = 0, $shopFiltering = false)
418: {
419: if ($count) {
420: return Db::getInstance(PS_USE_SQL_SLAVE)->getValue(
421: (new DbQuery())
422: ->select(‘COUNT()’)
423: ->from(‘customer’, ‘c’)
424: ->leftJoin(‘customer’, ‘c’, ‘cg.`id_customer` = c.`id_customer`’)
425: >where(‘cg.`id_group` = ’.(int) $this>id.’ ’.($shopFiltering ? Shop::addSqlRestriction(Shop::SHARE_CUSTOMER) : ’’))
426: ->where(‘c.`deleted` != 1’)
427: );
428: }
429:
430: return Db::getInstance(PS_USE_SQL_SLAVE)->executeS(
431: (new DbQuery())
432: ->select(‘cg.`id_customer`, c.*’)
433: ->from(‘customer_group’, ‘cg’)
434: ->leftJoin(‘customer’, ‘c’, ‘cg.`id_customer` = c.`id_customer`’)
435: >where(‘cg.`id_group` = ’.(int) $this>id)
436: ->where(‘c.`deleted` != 1’.($shopFiltering ? Shop::addSqlRestriction(Shop::SHARE_CUSTOMER) : ’’))
2. classes/db/Db.php:486 source DbCore->displayError(arguments)
3. classes/db/Db.php:774 source DbCore->query(arguments)
4. classes/db/Db.php:801 source DbCore->getRow(arguments)
5. classes/Group.php:426 source DbCore->getValue(arguments)
6. modules/gm_omniprice/gm_omniprice.php:1100 source GroupCore->getCustomers(arguments)
7. modules/gm_omniprice/gm_omniprice.php:1062 source Gm_OmniPrice->findEmptyGroups()
8. modules/gm_omniprice/gm_omniprice.php:174 source Gm_OmniPrice->displayInformationPanel()
9. controllers/admin/AdminModulesController.php:1592 source Gm_OmniPrice->getContent()
10. controllers/admin/AdminModulesController.php:1454 source AdminModulesControllerCore->postProcessCallback()
11. classes/controller/Controller.php:191 source AdminModulesControllerCore->postProcess()
12. classes/Dispatcher.php:851 source ControllerCore->run()
13. admin391aj92ac/index.php:58 source DispatcherCore->dispatch()
classes/db/Db.php:851 source ()
Btw – you’re doing some great stuff with this module! Pumping updates and I’m not able to catch up with the improvements!
Thanks! But in this case it looks like something with the TB core. All that the module tries to do is to count customers for each group you have there using functions available in the core. I will try to check it out and see if I can find the source of it.
OK, thank you! Will check with datakick what he sees!
Thank you once again!
I see it, it clearly is a TB bug related to counting customers. Line 434 of Group.php in TB has an error. It should have ->from(‘customer_group’, ‘cg’), not ->from(‘customer’, ‘c’).
*line 423, yes, now it works! Thank you! Will suggest a fix by you!
Hello again, GreenMouse Studio,
New issue as of today:
ThirtyBeesDatabaseException: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ‘WHERE `active` = 1 AND `deleted` = 0’ at line 2
Location: modules/gm_omniprice/gm_omniprice.php line 791
SELECT `id_shop` FROM `ps_shop` ORDER BY FIELD WHERE `active` = 1 AND `deleted` = 0
Version 1.0.15
This causes an error message in BO when saving product and when changing stock there’s another error popup: parsererror: SyntaxError: Unexpected token ’<’, “
Datakick toay deprecated DbPDO class if that helps!?
Thanks a lot for your input! I just uploaded 1.0.16 which should have this issue fixed, please test and let me know. I also added included all the other stuff that you noticed there (‘product_id’ and TB bug with counting customers).
Just installed it and everything is perfect once again! Thanks for the support!
Witam, zainstalowałem moduł i przeczytałem dokumentacje, z tym parametrem ?omnipricetest=XXX#hide1 pokazuje się tło z właściwym opisem, ale na karcie produktu nie ma ceny z 30 dni. Cena promocyjna była już wcześniej, na nową zmieniłem dziś a w historii modułu a nowa cena się nie pokazuje, trzeba to jakoś dodatkowo zindeksować?
Aby moduł pokazał cenę historyczną, musi ją znać. Na zapleczu na karcie produktu powinna być w dodatkowej zakładce Moduły możliwość obejrzenia zgromadzonej historii cen. Jeżeli jest tam tylko jedna cena to trochę za mało żeby mówić o historii. Ale i z tej sytuacji możemy pomóc wybrnąć, tylko prosimy o kontakt mailowy.
Czy moduł pokazuje najniższa cenę z ostatnich 30 dni również jeśli jest ona równa z aktualną ceną promocyjną? Tak jak to jest na stronie: https://bytom.com.pl/p-b020ko0576-koszula-b020ko0576
Zwracam uwagę, że w Omnibusie nie chodzi o ostatnią cenę z 30 dni, tylko o ostatnią poprzednią cenę. Niemniej jednak przy pomocy modułu można osiągnąć takie coś jak ma Bytom, tylko prosimy o kontakt bezpośrednio na maila po zakupie, to wytłumaczymy co i jak.
Two questions. Can You add option to remove the info about price from category page. And another question can You make a roll over/hover show last price? [THE PRICE FROM 30 DAYS] and when someone hover on it it will show the price. It will be not visible. Example here: https://bytom.com.pl/p-b020ko0576-koszula-b020ko0576
The module attaches itself to a hook that is by default visible only on the product page. If you see it also on category page then it means that your theme has it added there. You need to modify the theme or add exceptions to the hook so the module is only active on product page. It is described in detail on PrestaShop forum. Regarding the hover – that’s a customization related to the theme, I don’t think it should be in the module by default, but you can freely change the appearance of the message in your theme and add as many effects to it as you need, but it requires some HTML + CSS coding.
I hide it from category using css. But showing price only on rollover will be harder because on mobile there is no roll over
Exactly
Is it possible to have a changelog here or inside the module? We would like to track the changes.
Yes, there is a CHANGELOG file inside the module folder
Ah yes – Perfect!
Now it is also added in the description, so you don’t need to download the module to see it
OK
Temat wyjaśniony telefonicznie, moduł jest OK
Zgadza się, moduł jest OK, dziękuję
Po jakim czasie powina pojawić się informacja w produkcie?
Chodzi nie tylko o czas, ale też o fakt zmiany ceny. Warunki pojawiania się informacji o poprzedniej cenie są dokładnie opisane w dokumentacji modułu.
Warunki spełnione są a informacja nie pojawia się.
Dzisiaj dodałem produkt testowy i zmieniłem cenę kilka razy. włączyłem synchronizacje recznie.
Moduł w danym dniu zapisuje cenę produktu raz, więc zmienianie jej kilka razy nic nie da. W zakładce Moduły karty produktu na zapleczu powinien być podgląd historii cen, żeby coś moduł pokazał to muszą w historii być przynajmniej dwie różniące się od siebie ceny.
Pokazuje jedą cenę w tym miejscu. Ale na początku patrzyłem była kwota tam 108 zł a póxniej jak zwiększyłem cenę to pokazało tam 553 zł a 108 już nie ma na liście.
Chyba że nie można klikać synchronizacja?
Tak jak pisałem, jeden dzień = jedna cena. Ceny różniące się od siebie muszą występować na przestrzeni kilku dni.
Dalej nie wyświetla informacji o najniższej cenie.
To trzeba obejrzeć. Prosimy o kontakt mailowy z podesłaniem zrzutów ekranów z historii cen produktów na zapleczu.
mail wysłany
I looked into the code and I’m impressed. Awesome idea with cache table. Great job!
Thanks a lot, we will be very happy if you give this module a rating
Hello,
Quick question – can we always show the lowest price (even if no discount was detected) on every product? I know that the module currently works the other way but can you feature this option in future update?
Hello, we will think about it but it’s not easy. Please note that the module shows the lowest price before current promotion, not just the lowest price from the 30 days period from the current moment and it is optimized for this approach.
Congratulations! Great Work, GLWS