Author Topic: How To Remove PayPal Footer?  (Read 29770 times)

suau.hwang

  • Beginner
  • *
  • Posts: 1
Re: How To Remove PayPal Footer?
« Reply #15 on: May 14, 2011, 12:35:11 pm »
same problem here, but figured it out with the "paypal hint":

Virtuemart Administration >> Store >> List Payment Methods >> select "Paypal (new API)" and unpublish.

hope this helps.

jtlswan

  • Beginner
  • *
  • Posts: 9
Re: How To Remove PayPal Footer?
« Reply #16 on: July 15, 2011, 18:29:54 pm »
I am using PayPal as my gateway, but I don't want that logo on every page. I'd like to remove it until the very end...

hdwebpros

  • Beginner
  • *
  • Posts: 25
Re: How To Remove PayPal Footer?
« Reply #17 on: August 01, 2011, 20:36:45 pm »
anyone?

vmbuilder

  • Beginner
  • *
  • Posts: 21
Re: How To Remove PayPal Footer?
« Reply #18 on: August 06, 2011, 11:16:10 am »
Thanks dnlvsci & sabirul. Lines could also be commented out (in case of future paypal-logo-need...)

For example, to remove logo from product pages: open file flypage.tpl.php (components/com_virtuemart/themes/default/templates/product_details), comment out (ie. add '<!--' in front and '-->' after) the relevant section (line 79ish). Still learning here...

Code: [Select]
<!-- <?php if( isset($paypalLogo)) : ?>
<tr>
<td colspan="3" align="center">
<?php echo $paypalLogo ?>
</td>
</tr>
<?php endif;?> -->
Joomla 1.5.23 VM 1.1.19

kasperghost

  • Beginner
  • *
  • Posts: 3
Re: How To Remove PayPal Footer?
« Reply #19 on: September 08, 2011, 19:26:57 pm »
Hello guys, my solution to this problem is the following.

I wanted to have an extra option to switch on/off Paypal Logo under Configuration of Virtuemart by going to
Admin Configuration -> Site -> Layout (select theme here eg. Default ) and press the configuration button

* by <theme name> I mean under Joomla! \components\com_virtuemart\themes *

<theme name>\theme.xml  inside <params> section add the following code prefferably before the </params> ending tag

Code: [Select]
        <param name="@spacer" type="spacer" default="" label="" description="" />
        <param name="paypalLogo" type="radio" default="0" label="Show PayPal Logo?" description="Show paypal logo at the end of index and product detail pages">
<option value="1">Yes</option>
<option value="0">No</option>
</param>



<theme name>\templates\common\shopIndex.tpl.php  replace

Code: [Select]
<?php if( isset($paypalLogo)) : ?>
<div class="vmRecent" style="padding: 10px; text-align: center;">
<?php echo $paypalLogo?>
</div>
<?php endif; ?>

with

Code: [Select]
<div class="vmRecent" style="padding: 10px; text-align: center;">
<?php if( $this->get_cfg 'paypalLogo' )) { echo $paypalLogo; } ?>
</div>


<theme name>\templates\product_details\flypage.tpl.php  replace

Code: [Select]
<?php if( isset($paypalLogo)) : ?>

<div align="center">
<?php echo $paypalLogo ?>
</div>

<?php endif;?>

with

Code: [Select]
<div align="center">
<?php if( $this->get_cfg 'paypalLogo' )) { echo $paypalLogo; } ?>
</div>


that's it!
i hope its useful to all of you out there  :)
have fun guys!
Simon Ka.

raunhar

  • Jr. Member
  • **
  • Posts: 241
Re: How To Remove PayPal Footer?
« Reply #20 on: January 07, 2012, 06:40:25 am »
Thanks.
This helped in VM 1.9
But in VM2.0 there is no such folder themes.