31 comments found.
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 