lunarphp/lunar

Shipping methods dont respect customer groups visibility or dates

ryanmitchell opened this issue · 0 comments

Using the latest of everything :)

Shipping methods don't respect the customer group settings here:

CleanShot 2024-12-02 at 10 44 26@2x

You can see in the code there is a basic customer group check here:

$method = $rate->shippingMethod()->customerGroup($this->customerGroups)->first();

But not any of the dates etc from the customerGroupScope -

public function applyCustomerGroupScope(Builder $query, Collection $groupIds, DateTime $startsAt, DateTime $endsAt)