Apologies for bumping an old thread, I wanted to post my solution. I did do a search for other Shutterfly extensions, but no luck.
In the Shutterfly.php file:
- comment out the addPluginScript script
In the image.php file within your theme:
- add the following before the </head> tag
<?php
if(file_exists(SERVERPATH . "/../zp-extensions/shutterfly/")) {
echo '<link rel="stylesheet" href="' . 'zp-extensions' . '/shutterfly/shutterfly.css" type="text/css" />';
}
?>
This will include the css file in the header and allow the Shutterfly code to work.
I wasn't a fan of the existing button (personal preference). I also noticed that if you weren't logged in to Shutterfly first it wouldn't add the photo the cart.
So, I also added the following:
In Shutterfly.php:
- add the following after the function printShutterfly() line
echo '<script type="text/javascript">
function submitform()
{
document.forms["shutform"].submit();
}
</script>';
- comment out the <input type="submit" line
- add the following 2 lines after the commented line
echo ' Sign into Shutterfly and click ';
echo ' here to get a copy.';
This will replace the button with 2 links, one allowing a user to log in, the other adding the image to the cart.