![]() |
Credit Card Type +Last 4 digits on HTML Invoice
Please ensure you have named your Credit Card processor under 'Payment Methods' as Credit Card; otherwise, change Line #5 of the provided Code to match your given name, or remove the surrounding If-statement altogether. ;)
NOTE: This has only been tested on X-Cart 4.0.18 ** http://www.home-rehab-supply.com/images/cc4dig.gif Find skin1/mail/html/order_invoice.tpl: Search for Code:
{$order.payment_method} And replace with: Code:
You now have the Credit Card Type and Last 4-digits displayed on your HTML invoices (both e-mail, and via the website Orders section!) Also, the (CC Processing Gateway) section is removed as well! |
very useful, thanks
will test asap |
How'd your test go??
|
order confirmation page of the website looks fine
but the html invoice email gives an sql error INVALID SQL: 0 : SQL QUERY FAILURE: SELECT details FROM xcart_orders WHERE orderid = : N/AxxN/A |
the error appears on the confirmation email to the seller.
more details on the error Request URI : ../payment/payment_cc.php SQL query : SELECT details FROM xcart_orders WHERE orderid = Error code : 1064 |
Quote:
You may have grabbed the previous version of the code. I noticed this error and updated my first post. Please check that your code contains Code:
if( empty( $orderid ) ) $orderid = $GLOBALS[secure_oid][0]; So it should look like this: Code:
|
Dear moneysaver,
I tried this mod w/ 4.0.18 and I am not able to get it working... I experienced an error right after the "submit..." Code:
Your order is being placed. Please wait... FYI, line 67 of my order_invoice.tpl is the above mentioned, Code:
if( empty( $orderid ) ) $orderid = $GLOBALS[secure_oid][0]; Here's my COMPLETE order_invoice.tpl: Code:
{* $Id: order_invoice.tpl,v 1.14.2.16 2005/11/17 08:41:18 max Exp $ *} |
Did you copy and paste from Safari, causing any potential white space issues etc?
What ACTIVE payment methods do you offer? What are their names, as defined in the admin section of x-cart? |
Quote:
Is Safari THAT BAD? OK -- I'm going to Firefox right now... well WHADDA YOU KNOW! Wow, that's a great mod! Moneysaver, you now have 2 superb mods -- any others? I need to put a big old sign above my monitor: DO NOT COPY/PASTE CODE WITH SAFARI I am going to go back and edit my previous post and get rid of the so-called "bad" Safari generated code. Thank you for pointing this out. Jeremy |
Not so fast....
The on-screen oder confirmation is perfect, HOWEVER... SQL error email to admin: Code:
SQL query : SELECT details FROM xcart_orders WHERE orderid = email notification to customer: Code:
Order status: Queued Hmm.... Any ideas? order_invoice.tpl is now: Code:
{* $Id: order_invoice.tpl,v 1.14.2.16 2005/11/17 08:41:18 max Exp $ *} |
All times are GMT -8. The time now is 06:52 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.