-
Notifications
You must be signed in to change notification settings - Fork 11
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
Conversation
resources/views/cart/item.blade.php
Outdated
<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"> |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
@@ -3,6 +3,9 @@ total_quantity | |||
items { | |||
id | |||
quantity | |||
@if (Rapidez::checkCompadreVersion('0.0.4')) |
There was a problem hiding this comment.
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
resources/views/cart/item.blade.php
Outdated
<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"> |
There was a problem hiding this comment.
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?
No description provided.