Skip to content

Added support for tierprices#1205

Open
indykoning wants to merge 31 commits intomasterfrom
feature/tier-prices
Open

Added support for tierprices#1205
indykoning wants to merge 31 commits intomasterfrom
feature/tier-prices

Conversation

@indykoning
Copy link
Member

This PR adds support for tier prices to Rapidez.

If a Tierprice with qty of 1 is added it will not be shown on the product page as is default in Magento.
This can be used to set different prices for different customer groups. Search and category pages also respect this.

image

Magento for reference:
image

ref: RAP-1626

@indykoning indykoning requested a review from royduin as a code owner February 20, 2026 15:04
Comment on lines +52 to +58
$appends = array_filter($attributes, fn ($key) => $product->hasAnyGetMutator($key));
$relations = array_filter(
array_map(fn ($key) => Str::camel($key), $attributes),
fn ($key) => $product->isRelation($key)
);

$data = Arr::only($product->toArray(), $attributes);
$data = Arr::only($product->append($appends)->loadMissing($relations)->toArray(), $attributes);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not immediately used so could be removed.
But it adds the ability to activate getters and relationships when asking for them in the productpage.frontend.attributes filter

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are changed due to the fusion backback tier price for qty of 1
(2nd row to the right)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file is changed due to the fusion backpack being in the related products slider

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants