The RiffTrax Store

Posts: 1047
Joined: 08/14/2007
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.

I just posted a brief write-up (okay maybe not-so-brief) about our new Shopping site for RiffTrax.com here: http://www.ubercart.org/site/1809.

In case you don't know what it is ...

[RiffTrax.com is] an innovative new site featuring the hilarious DVD commentaries of Michael J. Nelson - Star of the legendary Mystery Science Theater 3000!

At RiffTrax.com, you can download Mike's feature-length commentaries and listen to these "RiffTrax" in sync with your favorite, and not so favorite DVDs. It's like watching a movie with your funniest friend.

We sell downloadable commentaries in the vein of MST3k. Lots of fun stuff going on, I hope you will all take a look and maybe buy some tracks Smiling

You can see some samples at http://www.youtube.com/rifftrax and read about us on MSNBC.com and in The New York Times (1520 diggs!) View more at our blog!

And if you have free time, we have a very active community on our forum.

--

"Pain don't hurt." - Dalton

Mike Nelson's RiffTrax! www.rifftrax.com

Posts: 4117
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

Very awesome... glad it's made it live, and I hope the workflow stuff doesn't screw you up too much while I'm trying to find some time to think about it. Sticking out tongue

Posts: 1047
Joined: 08/14/2007
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.

Hehe... well it is kind of a problem still ... order status not updating. But we can talk about that in another thread Smiling

--

"Pain don't hurt." - Dalton

Mike Nelson's RiffTrax! www.rifftrax.com

Posts: 86
Joined: 02/06/2008

I'd like to setup ubercart in a similar way to rifftrax. Particularly the way each title has the ntsc, pal, dvd option.

Can someone pls show me how it is done ?

Posts: 1047
Joined: 08/14/2007
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.

This was easy. I just created a new Select list field in CCK, and then in my product template (Using the Contemplate module) I put a switch conditional in there:

<?php
<div id="region-codes">
  <?
php
switch (ereg("NTSC", $node->content['field_region_codes']['#value'])) {
default:
  echo
"<div id=\"region-img-off\">";
  break;
case
TRUE:
  echo
"<div id=\"region-img-on\">";
  break;
}
?>

<img src="/<?php print path_to_theme(); ?>/images/region-ntsc.gif"></div>

<?php
switch (ereg("PAL", $node->content['field_region_codes']['#value'])) {

default:
  echo
"<div id=\"region-img-off\">";
  break;
case
TRUE:
  echo
"<div id=\"region-img-on\">";
  break;
}
?>


<img src="/<?php print path_to_theme(); ?>/images/region-pal.gif"</div>

So what it's doing is, no matter what it's showing the images, but I setup CSS to set the opacity for the image to 70% if the div's id is "region-img-off" (which is what the div id becomes unless it finds that particular field in the CCK select element, in which case, the conditional returns TRUE).

Other things to notice: I created an image for each Region - region-pal.gif, region-ntsc.gif, etc. Secondly, the ereg function I used to check my CCK field, which I called "field_region_codes"... the CCK part is important because this will need to refer to whatever you call your select list, if that's the route you take. Mine was just the "key" was the same as the "element", i.e.:

ntsc|NTSC
pal|PAL
riff|RIFF

So you could use those two switch blocks as a starting point, and modify your code to your needs. Let me know if you have any other questions. (The CSS is important too, you'll want to make sure your widths and floats/positioning are all correct so you have the images showing up where they need to go!)

--

"Pain don't hurt." - Dalton

Mike Nelson's RiffTrax! www.rifftrax.com

Posts: 86
Joined: 02/06/2008

whoa, nice. OK so on my drupal I need what mods exactly ?

From your reply I see...

Contemplate
CCK

Would it be ok if I pm you for additional info ? Thanks again for the reply.

Another question is how did rifftrax get the rights to sell clips to blockbusters ?? I am interested, not critical...

Posts: 1047
Joined: 08/14/2007
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.

We don't sell anything from the movie, the only video from the original source is used in a short-form sample format. The product we sell (unless it's our own movie we have the rights to) is just a commentary in mp3 form.

And yes, I use Contemplate and CCK - I posted more info about the major modules I was employing. Feel free to PM me for more info.

--

"Pain don't hurt." - Dalton

Mike Nelson's RiffTrax! www.rifftrax.com

Posts: 86
Joined: 02/06/2008

TP, How did you create the new Select list field in CCK ?

Posts: 1047
Joined: 08/14/2007
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.

I think it's a built-in option with CCK. (If not you might need to download one of the additional CCK modules...). You go to /admin/content/types/product and from there you can Manage or Add new fields.

So for the Select List, which drives the NTSC / PAL badges (and I'm implementing something right now that is a node selection list for the "riffers") - you can give it an id / element association however you like:
ID | List Item Value
--------------------
1 | One
2 | Two
3 | Three

(The first value, the ID, is what gets stored in your database table. content_type_product, if I'm not mistaken, or possibly content_field_type_{your-field-name-here)

--

"Pain don't hurt." - Dalton

Mike Nelson's RiffTrax! www.rifftrax.com

Posts: 86
Joined: 02/06/2008

Wow, I'm looking at all the CCK mods and I'm scratching my head !
http://drupal.org/project/Modules/category/88

I've enabled option widgets.I've added the content taxonomy mod.

All I want is option checkboxes each with a different price. Similar to rifftrax, ie: dvd=$20 | mp3 = $5 | poster=$10

Here's where I'm stuck. After adding checkbox fields, the checkboxes just don't appear.

AttachmentSize
addfields.jpg32.81 KB
Posts: 1047
Joined: 08/14/2007
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.

Oh, the price options aren't done through any CCK field - they are just done with Ubercart. When you edit a product you can create an "Attribute" with different Options. Although if you're going to be calculating one product as several, that might be a bit harder.

I guess it's a question of do you want the mp3s, DVDs and Posters to be tied to ONE product? I think they should be separate, personally. But then you can link them using a "node reference" select list, again in CCK.

Here's a list of CCK modules I have installed (may not be using all of them):
Content
Content Copy
Date
Date Import
Fieldgroup
Image
Link
Node Reference
Number
Option Widgets
Text

I don't have time to link you to them all but I'm sure you can find them on drupal.org Smiling
User reference

--

"Pain don't hurt." - Dalton

Mike Nelson's RiffTrax! www.rifftrax.com

Posts: 86
Joined: 02/06/2008

torgosPizza wrote:
I think they should be separate, personally.

I completely agree. There have to be categories of product type : DVDs, mp3s, posters and each product available separately.

Then again each product has to have multiple options, each with its own price.

torgosPizza wrote:
But then you can link them using a "node reference" select list, again in CCK.

Hmm, now there's something else I have to figure out !

Thanks for the list of mods. That's a start and I'll get mine to match.

Posts: 86
Joined: 02/06/2008

torgosPizza wrote:
When you edit a product you can create an "Attribute" with different Options.

I'm lost - where do you create the attribute with different options

Posts: 1047
Joined: 08/14/2007
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.

If you notice on our site, we have categories of products: Riffs, DVDs, On Demand Video, and "Goodies" (which includes stickers and whatnot). I did this using the Taxonomy module - you can attach Taxonomy vocabularies to the Product node type, and use that to categorize the products in your store. (Then you can create Views pages, like our Catalog, that pulls products belonging to one category - like "DVDs" - or even one subcategory, like DVDS > Action Movies.

The attributes are done in the attribute administration. When you Edit a product, click the "Attributes" tab. (This has to be done after a product is already created ... which is kind of a pain, because you have to go BACK to the Edit form. Something I'd like the Uberdudes to consider changing, so you can go through a multi-step form to create your product, add Attributes and Features, THEN submit it for publication).

You should look up these modules (Taxonomy and CCK) and read through the forum before you go full-bore into developing your site. I had to spend many days reading up and tinkering, and reading other case use reports, before I was able to fully (or even partially!) understand what these great modules can do. I would create a test site as well, that way you can practice, tweak and experiment before making your content live to the public.

--

"Pain don't hurt." - Dalton

Mike Nelson's RiffTrax! www.rifftrax.com

Posts: 86
Joined: 02/06/2008

Thanks. I'm currently reading up.

On a separate note, I'm pretty impressed at what hierarchial select mod does.
http://wimleers.com/demo/hierarchical-select

Wonder how this could be implemented in a cart scenario.