iworks / omnibus Goto Github PK
View Code? Open in Web Editor NEWThe WordPress plugin to compatibility with EU "Omnibus Directive".
The WordPress plugin to compatibility with EU "Omnibus Directive".
After checking the database, I noticed that omnibus adds a lot of _iwo_price_lowest and _iwo_price_log. After each product update, a new record is added, which causes my database to swell. Even if I do not change the price, a new line is added. Do you have any ideas on how to avoid clogging the database?
The page I need help with: http://swiat-zosi.pl/
Origin: https://wordpress.org/support/topic/growing-database-3/
After last Woocommerce PL translation update I see this Warning in logos:
PHP Warning: Undefined array key "price" in /wp-content/plugins/omnibus/includes/iworks/omnibus/integration/class-iworks-omnibus-woocommerce.php on line 429
Wersja 2.5.5 rzuca takim błędem (2.5.4 jest ok):
Fatal error: Uncaught Error: Call to a member function get_tax_class() on null in /wp-content/plugins/omnibus/includes/iworks/omnibus/class-iworks-omnibus-integration.php:338
Stack trace: #0 /wp-content/plugins/omnibus/includes/iworks/omnibus/integration/class-iworks-omnibus-integration-woocommerce.php(467): iworks_omnibus_integration->add_message()
Create an ability to set max log lifetime and delete it after this time.
Add variant ID to price span.
Original: https://wordpress.org/support/topic/cena-wariantow-w-niestandardowym-miejscu/
When using Omnibus v3.0.2 with Wp Desk WooCommerce InPost v4.4.7 we get error:
This conflict between plugins additionally causes that changes made in product editing cannot be saved. The ajax request to save the product spins until the timeout (even several seconds).
The problem stops after disabling one of the 2 plugins (no matter which).
Hello!
After upgrading the plugin from version 2.5.0 to 2.5.2, two issues have arisen.
When I go to quick edit a product and click update, the spinning wheel indicating progress spins indefinitely. However, the changes are still saved.
The second issue is that on a page created with Elementor, including a "product" after clicking update, it shows a "server error 403".
Today, we spent the whole day looking for the problem, as we recently migrated the site to a new server and didn't think of anything else. When we ran out of ideas on what else to try, I started deactivating plugins. If I deactivate your plugin, the issues disappear. Also, if I install version 2.5.0, everything works normally. The problem reappears immediately after upgrading to 2.5.2.
I have tested the same thing on a completely different server and setup, and the error is the same!
Hi, small bug report extracted from one of my production stores and reproduced locally.
Plugin version 2.3.9, plugin is set to display lowest price from last 30 days. Clock set to 02.08.2023 or later.
Clear meatdata for test product (replace X with test product id)
SELECT * FROM
wp_postmeta
WHEREpost_id
= X ANDmeta_key
LIKE '%iwo%'
INSERT INTO
wp_postmeta
(meta_id
,post_id
,meta_key
,meta_value
) VALUES
(4785319, X, '_iwo_price_lowest', 'a:3:{s:5:"price";s:4:"1936";s:9:"timestamp";i:1675908204;s:4:"type";s:9:"autosaved";}'),
(4827751, X, '_iwo_price_lowest', 'a:4:{s:5:"price";s:4:"2200";s:9:"timestamp";i:1678204781;s:13:"price_regular";s:4:"2200";s:10:"price_sale";s:0:"";}'),
(4827752, X, '_iwo_last_price_drop_timestamp', '1679567887'),
(4829297, X, '_iwo_price_lowest', 'a:2:{s:5:"price";s:4:"1936";s:9:"timestamp";i:1678324509;}'),
(4833070, X, '_iwo_price_lowest', 'a:4:{s:5:"price";s:4:"2200";s:9:"timestamp";i:1678377930;s:13:"price_regular";s:4:"2200";s:10:"price_sale";s:0:"";}'),
(4835450, X, '_iwo_price_lowest', 'a:2:{s:5:"price";s:4:"1936";s:9:"timestamp";i:1678496983;}'),
(4853549, X, '_iwo_price_lowest', 'a:4:{s:5:"price";s:4:"2200";s:9:"timestamp";i:1679567887;s:13:"price_regular";s:4:"2200";s:10:"price_sale";s:0:"";}');
Plugin calculates lowest price to 2200
Plugin calculates lowest price to 1936
Commenting out line
https://github.com/iworks/omnibus/blob/main/includes/iworks/omnibus/class-iworks-omnibus-integration.php#L243C4-L243C4 fixes the problem
Lately we have been getting this error to show up. It seems to happen when the product is saved that includes variations. Any idea how we could get this sorted out?
PHP Warning: Undefined array key “price” in:
Original issue: https://wordpress.org/support/topic/php-warning-undefined-array-key-price/
Good morning! First of all I would like to thank you for this plugin. It's great!
I'm writing this suggestion, because maybe other people may think the same. The lowest price from last 30 days shows also the current one, which looks like we don't have a promotion at all. Example below:
I see that for example Empik has the lowest price from 30 days before the promotion was applied. Is it something we could implement here as well? Example below:
Thank you
Hi, the price in omnibus does not change when we have discounted, for example, only one variant. The value remains this "lowest" of the other variant anyway. It also does not work dynamically when it reloads a variant. - omnibus price does not change
Hello!
I'm using a plugin for quantity discounts Discount Rules for WooCommerce By Flycart (https://wordpress.org/plugins/woo-discount-rules/). The plugin also allows for dynamic price calculation when a customer clicks the "+" button to increase the quantity (https://docs.flycart.org/en/articles/4178894-display-discounted-price-with-strikethrough-on-default-prices?utm_source=woo-discount-rules-v2&utm_campaign=doc&utm_medium=text-click&utm_content=show_strike_out_setting) section "Show on quantity update (Dynamic)"
However, as soon as this price refreshes, the notification about the last price from your plugin disappears. If I disable this dynamic behavior, your plugin works normally.
Any idea if I can handle this by myself, or if you could check and enhance your plugin?
Thank you
Hi.
There is a very big Issue because omnibus directive require that to show lowest price from at least 30 days BEFORE current promotion, not the lowest price from last 30 days!!!
You can find detail on UOKIK site https://uokik.gov.pl/bip/wyjasnienia Informacja o obniżce ceny. Wyjaśnienia Prezesa UOKiK (2023.05.08)
Hello, as the title says, we have the problem that the Omnibus message is not showing when the price (or sale price) of the product is 0.
According to our polish customers, the infos must also show in this case.
The plugin is great for price change for single product, however when you want to make bulk change using plugins which refers directly do database eg. WP Sheet Editor the Omnibus plugin does not show last lowest price. In WP sheet editor you can change fields: promo price, start promo price, end promo price, Iwo last price drop timestamp, Iwo price last: change: price 1; Price Sale:1; Timestamp: 1 etc., however those changes made manually affects only promo price change. For bulk promo changes the plugin is uselless unfortuatelly.
But one thing that is missing is support for the Woocommerce’s Bundle products: https://woocommerce.com/products/product-bundles/. Right now it’s not working for the bundles.
Will you be able to add support for this? Would be really useful, also for others that use this.
https://wordpress.org/support/topic/woocommerce-bundle-products/
Cześć,
W ostatniej wersji używasz metody get_price_including_tax()
, która jest już deprecated
.
Dokładnie w 3 miejscach:
To betonuje mi logi w tysiącach wpisów:
PHP Deprecated: Funkcja WC_Product::get_price_including_tax jest przestarzała od wersji 3.0! Zamiast jej proszę użyć wc_get_price_including_tax.
Pytanie:
Czy do momentu wyjścia nowej wersji, wystarczy zmiana tej metody na funkcje wc_get_price_including_tax()
?
I czy tylko zakładasz pierwszy argument jako obiekt klasy WC_Product
czy w drugim też przekazać jakieś dane?
Czy coś jeszcze do podmiany?
Add the ability to choose all variants have "short term duration" - currently you have to tick checkbox on all variants.
Add variation_id to dataset for custom omnibus price element.
https://wordpress.org/support/topic/cena-wariantow-w-niestandardowym-miejscu/#post-17226611
Prices for variants are not showing - only option "Product with variants: general" works but not for particular variants - there is no info at all.
Hello,
I have a following issue. The product history price looks like that
However, on the product page there is a different price displayed for the lowest in 30 days:
Why is it wrong?
This is a discount set with Finale Lite plugin for this product.
Są dwie sytuacje, które warto przewidzieć:
Rozwiązanie:
a) wyświetlanie historii ceny w edycji produktu, by móc jakąś pozycje usunąć,
b) po prostu umożliwić ręczne wpisanie ceny z 30 dni w edycji produktu.
Check why iworks_omnibus_wc_lowest_price_message
don't works for variants.
https://wordpress.org/support/topic/cena-wariantow-w-niestandardowym-miejscu/
Po instalacji "Wystąpił błąd krytyczny w witrynie". Poniżej treść z raportu mailowego:
Do rozwiązania problemu, mogą być potrzebne poniższe dane:
WordPress w wersji 5.9.5
Aktualna wtyczka: Omnibus (wersja 2.3.2)
Wersja PHP: 7.2.34
Błąd typu E_PARSE został spowodowany w linii 247 pliku /wp-content/plugins/omnibus/includes/iworks/omnibus/integration/class-iworks-omnibus-integration-woocommerce.php. Komunikat błędu: syntax error, unexpected ')'
I've encountered within the system where the tax inclusion settings do not seem to be functioning correctly.
Despite having the following tax options enabled:
When viewing the option "Display current regular price" along with the message "Lowest price from the last {days} days: {price}", the price that is displayed is the net price, not the gross price as expected.
However, when the "Display current promotional price" option is selected, the gross price is displayed correctly, with taxes included.
It appears there is a discrepancy in how the tax is applied in displaying regular prices versus promotional prices. This could lead to confusion for customers who expect tax to be included in all displayed prices as per the settings.
I would appreciate it if your team could investigate this issue and provide a resolution. If any further information or screenshots are required, please let me know, and I will be happy to provide them.
Add general price display for variable product with only one variant, because WC do not load price version. Reason is obvious - there is no price version if there is only one variant!
Source thread: https://wordpress.org/support/topic/brak-wyswietlanej-ceny-omnibus-2/#post-17496550
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.