Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Paypal 'Icon' Contribution


mightymidget

Recommended Posts

Posted

Hi all,

 

Be grateful for a bit of advice. I've installed the ocC supported PayPal IPN module which is working fine.

 

To make things look a little better, I decided to install a small contribution that adds a paypal icon next to the paypal radio button during the checkout process.

 

http://www.oscommerce.com/community/contri...l/search,paypal

 

Unfortunately I've been trying for nearly 2 hours to get this little gif to display, and it's driving me crazy. I would have given up ages ago if it wasn't for the fact that it works perfectly on my localhost test site. But when I try to recreate this on my online host it just refuses to display?? All I get is a box for a few seconds as the page loads, then it just disapears?.

 

The only difference between my localhost test site and the live online site is that I have renamed the 'catalog' directory to 'shop' prior to installation. Could this be causing the problem? maybe the paths are pointing to the wrong for the icon directory?

 

heres the code the included readme advises to change:

 

in the /inclues/modules/payment/paypalipn.php

find

 

// class methods

function javascript_validation() {

return false;

}

 

add just above it

//get paypal images

function get_paypal_image() {

$paypal_image .= tep_image(DIR_WS_ICONS . 'paypal.gif', $value);

return $paypal_image;

}

 

 

Find

 

function selection() {

return array('id' => $this->code,

'module' => $this->title);

}

 

Change to

 

function selection() {

return array('id' => $this->code,

'module' => $this->title . '     ' . $this->get_paypal_image());

}

 

Copy paypal.gif to /images/icons/

 

Be really grateful for some advice on this. Never really ventured much into the php files so I'm a little nervous making changes.

 

Many thanks in advance

 

Andy

Posted
have you uploaded the image to the right folder?

 

regards

 

Hi,

 

Yep, put it exactly where the readme suggests. The way the page loads though gives the impression that it can't find the gif. But I've deleted and reinstalled it a number of times but with no luck?

 

That's what made me think that maybe the above code somehow points to a different path when using a different base directory named 'shop' rather than the default 'catalog'.

 

Any other idea's?

Posted
Hi,

 

Yep, put it exactly where the readme suggests. The way the page loads though gives the impression that it can't find the gif. But I've deleted and reinstalled it a number of times but with no luck?

 

That's what made me think that maybe the above code somehow points to a different path when using a different base directory named 'shop' rather than the default 'catalog'.

 

Any other idea's?

 

Managed to sort it, the problem related to my configure.php file. For some reason it was defining the 'icons' directory as /shop/icons when the correct location was shop/images/icons. Not wanting to mess anything else up, I just created a new 'icons' dir under shop and placed the paypal gif in there.

 

Cheers

 

Andy

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...