Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add backorders to rapidez 2.0 #516

Merged
merged 3 commits into from
Jun 19, 2024
Merged

Add backorders to rapidez 2.0 #516

merged 3 commits into from
Jun 19, 2024

Conversation

BobWez98
Copy link
Collaborator

No description provided.

resources/views/cart/queries/cart.graphql Outdated Show resolved Hide resolved
resources/views/cart/item.blade.php Outdated Show resolved Hide resolved
<div v-if="item.backorder_count" class="flex gap-2">
<x-heroicon-o-exclamation-circle class="mt-px w-5" />
<span>
<template v-if="item.backorder_count == item.qty">
Copy link
Member

Choose a reason for hiding this comment

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

It looks like this if case is flipped, or could be item.backorder_count < item.qty

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'd say the other way around, if the qty is the stock and it's lower than the backorder count, there are products to be backordered.

@BobWez98 BobWez98 requested a review from indykoning June 18, 2024 05:39
@@ -3,6 +3,9 @@ total_quantity
items {
id
quantity
@if (Rapidez::checkCompadreVersion('0.0.4'))
Copy link
Member

Choose a reason for hiding this comment

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

It's unfortunate that it does not match the current release but it should match the version of the module
https://github.com/rapidez/magento2-compadre/blob/master/src/etc/module.xml#L4
not the release

<div v-if="item.qty_backordered" class="flex gap-2">
<x-heroicon-o-exclamation-circle class="mt-px w-5" />
<span>
<template v-if="item.qty_backordered > item.qty">
Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure of the format qty_backordered comes in so i could be wrong.
Wouldn't it be impossible for the qty_backordered to be higher than the qty ordered?

@royduin royduin merged commit ba6c535 into master Jun 19, 2024
10 of 18 checks passed
@royduin royduin deleted the feature/backorders-2.x branch June 19, 2024 06:18
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