VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: Armanshah on May 27, 2014, 12:11:09 PM

Title: How to remove PayPal logo from product page?
Post by: Armanshah on May 27, 2014, 12:11:09 PM
Please help to remove this image from product pages.

(https://www.paypal.com/en_GB/i/bnr/horizontal_solution_PP.gif)

Joomla 2.5.20

Virtuemart 2.0.26d

Firebug shows this result -
<a href="#">
<img id="paypalLogo" border="0" style="cursor:pointer;" alt="PayPal Checkout Available" src="https://www.paypal.com/en_GB/i/bnr/horizontal_solution_PP.gif">
</a>

Don't know where to edit.

Thanks in advance!
Title: Re: How to remove PayPal logo from product page?
Post by: jenkinhill on May 27, 2014, 12:32:10 PM
That is being added by your PayPal payment plugin or inserted by a commercial template. http://forum.virtuemart.net/index.php?topic=108212.0

I would hide it using css,  #paypalLogo {display:none;}
Title: Re: How to remove PayPal logo from product page?
Post by: Armanshah on May 27, 2014, 12:47:48 PM
Off course.
But the problem is that I can't find that "paypalLogo"
Total Commander didn't help.
If you tell me the file and line to edit I will be very grateful!
Title: Re: How to remove PayPal logo from product page?
Post by: GJC Web Design on May 27, 2014, 12:48:42 PM
new to me but if you enable payapl express this shows up in the product details template by  this code block

if (is_array($this->productDisplayPayments)) {
    foreach ($this->productDisplayPayments as $productDisplayPayment) {
echo $productDisplayPayment . '<br />';
    }
}


the actual img link is in   plugins/vmpayment/paypal/paypal/helpers/paypalexp.php  ~ line 905

$paypal_buttonurls = array('en_US' => 'https://www.paypal.com/en_US/i/logo/PayPal_mark_60x38.gif',
         'en_GB' => 'https://www.paypal.com/en_GB/i/bnr/horizontal_solution_PP.gif',

etc

as this just seems to provide an info link guess you can dump it
Title: Re: How to remove PayPal logo from product page?
Post by: Armanshah on May 27, 2014, 14:30:48 PM
Thanks a lot!
Problem solved!!!

Though didn't know how to dump it without getting errors (will appreciate a hint), changed that image with another one.