tastyigniter / ti-ext-cart

A TastyIgniter extension that allows you to easily add a shopping cart to your site.
MIT License
8 stars 31 forks source link

[Bug]: Cancel Order button not displayed #92

Open shelemiah opened 2 months ago

shelemiah commented 2 months ago

What happened?

After placing and order the Cancel Order button is not displayed on the order status page. Also, after an order's delivery/pick-up time has passed the Cancel Order button appears.

What did you expect to happen?

The button is to be displayed before an order is processed or fulfilled.

Version

3.x

What browser are you seeing the problem on?

Firefox

Relevant log output

No response

shelemiah commented 2 months ago

The test logic in status.blade.php https://github.com/tastyigniter/ti-ext-cart/blob/7311acee0f5e504eaccbcd3feb04c4886fe0514f/components/order/status.blade.php#L45 seems to incorrect and should have been: @if ($SELF->showCancelButton())