Hello,
How can I include the option to add search results to the cart (for subsequent zip downloading) for those with access to the shopping cart? It might also be nice to have a checkbox with each image found from a search, that would determine if the item should be added to the cart. Something like what is now available when viewing your cart, except that now, only individual photos, or entire albums (not search results) can be added to the cart.
Thanks very much
Posts: 40
This issue bothered me for a long time so I had a friend figure it out. It looks like he modified two files in the search folder.
in search/templates/SearchShowAll.tpl after line 123 add
in search/HighlightResults.js add this code at the bottom
Do yourself a favor and make friends with a CS major.
Posts: 40
Forgot something. You'll also need to add the following at the end of SearchShowAll.tpl just before </form>
Posts: 12
Thank you.
I really appreciate your help.
That got me half of the way there.
Now there are check boxes to add any of the images found as results from a search to the cart.
There is also a box at the bottom to add the checked images to the cart.
When I click on that box, I get a message that items were added to the cart.
However, things seem to end right after that.
There is no option to view the cart after adding the items from the search results.
To be thorough, I added one additional item to the cart just by opening an item (the conventional way, without a search).
Then I was able to view the cart, but unfortunately the items from the search did not appear in the cart.
They apparently were not added to the cart even though I saw the message indicating that they were.
So in summary there are still two outstanding problems.
1) I cannot access the cart after adding items from search results.
2) Items do not seem to be actually added to the cart, although all of the other mechanisms now seem to be in place.
Is it possible that there were additional edits that were omitted?
Just as a note for anyone else who tries this, in order to get it to the point where I now am,
I also had to de-activate then re-activate the Search and the Cart modules (in the Gallery administration of Plugins )
Thanks once again for your help.
Posts: 40
Ok, looks like you'll need to modify modules/cart/AddToCart.inc as well. My copy follows below.
Sorry I can't be more definitive on these mods but I'm a photographer by trade.
Posts: 12
Thanks. Unfortunately, the revision to that module stopped me from being able to access the cart altogether.
The code is well annotated, and I didn't notice anything that would be unique to your installation.
I really would like to use this feature, so please let me know if you have any other suggestions.
Thanks once again for your help.