[Paypal checkout / Matrix] button confusion
racepics
Joined: 2006-03-30
Posts: 39 |
![]() |
I'm using both Email Checkout and Paypal Checkout modules. Is there a way to replace the standard Paypal logo/button with one the looks that same as all the others but clearly states [CLICK HERE TO PAY BY CREDIT CARD] or something else blindingly obvious |
|
alecmyers
Joined: 2006-08-01
Posts: 4342 |
![]() |
It's pretty obvious, I think. The html for the paypal button is in one of the template files (.tpl) in the checkoutpaypal module. If you're familiar with smarty/html you can change it to whatever you want. Follow the instrutions at the top of the file *carefully* regarding modifying templates. |
|
racepics
Joined: 2006-03-30
Posts: 39 |
![]() |
Thanks alec - The paypal button is pretty obvious to those who know what paypal is In modules/checkoutpaypal/templates/ the bottom of the PaymentButton.tpl file we have: <div style="width:200px"> I have tried changing the top src= line to show a button I've placed in modules/checkoutpaypal/images but that changes nothing in the website. I cant see any info in the top of the file about modifying it.. This is the whole file: {if $payment.paymentVariables.orderTotal > 0} |
|
alecmyers
Joined: 2006-08-01
Posts: 4342 |
![]() |
Quote:
I have tried changing the top src= line to show a button I've placed in modules/checkoutpaypal/images but that changes nothing in the website. Save the modified file in a /local/ subdirectory. Leave the original unchanged. Clear the template cache after modifying template files (or turn off template caching while editing templates). Quote:
I cant see any info in the top of the file about modifying it.. What about this bit that you forgot to quote? At the top of the file? Quote:
{* It's dull dull dull to keep having to repeat the same advice because people don't read things. |
|
racepics
Joined: 2006-03-30
Posts: 39 |
![]() |
Quote:
What about this bit that you forgot to quote? At the top of the file? I do not have that info in the top on my file, so I can only assume its been removed. (I'm not the only person who has worked on this site Assuming that changing the top src= line is still the right thing to do to change the button, I will try again with the cache cleared. Thanks. |
|
alecmyers
Joined: 2006-08-01
Posts: 4342 |
![]() |
Quote:
I'm not the only person who has worked on this site Ok - I totally understand. But something to bear in mind is that I (or anyone) can only give advice based on the files as distributed from the repository, we have to have a common baseline to work from - so it's up to you to make sure that if somebody gives you advice to change a particular line of a file, or reference the contents of a particular file, that you take the trouble to make sure you're looking at the same file contents as they're looking at. (Of course I could have forgotten to include that header in the relevant template file, but having checked, I didn't forget.) If you just want a regular button like the checkoutemail module, then copy the code from the equivalent checkoutemail template. Your "changing the src tag" idea doesn't sound at all correct to me. |
|