vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=182424

Cafe Press
by Dylanblitz
14 Jun 2008 01:04

4 Attachment(s)
At this time this mod is not functioning correctly. Cafepress has redone their free site template and it will take a rewrite of this mod to get it to work again. Not extremely difficult, just time consuming. Unfortunately, 2 jobs, a sick kid and commercial work leaves free time few and far between nowadays. I will try and work on it when I can. If any other coder out there is interested they are free to take what I have and run with it, just like Creed posted on his original code.


This is a reworked version of the abandoned Cafe Press mod done by Creed.

This add-on will allow you to add all the items from any of your Cafe Press store's or multiples if you so choose. If you have multiple stores you are going to use, make sure you separate each store name with a comma.

This add-on works with Cafe Press basic store, as well as with premium stores.

Two files to upload.
One (optional) Template Edit.

Basic Store Demo

Basic Store Single Item Demo

If you have at least 2.0.3 installed then only change needed is to replace the shop.php file. You do not need to reimport the product.

PREMIUM OWNERS PLEASE READ!!
I will not be able to officially support the shops of premium owners. The main problem is that there is no standardization on the templates available to premium users, especially in the css and notes markup which is what I count on for the script, and it's unrealistic to try and code for each one. The shop works for premium shops with the default template and no css added. A lot of the templates mess up the formatting.

I will help with what I can but there is only so much I can do.
When asking for help please include the following:
path to your shop.php file
store id
template used (if possible)


Version History
v2.0.8 - [Tue 22th July 2008]
Removed Call-time pass-by-reference
Modified code to be xhtml valid (Thanks Enclave)

v2.0.7 - [Fri 11th July 2008]
Fixed category links

v2.0.6 - [Fri 27th June 2008]
Fixed link to create your own online shop

v2.0.5 - [Fri 27th June 2008]
Moved View Cart button to get it out of the Add to Cart form
Fixed hard code from store.php to shop.php
Added security for GET variable *Thanks Tim :)

v2.0.4 - [Fri 27th June 2008]
Removed cream background color on item view
Added navbar link to go back to main shop
Fixed mouseover color changes
Fixed Larger Image link

v2.0.3 - [Thur 26th June 2008]
Changed into a VB Product
Moved settings to AdminCP
Added AdSense capabilities
fixed bug with accessing some images on local drive instead of cafepress

v2.0.1 - [Sat 14th June 2008]
Changed qualification to pull in content to deal with multiple page types
(shop.php File Change only, nothing else needed)

v2.0.0 - [Fri 13th June 2008]
Initial Release

Hornstar 14 Jun 2008 01:13

Looks good, i've been meaning to sell apparel on my site for some time, if im right, this will help with that through cafe press.

dreads 14 Jun 2008 01:18

Ah I only wished that CafePress did not request a tax id

MikeHolohan 14 Jun 2008 05:56

Will definitely check this out...

logicuk 14 Jun 2008 08:31

Quote:

Originally Posted by dreads (Post 1548805)
Ah I only wished that CafePress did not request a tax id

what about http://zazzle.com/ ?

Hornstar 14 Jun 2008 08:55

Can you create custom shirts from the site, and then sell them through this? and where is the checkout done through?

Dylanblitz 14 Jun 2008 09:25

Quote:

Originally Posted by hornstar1337 (Post 1548984)
Can you create custom shirts from the site, and then sell them through this? and where is the checkout done through?

No, this is just a way to display your existing cafe press account while staying on your forum. The checkout and shopping cart is done with cafe press.

sdavis2702 14 Jun 2008 11:22

Oh snap... this is right up my lane. I'm going to try this out definately. If it works the way I'm thinking it will... this will probably be one of my favorite hacks.

Wait something isn't working for me. I followed the directions just fine but my items from my shop aren't displaying on my site. Any clue why this is happening? My shop name is AFCC... which I replaced "you_store_name" with on the PHP. Just not working for some reason. The site is in my sig and the link is in my NavBar. Thanks!

Dylanblitz 14 Jun 2008 12:09

Quote:

Originally Posted by sdavis2702 (Post 1549031)
Oh snap... this is right up my lane. I'm going to try this out definately. If it works the way I'm thinking it will... this will probably be one of my favorite hacks.

Wait something isn't working for me. I followed the directions just fine but my items from my shop aren't displaying on my site. Any clue why this is happening? My shop name is AFCC... which I replaced "you_store_name" with on the PHP. Just not working for some reason. The site is in my sig and the link is in my NavBar. Thanks!

Hmm, do you have a premium site or basic? I just signed up for basic to do testing, looks like some code is different on your site though.

sdavis2702 14 Jun 2008 12:25

I believe I am in the free trial period of a premium site... could that be the issue?

Dylanblitz 14 Jun 2008 12:30

Quote:

Originally Posted by sdavis2702 (Post 1549053)
I believe I am in the free trial period of a premium site... could that be the issue?

I sent you a pm with a tester to look at. It might be a difference in how their code works between premium vs free. Let me know if what I sent you will work. I'm not 100% happy with the compromise but it's the best I can do without them having better tags.

sdavis2702 14 Jun 2008 12:33

Alright thanks a lot I'll check it out now. If we can't get it to work I'll use a basic shop. This hack is worth it!

Dylanblitz 14 Jun 2008 12:44

1 Attachment(s)
Quote:

Originally Posted by sdavis2702 (Post 1549058)
Alright thanks a lot I'll check it out now. If we can't get it to work I'll use a basic shop. This hack is worth it!

You want to give this one a try? I think it'll work a lot better. If it does then I'll change the code.
It's all ready to go with your info. Just upload it to your forums folder.

sdavis2702 14 Jun 2008 12:56

It's working! Looks like I might have to try and modify some stuff but it's showing :) Thanks a lot bro!!! If I can get this running the way I need it to I'll be sure to shoot you a small donation!

MikeHolohan 14 Jun 2008 13:03

This is awesome, works really well, thanks, Mike.


All times are GMT. The time now is 05:37.

Powered by vBulletin® Version 3.8.14
Copyright © 2020, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.