Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

E-Commerce Modules /

Discuss about the various e-commerce modules available:
Ecommerce, SS Shop, SilverCart and SwipeStripe
Alternatively, have a look the shared mailinglist.

Moderators: martimiz, Nicolaas, Sean, Ed, frankmullenger, biapar, Willr, Ingo, Jedateach, swaiba

Extending Product_Image for image size changes


Go to End


1471 Views

Avatar
joelpittet

Community Member, 4 Posts

30 October 2009 at 6:32pm

What is the best way to overwrite methods of Product_Image? I have a guess that it would be to copy that into the same path in mysite/code/products/Product_Image.php and extend the original with my changed methods and such... is that the best way? Do I need to add anything to the _config.php file too?

I am a bit of a SilverStripe noob, sorry.