Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
Forum Search
Google Site Search
 All Forums
 Technical
 PHP (Unix / Linux / Apache) versions
 Payment Provider Show As field is truncated
Author « Topic »  

John M
Advanced Member

459 Posts

Pre-sales questions only
(More Details...)

Posted - 09/07/2021 :  10:10:32  
The Show As : field is truncated when going back to edit for the payment provider

We add details to this field so that customers are properly informed beyond just "Credit Card".

We also like to add the payment provider logo and cards accepted however this might be better addressed with an additional field for an image.

John

dbdave
ECT Moderator

USA
10468 Posts

Posted - 09/07/2021 :  14:55:04  
Yes!!! This has been an issue for years.
If you open the payment provider in the admin, it trashes your extra content there.

David

Vince
Administrator

42874 Posts

Posted - 09/07/2021 :  14:58:34  
The payProvShow column will truncate at 255 chars as that is what the field in the database is set as. Why not just change it to a TEXT field?

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

John M
Advanced Member

459 Posts

Pre-sales questions only
(More Details...)

Posted - 09/07/2021 :  16:09:41  
It seems if you use double quotes (" ") then it truncates very weirdly indeed, however if you use single quotes (' ') it works for both TEXT and VARCHAR(255).

e.g. This works: Credit or Debit Card <img src='images/square-400.jpg' style='max-width: 100%'>

John

midvalleydrifter001
Ecommerce Template Expert

USA
936 Posts

Posted - 09/07/2021 :  18:55:46  
I do something similar but I put my code in the vsadmin/includes.php file.

$xxCrdNum='Credit Card <img src="/images/credit-cards.jpg" style="max-width:95%">';

Patrick

Vince
Administrator

42874 Posts

Posted - 09/08/2021 :  09:12:45  
Ok, I see the problem then and what's happening is it is truncating on the quotes. I've fixed this now and added to the fix to the file...
vsadmin/inc/incpayprov.php
...in the updater. For ASP users too this is done in incpayprov.asp

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.03 seconds. Snitz Forums 2000