Extending Gallery/Mambo integration to Gallery Cart

notgoddess
notgoddess's picture

Joined: 2005-04-03
Posts: 178
Posted: Wed, 2005-06-29 14:55

I'm doing some initial tests on making my Gallery Cart add-on work with CMS (Mambo specifically to start) and I wonder if anyone has any pointers.

I tried writing a separate component, but the latest Mambo won't let me install it as it's a subdir in gallery (or as far as I can tell that's the reason), but I'm not sure how to get the Gallery Component to extend to the cart (adding pages to approved includes wasn't even close :))

Gallery Cart is non-obtrusive to Gallery 1.5, other than some html wrap files that add the links, so Gallery doesn't really know it's there.

If anyone has any pointers, I'd appreciate it. My dev gallery is http://www.notgoddess.com/dev/gallery/ and I have an auditing user people can use for admin rights if needed: audit same pw
The dev gallery is my testbed, not a public showroom, so some things might behave oddly as I test new features, but hopefully it'll work to show the cart for those unfamiliar.

I don't have Mambo on this host, but I can upload it from my dev server if that would help folks.

Any advice or links or even rtfm (if you point out the right page :) would be helpful.

Thanks,
Ng

 
macallf

Joined: 2005-06-27
Posts: 4
Posted: Wed, 2005-06-29 21:28

I do not know how to write component/modules for Mambo, yet.

But I can see how it should look. One of the templates I've been trying throws up

Quote:
DB function failed with error number 1146
Table 'GalleryCart.mos_banner' doesn't exist SQL=SELECT count(*) AS numrows FROM mos_banner WHERE showBanner=1
SQL =

SELECT count(*) AS numrows FROM mos_banner WHERE showBanner=1

I have removed all of the html_wrap files for cart apart from the inline files.This removes the view cart and admin buttons for cart.

This error only appears when the drop down boxes are shown.
I've had to turn silent entry on, otherwise the cart contents display in a new window with no way back to Mambo.

Therefore the gallery component needs some changes to reflect the cart integration. A cart component needs to be written to handle the admin section of cart. Lastly a module to display cart total and to view the cart and handle checkout.

Well thats the way I see it. I will look into the integration further and will let you know what I come up with.

 
notgoddess
notgoddess's picture

Joined: 2005-04-03
Posts: 178
Posted: Sat, 2005-07-02 00:33

Update:
I changed the urls in the cart to use Gallery's makeGalleryUrl function and now the cart can be accessed just fine, but I'm not getting Mambo wrapped around the page.

I changed the header/footer functions so they don't generate if embedded (following Gallery's setup) and so now when I visit the cart and view the page source it shows only what the cart outputs, nothing else.

I assume Mambo is responsible for the other content? I just had a thought that mayhap it is a subdirectory issue (the files are not in the Gallery Root) so I'll investigate that, but if anyone has encountered this and has ideas to solve it I would be grateful.

NotGoddess

 
notgoddess
notgoddess's picture

Joined: 2005-04-03
Posts: 178
Posted: Sat, 2005-07-02 02:44

Got it! (well I hope :)
the cart used exit; which aborted Mambo, or so it seems.