Hi. In the current g2 (as well as g1), I see that we can create subalbums, but if say I have a primary album under my username and have all subalbums, but want to slideshow or add to cart everything of mine, I can't do that, since it doesn't include subalbums in it.
But I only have about 10 pics in each subalbum, and when I show my pictures in a slideshow (or add to cart to download for someone), I'd like to have it be able to do them all.
Would something like this be a fair suggestion? If so, consider it suggested ;)
Anyone agree? Or am I insane?
Posts: 8601
the underlying code for slideshow supports building a recursive slideshow, but there is no UI for it. feel free to add a feature request on sourceforge.. thanks!
(since we may not do this soon, you can make it always recursive on your site simply by changing $recursive = false to $recursive = true in your modules/slideshow/Slideshow.inc file)
Posts: 78
And what about recursive Add to cart?
Is it possible to add to cart all subalbums images? Few of my users complained that Add to cart option doesnt work. Off course that it works but they have to be in albums with images, not subalbums.
Didn't find anything similar to $recursive variable in cart module.
Posts: 78
solutions for this problem? please anyone?
Posts: 7
Any progress on this? This thread is over a year old, was wondering if there was something built in that I've missed in order to fix the "add to cart" option with subalbums.
Posts: 32509
nope, noone has edited the slideshow module yet to do that.
Posts: 8601
in fact, no one has worked on slideshow module in like a year and a half.. that continues to amaze me.
Posts: 3
I see this is a very old thread but I wonder if there is now an answer/solution to the Add to Cart recursive query. I would like my clients to be able to Add to Cart at an upper enclosing Album level and get all sub-Albums and images.
Posts: 14
i noticed this problem and wrote a quick fix for it a few weeks ago
it's just a recursive add -i'll post it later
i'm surprised no1 addressed this earlier!!
Posts: 3
Hi Aosh,
Yes! Please post your fix. I would desparately like to have this problem fixed. I myself have no real ability with code but have a staff member that I'm sure could implement your fix.
Cheers
Posts: 14
Okay, before I forget here it is. This "bug" has nothing to do with Zip Cart -even if you don't install the zipcart module, you'll notice that adding to your cart is not recursive.
The fix must go in the Cart module. 2 files need to be edited.
/modules/cart/classes/CartHelper.class
Define the following function anywhere in the class:
And in /modules/cart/AddToCart.inc around line 45-47, change:
(may be slightly different depending on which revision you're using)
to:
NOTE:
This has NOT been extensively tested -I was mostly annoyed at the functionality and decided to fix it in 10 minutes. I'm not using this module anymore but I plan to return to it in the future to make it more robust. However, I've poked at it and it seems to work fine (even with mixed jpg, mov, avi). The only bug I ran into was trying to add the root album to the cart -I didn't bother debugging it though. If you run into any problems, please let me know and I'll be happy to look into it.
Posts: 14
er, I see that it escaped some of my text.
every time you see -> replace that with ->
every time you see & replace that with &
Posts: 32509
use the code instead of the php tag. then it won't convert < > to > / <
--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage