If you move the code within the tpl_ file it will display in a different location of the page ...Originally Posted by dandownunder
If you move the code within the tpl_ file it will display in a different location of the page ...Originally Posted by dandownunder
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
1. includes/modules/payment/paypal.php
around line 119 you see:change to:PHP Code:function selection() {
return array('id' => $this->code,
'module' => $this->title);
}
PHP Code:function selection() {
return array('id' => $this->code,
'module' => '<img src="images/paypal.gif" alt="' . $this->title . '" />');
}
2. Now put a "paypal.gif" in your /images folder
3. Now you'll have an IE bug to work around, so do this:
includes/templates/YOURTEMPLATE/templates/tpl_checkout_payment_default.php
line 136 has:
change to:HTML Code:<label for="pmt-<?php echo $selection[$i]['id']; ?>" class="radioButtonLabel"><?php echo $selection[$i]['module']; ?></label>
HTML Code:<label for="pmt-<?php echo $selection[$i]['id']; ?>" class="radioButtonLabel"<?php if (strstr(strtolower($selection[$i]['module']), '<img')) echo ' onclick="document.getElementById(\'pmt-'.$selection[$i]['id'].\').click();"'; ?>><?php echo $selection[$i]['module']; ?></label>
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
Thanks for that guys, I will give this a play with and see how it comes out.
What is the bug I'll have to deal with ?
Cheers
Dan.
I took a different approach:
/includes/languages/english/modules/payment/paypal.php changed(html validation likes the alt in there)Code:define('MODULE_PAYMENT_PAYPAL_TEXT_CATALOG_TITLE', 'Paypal'); to define('MODULE_PAYMENT_PAYPAL_TEXT_CATALOG_TITLE', ' <img src="xinha_editor.html/images/image.gif" alt="paypal"/>');
then put the image in the images folder
not sure where I snagged that gif maybe right off the paypal site
However I always view Ajeh and Dr. Byte solves with great attention - they be guru
I have tried the above but am getting a red X with the word paypal behind it. I grabbed the paypal logo from their site, but keep getting the same result. Can someone explain why it doesn't display the logo?
Thanks,
NurseryGuy