Plugin “Woocommerce Product Bundles” compatibility
-
Hello
When having a product bundle with a variable product (with discount, unit price and price labels), the legal info is not applied correctly. There seem to be two bugs:
1. Price Labels:
There are always the labels of the parent product applied to the prices but not the more specific of the bundled products.2. Legal Info Text
Is not applied as it should. The output in my test case is:
——————————
Old Price:10,00 €1,00 €
Unit Price:0,10 €
New Price: 1,00 €
Unit Price:0,10 €0,01 €
——————————
But it should be:
——————————
Old Price:10,00 €
New Price: 1,00 €
Unit Price:0,10 €0,01 € / L
——————————As i could investigate the problem is as follows:
The unit price is added to the price html before the labels are applied. The unit price contains a DEL- and an INS-tag, and when added the price html contains now two DEL and INS tags. When the price labels are applied now by abstract-wc-gdz-product.php -> add_labels_to_price_html(), that method searches for the beginning and end of each tag and places the labels in front. This method works fine if there is only one of each tag in the price html but not if there are two of them, because then it places the text in front of all the html between the starting price tag and ending unit price tag.Thanks for solving in advance.
The topic ‘Plugin “Woocommerce Product Bundles” compatibility’ is closed to new replies.