Our site www.viart.com site is operated by latest Viart Shop 5 with default Clear design
Topic Information
Paul (Guest)
Paul (Guest)
Hi,
 
Is there any way that I can remove the dashes on the Credit Card Number under Payment Details in the Sales / Order admin page?
 
I'm using the "Personal" payment system that uses the credit_card_info.php URL.
 
When submitting an order using CC, the card number shows up with dashes in the Sales/Order page.
 
jty (Guest)
jty (Guest)
If noone else answer,
 
Is there anything in the code that looks like this:
 
$r->set_value("cc_number", format_cc_number($cc_number));
 
The format_cc_number($cc_number) bit might be what you're looking for.
 
I'm out of touch with Viart code so I could be wrong
 
Paul (Guest)
Paul (Guest)
Thanks for the response jty.
 
 
Yeah, I still don't know where to look at.
 
Ned
Ned
The last four digits are obscured by the tick box in the Admin > Orders > Payment Systems > Payment Details Page under "Secure Options".
 
Paul (Guest)
Paul (Guest)
That's right.
 
But what I'm talking about are the Dashes.
 
The CC Number shows up in the Sales/Order page as, "5XXX-XXXX-XXXX-XXXX" instead of having it as just 5XXXXXXXXXXXXXXX just like how it is in the older version.
 
jty (Guest)
jty (Guest)
To get the CC number to show up as 4111111111111111 instead of 4111-1111-1111-1111
 
In admin/admin_order.php, around line 306, change the line
 
$r->set_value("cc_number", format_cc_number($cc_number));
 
to:
 
$r->set_value("cc_number", ($cc_number));
 
Remember to back-up your file before making the change, in case you need to rollback
 
The line number of 306 may also be incorrect. do a search in that file for that line if it's not on line 306
 
I'm working on the latest version of Viart