Welcome to Geeklog, Anonymous Friday, November 22 2024 @ 09:31 pm EST
Geeklog Forums
New Plugin: spreadshirt.de T-Shirt store integration
Status: offline
jmichael
Forum User
Chatty
Registered: 04/08/04
Posts: 47
This may be of interest to a limited number of folks here, but I'll announce it anway ;-)
You may be aware of the fabulous integration script to integrate a cafepress.com store in a Geeklog site.
spreadshirt.de is a similar outfit, but they operate out of Germany. So if you're interested in integrating a german T-Shirt (&more) store in your site, this may be for you!
They offer a PHP-Nuke module for download on their site. I figured this would make a great newbie project. I ended up spending 4 hours glued to the PC to convert the PHP-Nuke thingie into a working Geeklog module.
I still need to clean up some rough edges, but you can take a look at http://www.lndcentral.com/spreadshop. Note: The block isn't installed on that site yet.
Here's how it works:
It creates two tables in your database.
The admin page allows you to configure your shop id, whether you want to display the store in an iframe or in a pop-up and how big the thing should be.
Another page lets you specifiy whether you want one large picture or four small ones in a block and if the picture(s) should be chosen randomly. This will also import an XML feed from spreadshirt.de with the items in your store. The block generator will then (randomly) get its data from the database.
Unfortunately, the picture in the block does NOT link to the integrated store, but to the "real" store. That's the ugly thing about just putting the store into an iframe. I don't see a way to make that link go to the iframe and the correct detail page. Oh well, better than nothing and that's the way their original PHP-Nuke thingie works.
Is there a way to include the block code in the plugin? It seems kinda awkward to have to include the block code in lib-custom manually.
Anyway, I'll need some more time to get it polished up a bit and packaged up, but if you're interested, let me know and I'll put you on a list.
Of course, I'll also try to get a T-Shirt or two from them for letting them have (& distribute) the plugin ;-)
You may be aware of the fabulous integration script to integrate a cafepress.com store in a Geeklog site.
spreadshirt.de is a similar outfit, but they operate out of Germany. So if you're interested in integrating a german T-Shirt (&more) store in your site, this may be for you!
They offer a PHP-Nuke module for download on their site. I figured this would make a great newbie project. I ended up spending 4 hours glued to the PC to convert the PHP-Nuke thingie into a working Geeklog module.
I still need to clean up some rough edges, but you can take a look at http://www.lndcentral.com/spreadshop. Note: The block isn't installed on that site yet.
Here's how it works:
It creates two tables in your database.
The admin page allows you to configure your shop id, whether you want to display the store in an iframe or in a pop-up and how big the thing should be.
Another page lets you specifiy whether you want one large picture or four small ones in a block and if the picture(s) should be chosen randomly. This will also import an XML feed from spreadshirt.de with the items in your store. The block generator will then (randomly) get its data from the database.
Unfortunately, the picture in the block does NOT link to the integrated store, but to the "real" store. That's the ugly thing about just putting the store into an iframe. I don't see a way to make that link go to the iframe and the correct detail page. Oh well, better than nothing and that's the way their original PHP-Nuke thingie works.
Is there a way to include the block code in the plugin? It seems kinda awkward to have to include the block code in lib-custom manually.
Anyway, I'll need some more time to get it polished up a bit and packaged up, but if you're interested, let me know and I'll put you on a list.
Of course, I'll also try to get a T-Shirt or two from them for letting them have (& distribute) the plugin ;-)
17
12
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by jmichael: Is there a way to include the block code in the plugin? It seems kinda awkward to have to include the block code in lib-custom manually.
Sure: Include it in your plugin's functions.inc (the forum and journal plugins do that, too).
bye, Dirk
15
17
Quote
Status: offline
beewee
Forum User
Full Member
Registered: 08/05/03
Posts: 969
Location:The Netherlands, where else?
Hey, remember, this is commercial! That spreadshirt.de company places banners and ads on your screen, and you will have to buy all your T-shirt etc. over there. And a banner-free program costs money of course.
There are oscommerce plugins available for people who want to make an e-commerce site with GL.
Dutch Geeklog sites about camping/hiking:
www.kampeerzaken.nl | www.campersite.nl | www.caravans.nl | www.caravans.net
There are oscommerce plugins available for people who want to make an e-commerce site with GL.
Dutch Geeklog sites about camping/hiking:
www.kampeerzaken.nl | www.campersite.nl | www.caravans.nl | www.caravans.net
17
15
Quote
Dirk: I've tried that but all I get in the block is "Error in PHP Block. Function, phpblock_spreadshop, does not exist." - A function with that name *is* in functions.inc. Will need to do more digging here.
Update: I had uploaded the changed functions.inc to the wrong server (another of my GL sites that was open in SmartFTP. Yikes ;-) It works like a charm with the block in functions.inc now.
beewee: Why, sure it's commercial. So is cafepress.com. I am aware of osCommerce, but the Geeklog integration seems to never have materiaized for public consumption and I don't really want to go into the T-Shirt printing business myself. Sites like cafepress.com are pretty much the 'standard' way of making merchandise available from a website. I am also not quite happy about the ad banner that comes with their shop and I think the cafepress.com integration is much cooler ...
.. but: the spreadshop plugin has the product names, descriptions, prices and URL for pictures in its database tables. I assume one also come up with their own shop page using data from the database and linking the picture to the spreadshirt.de site.
Update: I had uploaded the changed functions.inc to the wrong server (another of my GL sites that was open in SmartFTP. Yikes ;-) It works like a charm with the block in functions.inc now.
beewee: Why, sure it's commercial. So is cafepress.com. I am aware of osCommerce, but the Geeklog integration seems to never have materiaized for public consumption and I don't really want to go into the T-Shirt printing business myself. Sites like cafepress.com are pretty much the 'standard' way of making merchandise available from a website. I am also not quite happy about the ad banner that comes with their shop and I think the cafepress.com integration is much cooler ...
.. but: the spreadshop plugin has the product names, descriptions, prices and URL for pictures in its database tables. I assume one also come up with their own shop page using data from the database and linking the picture to the spreadshirt.de site.
17
12
Quote
Status: offline
beewee
Forum User
Full Member
Registered: 08/05/03
Posts: 969
Location:The Netherlands, where else?
All times are EST. The time is now 09:31 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content