tastyigniter / TastyIgniter

:fire: Powerful, yet easy to use, open-source online ordering, table reservation and management system for restaurants
https://tastyigniter.com
MIT License
3.04k stars 997 forks source link

Enhancement? Products without options dont display images, no modal popup? #330

Closed stoneric closed 4 years ago

stoneric commented 4 years ago

Expected behavior: If I click + I should see the product and get to select quantity?

I can't see the product images. We have wine / vino, but no one can see a bottle! https://a16online.com/sanfrancisco/menus/vino

Actual behavior: Can never see the product images

Reproduce steps: https://a16online.com/sanfrancisco/menus/vino

Version: latest

sampoyigi commented 4 years ago

That's the normal behaviour when a menu item does not have options to choose from, that way adding the item to the cart can be done with fewer clicks. You can change this behaviour on your end in tastyigniter-orange/_partials/localMenu/item.php partial file, the menu button attributes block should look like this.

<?php if (!$mealtimeNotAvailable) { ?>
    data-cart-control="load-item"
    data-menu-id="<?= $menuItem->menu_id; ?>"
    data-quantity="<?= $menuItem->minimum_qty; ?>"
<?php } else { ?>
    title="<?= sprintf(lang('igniter.local::default.text_mealtime'),
        $mealtime->mealtime_name, $mealtime->start_time, $mealtime->end_time
    ); ?>"
<?php } ?>
stoneric commented 4 years ago

nice ill try this and let you know....figured it was no options, but then no one can see the item.