fantastichearts Posted January 10, 2013 Share Posted January 10, 2013 I would like on the receipt page (content.receipt.php) the similar information that is in the admin area on the order summary page. Dispatch Date Shipping Method Courier Tracking Code ( I have got this and used the code here to actual link the tracking code) http://forums.cubecart.com/topic/46445-setting-up-google-trusted-site/ Gateway Any suggestions as I can seem to work it out? Quote Link to comment Share on other sites More sharing options...
bsmither Posted January 10, 2013 Share Posted January 10, 2013 These are the {placeholders} to use: Dispatch Date: {$SUM.ship_date} Shipping Method: {$SUM.ship_method} Courier Tracking Code: {$SUM.ship_tracking} Gateway: {$SUM.gateway} If you want to use phrases from the language array to make captions for the data: {$LANG.orders.shipping_date} = "Dispatch Date" {$LANG.orders.shipping_method} = Shipping Method {$LANG.orders.shipping_tracking} = Courier Tracking Code {$LANG.orders.gateway_name} = Gateway Quote Link to comment Share on other sites More sharing options...
fantastichearts Posted January 10, 2013 Author Share Posted January 10, 2013 Thanks..how do you code this below to show either nothing for ship date or the words : 'Waiting to be dispatched' when there is no date. At the moment if it not dispatched it will show: 0000-00-00 {$LANG.orders.shipping_method}: {$SUM.ship_date} Quote Link to comment Share on other sites More sharing options...
bsmither Posted January 10, 2013 Share Posted January 10, 2013 {$SUM.ship_date|replace:'0000-00-00':'Waiting to be dispatched'} If a data item is empty, that is, a zero-length string, then do this: {$SUM.ship_tracking|default:'Special phrase if variable is nothing.'} Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.