X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=56)
-   -   5.3.3.x how to removethe credit card icons on checkout page? (https://forum.x-cart.com/showthread.php?t=75512)

mgwashburn 07-18-2017 05:54 AM

5.3.3.x how to removethe credit card icons on checkout page?
 
the title says it all,

with the 5.3.3.1 upgrade there is now a list of credit card icons that shows on the top of the checkout page.

the only problem is that now we are getting repeated phone calls and chat requests that wonder why 'nothing happens when I click on the 'visa' icon. I am trying to checkout with credit card type ##### and when I click on the icon nothing happens.

please help, we need to remove that image file pronto to stop all the crazy calls and chat requests...

is there a switch to remove it in the admin menu?

thanks in advance,

Marc

cflsystems 07-18-2017 06:03 AM

Re: 5.3.3.x how to removethe credit card icons on checkout page?
 
Nope. You will need custom module to remove this.
You can quickly hide it with custom css block in admin but this will only hide it from the page not take it out from the html code.
It is a quick dirty solution though.

mgwashburn 07-18-2017 06:23 AM

Re: 5.3.3.x how to removethe credit card icons on checkout page?
 
why would they do this?

Ebay? We don't sell on Ebay...and if you do NOT accept the American Express and display their logo, you could get a nasty letter from their legal department...

that graphic is a huge legal liabilty! Why would it become a standard thing?

cflsystems 07-18-2017 06:32 AM

Re: 5.3.3.x how to removethe credit card icons on checkout page?
 
Because XC is build by engineers and they don't rely much on merchants expertise at time of coding. Only when It becomes a problem later on with real world use.

FYI
https://forum.x-cart.com/showthread.php?t=75498
https://forum.x-cart.com/showthread.php?t=75479

cflsystems 07-18-2017 06:45 AM

Re: 5.3.3.x how to removethe credit card icons on checkout page?
 
Here are your choices
1. Use CSS
.header-checkout_logos {display: none !important}

2. Upload new image to - keep the name the same
/skins/customer/images/checkout_logos.png

3. In your custom module in Main.php add
PHP Code:

/**
     * Move templates in lists
     *
     * @return array
     */
    
protected static function moveTemplatesInLists()
    {
        
$templates = [
            
'layout/header/header.bar.checkout.logos.twig' => [
                static::
TO_DELETE => [
                    [
'layout.header', \XLite\Model\ViewList::INTERFACE_CUSTOMER],
                ],
            ],
        ];
        return 
$templates;
    } 


Hope that helps.

mgwashburn 07-18-2017 07:44 PM

Re: 5.3.3.x how to removethe credit card icons on checkout page?
 
Awesome Steve,

thank you.

Triple A Racing 07-19-2017 06:46 PM

Re: 5.3.3.x how to removethe credit card icons on checkout page?
 
:wink: The specific offending code is in this file that was added in XC 5.3.3.1: /skins/customer/layout/header/header.bar.checkout.logos.twig

kevinrm 07-20-2017 02:43 AM

Re: 5.3.3.x how to removethe credit card icons on checkout page?
 
Yes, I had to actually put in a ticket for that and the tech coded it out with CSS.

cflsystems 07-20-2017 05:40 AM

Re: 5.3.3.x how to removethe credit card icons on checkout page?
 
Quote:

Originally Posted by kevinrm
Yes, I had to actually put in a ticket for that and the tech coded it out with CSS.

This is not a good solution. It works but should be used as a temporary solution only.
Hiding it with css only makes it invisible to the end user. It is still in the html code.

CenturyPerf 07-20-2017 12:16 PM

Re: 5.3.3.x how to removethe credit card icons on checkout page?
 
1 Attachment(s)
At first I was not sure what this thread was talking about --- until today.

Seriously, who the f*** decided to add this to the store. I don't use all of these methods. Is it a goal of XCart to confuse customers, versus accuracy? is someone intentionally trying to make it more difficult for all of us?

ISSUE A PATCH !!!!


All times are GMT -8. The time now is 01:01 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.