Looking for a custom TastyIgniter theme or extension development? Request a quote now!
Currently, when a special price for an item is active, only that price is shown in the storefront. It would be nice to have the ability to also show the original price, if wanted. Like here: –$-19.99– $ 14.99
Would be a nice addition
Should be a simple PR if you wanted to take it on.
Add something like: @if ($menuItemObject->specialIsActive) <s>{{ $menuItemObject->specialPrice }}</s> @endif
@if ($menuItemObject->specialIsActive) <s>{{ $menuItemObject->specialPrice }}</s> @endif
here: https://github.com/tastyigniter/ti-ext-local/blob/476bc1819b02be30eb07e186d4d3fe6ca5f87f89/components/menu/item.blade.php#L33
Then add specialPrice here, and amend menuPrice to not include special https://github.com/tastyigniter/ti-ext-local/blob/476bc1819b02be30eb07e186d4d3fe6ca5f87f89/components/Menu.php#L226
https://github.com/tastyigniter/ti-ext-local/pull/60
Done!