πŸ‡ΊπŸ‡¦Ukraine @init90

Ukraine
Account created on 16 May 2011, about 13 years ago
#

Recent comments

πŸ‡ΊπŸ‡¦Ukraine init90 Ukraine

In my case, it leads to server lagging and interaction of site works. I've increased priority to higher.

The patch from #16 fixed the problem.

πŸ‡ΊπŸ‡¦Ukraine init90 Ukraine

For some reason, @gisle mail was lost in the span. I've just noticed it.

Thanks for the offer!
I've added all the necessary permissions for @heddn :)

πŸ‡ΊπŸ‡¦Ukraine init90 Ukraine

Here is a patch that saves the grouping field(caption) with the next table data load.

πŸ‡ΊπŸ‡¦Ukraine init90 Ukraine

I've noticed one problem with the patch above in case when using the option 'Grouping by field' its value is lost for results loaded by scroll.

πŸ‡ΊπŸ‡¦Ukraine init90 Ukraine

Works for me. Thanks!

πŸ‡ΊπŸ‡¦Ukraine init90 Ukraine

✨ Allow "related entity" tokens to be used in "to" address Fixed do the same but also allows to replace tokens from related entities

πŸ‡ΊπŸ‡¦Ukraine init90 Ukraine

j0sbeir thanks for the patch!

I've added one minor but important update to it - passed supported token types to the 'email to' field for correct tokens validation.

πŸ‡ΊπŸ‡¦Ukraine init90 Ukraine

Updated code to be compatible with the last Drupal versions.

πŸ‡ΊπŸ‡¦Ukraine init90 Ukraine

@kkalashnikov, in the original patch in #15 hook documentation moved to the other place, your patch just delete documentation.

πŸ‡ΊπŸ‡¦Ukraine init90 Ukraine

I encounter the issue when adding a discount to the product for which the price can be adjusted by the customer based on the selected options. In the order item we tell that the price is overridden, i.e. 'overridden_unit_price' set to TRUE. This means that on refresh order item price won't be updated according to the product variation price.

With the standard setup, I had 2 issues:

1. It lost the 'overridden_unit_price' setting which lead to the loss customization price.
2. It's updated already updated order item price, which leads to incorrect calculation.

As a workaround, I created a custom promotion plugin that fixes the problems above.

To fix first point the plugin account 'overridden_unit_price' setting: $order_item->setUnitPrice($new_unit_price, $order_item->isUnitPriceOverridden());

To resolve the second point passes the original price to the order item $order_item->setData('original_price', $price); in add to cart event. Then in the promotion plugin discount always applies to the original price.

Hope at some time the issue will be fixed with the solution like in message #16.

πŸ‡ΊπŸ‡¦Ukraine init90 Ukraine

We have PHPStan for such things #3178534: Start running PHPStan on Drupal core (level 0) β†’ , so I think it is not actual anymore.

πŸ‡ΊπŸ‡¦Ukraine init90 Ukraine

PHPStan was adopted by core #3178534: Start running PHPStan on Drupal core (level 0) β†’ so I think the issue is not actual anymore.

Production build 0.69.0 2024