VirtueMart Forum

VirtueMart 1.1.x [ Old version - no longer supported ] => Themes & Layout Problems and Customization VM 1.1 => Topic started by: Hammerhead on August 24, 2010, 16:33:08 pm

Title: How To Remove PayPal Footer?
Post by: Hammerhead on August 24, 2010, 16:33:08 pm
Can someone tell me how to remove the PayPal logo (see below) from the category page?

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

Thanks in advance!
Title: Re: How To Remove PayPal Footer?
Post by: Hammerhead on August 26, 2010, 17:44:33 pm
Bump.  Anyone?
Title: Re: How To Remove PayPal Footer?
Post by: Svetlio on August 27, 2010, 13:46:04 pm
You can use a tool like Mozilla Firefox's Firebug in order to determine where exactly the image is inserted in your code.

Then you can alter the corresponding file.
Title: Re: How To Remove PayPal Footer?
Post by: Hammerhead on August 29, 2010, 04:36:54 am
That didn't help.  In fact it confused the crap out of me.  If someone knows, please just say so.  I'm not a programmer, I just don't think that PayPal logo is appropriate when you're accepting other payment systems, and especially not for a US based store.
Title: Re: How To Remove PayPal Footer?
Post by: Hammerhead on August 29, 2010, 15:42:00 pm
Ok, I figured it out.  It's not a template at all, but VM itself.  When you select 'PayPal New API', it inserts that footer in the main content area.  Somebody ought to say something to them about this and get it out of there.
Title: Re: How To Remove PayPal Footer?
Post by: hooi on October 02, 2010, 23:25:05 pm
Could someone tell me howto de-select 'PayPal New API' please? I just can't find it.

Thanks....

---------------

Got it finally.

It's at: Store --> List Payment Methods.
then De-Activate: PayPal (New API)
Title: Re: How To Remove PayPal Footer?
Post by: lesleyc on October 13, 2010, 13:50:43 pm
Could someone tell me howto de-select 'PayPal New API' please? I just can't find it.

Thanks....

Thanks @Hammerhead and @hooi, that did the trick :) much appreciated!

---------------

Got it finally.

It's at: Store --> List Payment Methods.
then De-Activate: PayPal (New API)
Title: Re: How To Remove PayPal Footer?
Post by: sabirul on January 07, 2011, 21:25:11 pm
Here is the solution

1. Go to your site's file manager
2. Go to Component > com_virtuemart > themes > default > common
3. Open shopIndex.tpl.php in edit mode
4. Locate the following code:

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

Problem solved.
Title: Re: How To Remove PayPal Footer?
Post by: hammerman47 on February 10, 2011, 05:57:52 am
I have removed the paypal footer from my categories page but it is still there on my product pages..any ideas please..
Title: Re: How To Remove PayPal Footer?
Post by: logonworks on February 18, 2011, 00:48:42 am
Hi All !

Does someone know how to delete the PayPal footer that is displayed on the products pages ?

Thank you for your assistance !  ;D
Title: Re: How To Remove PayPal Footer?
Post by: dnlvsci on February 18, 2011, 12:14:55 pm
Here is the solution

1. Go to your site's file manager
2. Go to Component > com_virtuemart > themes > default > templates > product_details
3. Open flypage.tpl.php in edit mode
4. Locate the following code:

Code: (in 78. row)

   <?php if( isset($paypalLogo)) : ?>
      <tr>
         <td colspan="3" align="center">
            <?php echo $paypalLogo ?>
         </td>
      </tr>
   <?php endif;?>

5. Delete it.

Problem solved.
Title: Re: How To Remove PayPal Footer?
Post by: whufe on March 14, 2011, 15:37:10 pm
Hi,

   I did what dnlvsci said, delete the following code from that file. But i still see that blooding logo on my browser. Please help..! Thanks

  <?php if( isset($paypalLogo)) : ?>
      <tr>
         <td colspan="3" align="center">
            <?php echo $paypalLogo ?>
         </td>
      </tr>
   <?php endif;?>
Title: Re: How To Remove PayPal Footer?
Post by: stinga on March 14, 2011, 17:28:35 pm
G'day,

I would have thought that the
Code: [Select]
<?php if( isset($paypalLogo)) : ?>
would mean the logo can be turned off.
What sets $paypalLogo?
Title: Re: How To Remove PayPal Footer?
Post by: Brody on April 12, 2011, 07:57:23 am
Can anyone tell me how to make this show up on the main store page as well as the different category pages?
Title: Re: How To Remove PayPal Footer?
Post by: Dyaus2spear on April 12, 2011, 13:00:53 pm
Here is the solution

1. Go to your site's file manager
2. Go to Component > com_virtuemart > themes > default > common
3. Open shopIndex.tpl.php in edit mode
4. Locate the following code:

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

Problem solved.

Thanks for sharing because of this solution I also resolve my footer problem.
Title: Re: How To Remove PayPal Footer?
Post by: suau.hwang 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.
Title: Re: How To Remove PayPal Footer?
Post by: jtlswan 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...
Title: Re: How To Remove PayPal Footer?
Post by: hdwebpros on August 01, 2011, 20:36:45 pm
anyone?
Title: Re: How To Remove PayPal Footer?
Post by: vmbuilder 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;?> -->
Title: Re: How To Remove PayPal Footer?
Post by: kasperghost 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.
Title: Re: How To Remove PayPal Footer?
Post by: raunhar 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.