Closed saeedashraf1991 closed 1 year ago
hey @saeedashraf1991
we want to keep the issues for bugfix reports or feature request.
If you have a question that needs support, please use Stackoverflow, our community slack (channel #shopware5) or our community forum.
Thanks for your understanding. Best regards from Schöppingen Telgi
Reference Issues
No response
Summary
Hi guys, I want to fetch the Discount Code applied at checkout in order details. Mainly I am working at checkout/finish.tpl. Can you please advise how to get the Coupon/discount code applied?
Thank you!
Basic Example
Like this:
$discountCode = Shopware()->Db()->fetchAll( 'SELECT * FROM s_order WHERE ordernumber = :ordernumber', ['ordernumber' => $orderNumber] );
Additional context
No response