Hi Optimator, thanks for your positive feedback about the plugin 🙂
Your Question: I just built the plugin to have 3 images so no there is no way to add more images ‘out-of-the-box’ in the plugin settings. However, it could be done quite easily if you were prepared to edit the plugin code…
1. Go through /products/wpc-product.php and /themefiles/single-wpcproduct.php and add your 4th and 5th images wherever code referring to the first 3 images appears (I think you’ll see how it works once you open the files)
2. We’ll need to create the extra fields in the database for the extra images so go to /includes/db-settings.php and add your extra images after the first three (line 48)
3. Now create/adjust styles in your theme CSS to make the front end look pretty with the extra images.
Pretty sure that should work so let me know how you go.
Beware: Updating the plugin in the future would overwrite any mods you make, so take a copy of custom mods or the whole plugin folder to your local PC and/or re-name the plugin in index.php so that automatic upgrades don’t take effect for this plugin on your site.
Hope that helps!
That’s great news! I’ll look into it right away. Thank you very much.
Worked like a charm 😉
Oh, and thanks for the heads up, I’ll remember to make a backup copy!
Excellent! Glad it worked.
Hey if you like the plugin it is very helpful if you can give a rating/review here. Thanks 🙂
Thanks 🙂 Marking this thread resolved now.
I’m new to all this, would someone be willing to send me the copy of code they used to add extra images. I need to add two extra images, many of the products I am displaying come in four or five different colors.
I changed my single-wpcproduct.php to look like this:
[That’s too much code to post here – please use a pastebin per the forum guidelines – see: http://codex.wordpress.org/Forum_Welcome#Posting_Code ]
Hope that helps 🙂
Well, that didn’t work out very well. Here’s the pastebin version:
single-wpcproduct.php:
http://pastebin.com/1BMRAdkQ
db-settings.php:
http://pastebin.com/NbMaxzcX
You’ll also have to make some changes to products/wpc-product.php:
http://pastebin.com/U9zpNJV4
Hope THAT was more helpful 😉