40 replies [Last post]
patrickhannon86's picture
Offline
Joined: 08/18/2009
Juice: 9
Was this information Helpful?

I want to be able to have different tabs that would load reviews, specs, etc via ajax.

Here is an example of what I'm looking for:
http://www.bestbuy.com/site/olspage.jsp?skuId=8129447&st=office&type=pro...

AJAX isnt as necessary as the tabs in each product. I'm fairly certainly I have seen this through a module already. Can anyone shed some light?

stephthegeek's picture
Offline
Theminator
Joined: 10/20/2007
Juice: 575
Re: Product Tabs

Depending on where your content for these tabs comes from and how you want to manage it: http://drupal.org/project/quicktabs or http://drupal.org/project/cck_fieldgroup_tabs

Gorgeous original Drupal themes (and Ubercart themes!) ~ Psst: more Ubercart themes on our new site

patrickhannon86's picture
Offline
Joined: 08/18/2009
Juice: 9
Re: Re: Product Tabs

Thanks for the quick reply!

I think this should be the case with the CCK tabs, but would quicktabs allow me to add fields to the product input and then be automatically displayed on the product page?

They both look good, but quicktabs looks to be more stable.

stephthegeek's picture
Offline
Theminator
Joined: 10/20/2007
Juice: 575
Re: Re: Re: Product Tabs

Quicktabs is definitely the more supported/stable module, but I've never run into problems with CCK tabs either -- it's a simple module.

In order to have fields per-product show in Quicktabs though, you'd need to set up some views of those fields and use a views argument to pull in the current product. If that was total gobbledygook to you then you probably want to go with CCK tabs for simplicity Smiling

Gorgeous original Drupal themes (and Ubercart themes!) ~ Psst: more Ubercart themes on our new site

patrickhannon86's picture
Offline
Joined: 08/18/2009
Juice: 9
Re: Re: Re: Re: Product Tabs

Thanks for all your help so far. I'm going with CCK tabs, but I dont understand how to set it up. I created a group called "product" but when I go to add fields to the group like "description", "specs", and "features" the only option I have for field type is "File" or "Image".

Can you explain where I'm going wrong here?

stephthegeek's picture
Offline
Theminator
Joined: 10/20/2007
Juice: 575
Re: Re: Re: Re: Re: Product Tabs

Did you put them in fieldgroups? The module turns fieldsets (like what you see below when making a post on here for "File attachments") into tabs. You'll get the options to use tabs on the fieldgroups.

Gorgeous original Drupal themes (and Ubercart themes!) ~ Psst: more Ubercart themes on our new site

patrickhannon86's picture
Offline
Joined: 08/18/2009
Juice: 9
Re: Re: Re: Re: Re: Re: Product Tabs

That was my stupid mistake. I didnt enable Text under CCK. I got it working, but I'm seeing some weird formatting issues. Take a look at the Features tab if you dont mind: http://sandbox.patrickhannon.net/vlachos/ubercart/catalog/synergy-system.... When I click on it, the original text is pushed up and off to the side.

On another note, I was hoping for the original text to remain static, while Features, Specs, etc would be halfway down the page and controlled by AJAX. Is this possible in CCK or Quicktabs? Does Quicktabs support data from field groups? I would like a way to input the features, specs, etc when creating/editing the product (as CCK does).

Let me know. Thanks!

cedrix's picture
Offline
Joined: 08/13/2009
Juice: 6
same issue

hi,

i'm exactly having the same problem. is there any solution in sight?

greets
Ced

BigMike's picture
Offline
Joined: 10/20/2008
Juice: 1096
patrickhannon86 wrote: I
patrickhannon86 wrote:

I created a group called "product" but when I go to add fields to the group like "description", "specs", and "features" the only option I have for field type is "File" or "Image".

patrickhannon86 wrote:

I didnt enable Text under CCK. I got it working

patrickhannon86 or anyone,

How did you figure this out? I am researching on how to get product tabs integrated on my site and this happens to be the same issue I have with a different module, jEditable. I posted a descriptive question here and haven't figured it out yet. Please see: http://drupal.org/node/1027610

Here is a snipit:

BigMike wrote:

...when I go to "Display Fields" for my Product node (is this what the README.txt file calls "display settings" ?= admin/content/node-type//display), and all I have is one field (in my case "Image") associated with my Ubercart Product node.

So I check the "Manage Fields" tab of this node and I have a big list of stuff here but I can't do anything to any of them other than the Image content which is of a "File" type. At the bottom of the list there is a "New field" section that I can add, which has a Label text-box, a Field name text-box, a Type of data to store select-box (only option is "File"), and a Form element select-box with only two options for "File Upload" or "Image".

Thanks!
Mike

EDIT: I just installed CCK Fieldgroup Tabs & Tabs and I now have a "New group" option at the bottom of my admin/content/node-type/product/fields page. But I still don't know what I'm supposed to be doing.

Could someone shed some light for me? :inthedark:

BigMike's picture
Offline
Joined: 10/20/2008
Juice: 1096
Re: patrickhannon86 wrote: I

Okay, I created a "New group" called 'Specs' and configured it to be a Tab. I then disabled my custom node-product.tpl.php theme so I can see the default UC output and I can't figure out how/where to get the tab 'Specs' to appear on my products.

I'm sure I am missing something really trivial. Any help is appreciated. Thanks!
Mike

EDIT: Ahhhhh I found "CCK Fieldgroups Tabs" at the bottom of admin/content/node-type/product. Looking into that now...

EDIT: Okay, so I see a new field appears in my "Manage Fields" page, but there is no configure option for it. So now I'm stumped again

EDIT: When I add a name to the "CCK Fieldgroups Tabs" section of Content types > Product > Edit, I can get that name to appear as a tab, but I can only add one name here (so only 1 tab) and I still don't know how to add other fields to this tab. So this can't be the proper method. I've already created other "New group" fields and configured them under "Display fields" to be "tabs" but they never appear as tabs. It would be nice if I could just drag the list of fields into a child-field of my Tab group fields, but there doesn't seem to be any sub-category or child-type dragging possible....

BigMike's picture
Offline
Joined: 10/20/2008
Juice: 1096
Re: Re: patrickhannon86 wrote: I

Before I venture away from CCK Fieldgroup Tabs, can anyone help me with this? Thanks

BigMike's picture
Offline
Joined: 10/20/2008
Juice: 1096
Re: Re: Re: patrickhannon86 wrote: I

I just came across this.... http://miphol.com/muse/2009/12/customize-ubercart-product-pag.html but it doesn't seem to do anything at all?

Quote:

To complete this form, please complete the word verification below.

I HATE THIS DAMN WORD VERIFICATION FORM. PLEASE DISABLE THIS CRAP FOR CERTAIN MEMBER GROUPS AT LEAST

ahimsauzi's picture
Offline
Joined: 09/21/2009
Juice: 51
CCK Tabs with custome node

Hi Steph,

I am trying to call CCK tabs into a custom node template file but I can't seem to find the proper syntax. Any suggestion? Thanks

stephthegeek's picture
Offline
Theminator
Joined: 10/20/2007
Juice: 575
Re: Product Tabs

It looks like you put all your fields within fieldsets... or perhaps the fields are ordered such that those are at the top. The effect you're going for is achievable with CCK tabs.

Quicktabs only displays other blocks, nodes, or views, so you'd need to hide the field display through CCK on the node itself, and then use a view with an argument or nodereference to pull in the related content for the quicktabs approach.

Gorgeous original Drupal themes (and Ubercart themes!) ~ Psst: more Ubercart themes on our new site

korda's picture
Offline
Joined: 04/03/2009
Juice: 21
Views help for Quicktabs

Steph, I'm getting your just. I want to sort out how to use Quicktabs for this exact purpose. I'm just a little lost on how to write the argument for views. I have bought a couple themeing and robust blah blah from packt publishing and managed to push out a few decent sites (after I read both cover to cover twice). However I'm still shaky using views. I managed to hide the field display on the node itself but writing an argument or nodereference to pull the related content is driving me batty. Maybe the nodereference module is what you are referring to?

Can you help me a bit with this? Have you any idea of any books or tutorials that could help me shape up my views expertise?

Thanks a bunch.

BigMike's picture
Offline
Joined: 10/20/2008
Juice: 1096
Re: Views help for Quicktabs

I am revisiting this and I've decided to give Quicktabs a shot. I can setup a view but I do not know how to use arguments to limit the view output to only the current product being viewed.

Any help with arguments in this regard would be great!

Thanks
Mike

BigMike's picture
Offline
Joined: 10/20/2008
Juice: 1096
Re: Re: Views help for Quicktabs

I don't know what I'm doing, but I've set a "Node: Title" argument using a "PHP Code" Validator of,

<?php
 
if ($node->title == $title) {
    return
TRUE;
  }
?>

What I'm trying to do is match the node title being displayed with the title being called from the view. I tried using $nid and node IDs but I can't figure that out either. I have "Action to take if argument does not validate: " set to "Hide view / Page not found (404)". I've not configured any of the other fields.

I can't figure out how to use CCK fieldset tabs so I'm trying to figure out how to convert my product pages over to views and use Quicktabs........................................

BigMike's picture
Offline
Joined: 10/20/2008
Juice: 1096
Just tried... <?php  if

Just tried...

<?php
 
if ((arg(0) == 'node') && is_numeric(arg(1))) {
   
$node = node_load(arg(1));
    if (
$node->nid == arg(1)) {
      return
TRUE;
    }
  }
?>

still no go

end user's picture
Offline
Joined: 01/11/2008
Juice: 1683
Re: Just tried... <?php  if

Not sure if this will help you but I use this view to show the buy button and price on each product page. The view has a block and then I set the block to a custom region in the node (need some code in the template.php file for the node.tpl.php but you don't need it)

If you import this and change the fields and filters to your taxonomy it should work and then just assign it to a tab. For arguments all I use is Node:NID Provide Default Argument > Node ID from URL

$view = new view;
$view->name = 'product_price_block';
$view->description = '';
$view->tag = '';
$view->view_php = '';
$view->base_table = 'node';
$view->is_cacheable = FALSE;
$view->api_version = 2;
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
$handler = $view->new_display('default', 'Defaults', 'default');
$handler->override_option('fields', array(
  'sell_price' => array(
    'label' => 'AltGro Every Day Low Price',
    'alter' => array(
      'alter_text' => 0,
      'text' => '',
      'make_link' => 0,
      'path' => '',
      'link_class' => '',
      'alt' => '',
      'prefix' => '',
      'suffix' => '',
      'target' => '',
      'help' => '',
      'trim' => 0,
      'max_length' => '',
      'word_boundary' => 1,
      'ellipsis' => 1,
      'html' => 0,
      'strip_tags' => 0,
    ),
    'empty' => '',
    'hide_empty' => 1,
    'empty_zero' => 1,
    'set_precision' => 0,
    'precision' => '0',
    'decimal' => '.',
    'separator' => ',',
    'prefix' => '$',
    'suffix' => '',
    'format' => 'numeric',
    'revision' => 'themed',
    'exclude' => 0,
    'id' => 'sell_price',
    'table' => 'uc_products',
    'field' => 'sell_price',
    'relationship' => 'none',
    'override' => array(
      'button' => 'Override',
    ),
  ),
  'addtocartlink' => array(
    'label' => '',
    'alter' => array(
      'alter_text' => 0,
      'text' => '',
      'make_link' => 0,
      'path' => '',
      'link_class' => '',
      'alt' => '',
      'prefix' => '',
      'suffix' => '',
      'target' => '',
      'help' => '',
      'trim' => 0,
      'max_length' => '',
      'word_boundary' => 1,
      'ellipsis' => 1,
      'html' => 0,
      'strip_tags' => 0,
    ),
    'empty' => '',
    'hide_empty' => 0,
    'empty_zero' => 0,
    'exclude' => 0,
    'id' => 'addtocartlink',
    'table' => 'uc_products',
    'field' => 'addtocartlink',
    'override' => array(
      'button' => 'Override',
    ),
    'relationship' => 'none',
  ),
));
$handler->override_option('arguments', array(
  'nid' => array(
    'default_action' => 'default',
    'style_plugin' => 'default_summary',
    'style_options' => array(),
    'wildcard' => 'all',
    'wildcard_substitution' => 'All',
    'title' => '',
    'breadcrumb' => '',
    'default_argument_type' => 'node',
    'default_argument' => '',
    'validate_type' => 'none',
    'validate_fail' => 'not found',
    'break_phrase' => 0,
    'not' => 0,
    'id' => 'nid',
    'table' => 'node',
    'field' => 'nid',
    'validate_user_argument_type' => 'uid',
    'validate_user_roles' => array(
      '2' => 0,
    ),
    'relationship' => 'none',
    'default_options_div_prefix' => '',
    'default_argument_fixed' => '',
    'default_argument_user' => 0,
    'default_argument_php' => '',
    'validate_argument_node_type' => array(
      'product' => 0,
      'product_kit' => 0,
      'forum' => 0,
      'page' => 0,
      'story' => 0,
    ),
    'validate_argument_node_access' => 0,
    'validate_argument_nid_type' => 'nid',
    'validate_argument_vocabulary' => array(
      '11' => 0,
      '5' => 0,
      '8' => 0,
      '2' => 0,
    ),
    'validate_argument_type' => 'tid',
    'validate_argument_transform' => 0,
    'validate_user_restrict_roles' => 0,
    'validate_argument_php' => '',
    'override' => array(
      'button' => 'Override',
    ),
  ),
));
$handler->override_option('filters', array(
  'type' => array(
    'operator' => 'in',
    'value' => array(
      'product' => 'product',
    ),
    'group' => '0',
    'exposed' => FALSE,
    'expose' => array(
      'operator' => FALSE,
      'label' => '',
    ),
    'id' => 'type',
    'table' => 'node',
    'field' => 'type',
    'relationship' => 'none',
  ),
));
$handler->override_option('access', array(
  'type' => 'none',
));
$handler->override_option('cache', array(
  'type' => 'none',
));
$handler = $view->new_display('block', 'Block', 'block_1');
$handler->override_option('block_description', '');
$handler->override_option('block_caching', -1);
end user's picture
Offline
Joined: 01/11/2008
Juice: 1683
Re: Re: Just tried... <?php  if

Here's a screen shot of the tabs.

AttachmentSize
Screenshot.png 11.86 KB
BigMike's picture
Offline
Joined: 10/20/2008
Juice: 1096
end user wrote:For arguments
end user wrote:

For arguments all I use is Node:NID Provide Default Argument > Node ID from URL

DUDE!!!! Holy crap I can't believe I didn't see that option!! I imported your view and it looks great! I am modifying it now and also working on my other views I got going for Quicktabs. I am getting really excited over this finally!! Laughing out loud woooohooooooooooo!

EDIT: Ahhh I C. This option was not available under "Hide view / Page not found (404)", but instead under "Provide default argument".

end user's picture
Offline
Joined: 01/11/2008
Juice: 1683
Re: end user wrote:For arguments

This is what helped me originally http://mustardseedmedia.com/podcast/episode31

BigMike's picture
Offline
Joined: 10/20/2008
Juice: 1096
Re: Re: end user wrote:For arguments

Thanks, loading the video now. I have gone back to CCK Fieldgroup Tabs but I'm stumped again with what I've already posted above,

BigMike wrote:

When I add a name to the "CCK Fieldgroups Tabs" section of Content types > Product > Edit, I can get that name to appear as a tab, but I can only add one name here (so only 1 tab) and I still don't know how to add other fields to this tab.

Using Views through Quicktabs, the available filters seem limited. For instance I don't have a filter for product dimensions. If I use the CCK method, I wonder if I can get more info to display..............?

end user's picture
Offline
Joined: 01/11/2008
Juice: 1683
Re: Re: Re: end user wrote:For arguments

Are you using QuickTabs if so I don't think it supports FieldGroup Tabs yet http://drupal.org/node/489412

BigMike's picture
Offline
Joined: 10/20/2008
Juice: 1096
Re: Re: Re: end user wrote:For arguments

Well I'm trying to go at it anyway possible Laughing out loud

BigMike wrote:

I have gone back to CCK Fieldgroup Tabs but I'm stumped again with what I've already posted above

Okay, I figured it out. I used a "Text" field type and had to enter something in there for it to show up.

Once I get this all figured out I am going to post a sweet tutorial for other newbies like myself Laughing out loud

BigMike

BigMike's picture
Offline
Joined: 10/20/2008
Juice: 1096
Re: Re: Re: Re: end user wrote:For arguments

Not sure why I can't drag fields under my CCK tab groups. I posted about this back in January but haven't gotten any tips yet.

For instance, at admin/content/node-type/product/field, I have...

+ Name
+ Image
+ Description
+ Taxonomy

and so on. When I create a new group, it shows it bold, like this:

+ Name
+ Image
+ Description
+ Taxonomy
+ New group

I am wondering why I cannot simply drag other fields as a child of this new group? Like this:

+ Name
+ Image
+ New group
+++ Description
+ Taxonomy

I can drag the fields around but they don't turn into childs. If I create a new field of type "Text", then I can drag into a child, such as this:

+ Name
+ Image
+ New group
+++ New field of type "Text"
+ Description
+ Taxonomy

Here is the tab structure I wish I could have:

+ Name
+ Image
+ Description
+++ Description
+++ Taxonomy
+ Details
+++ SKU
+++ Weight
+++ Dimensions
+ Reviews
+++ Comments
+ Sell Price
+ Add To Cart

I'm trying to learn how to do this.

Mike

PLEASE DISABLE THIS FOR GOOD STANDING MEMBERS:
To complete this form, please complete the word verification below.

BigMike's picture
Offline
Joined: 10/20/2008
Juice: 1096
Ok,I've created a number of

Ok,

I've created a number of field groups (set as Tabs) each containing text fields. Then when I edit a product, I can see the tabs and the empty text areas. So I was thinking........ well this is great, what the heck am I going to do with stupid text fields? Then it hit me: Can I run php code in a CCK test field? Then I could have the contents of the tabs auto-populate from my existing product data!

Is this possible?
Thanks
Mike

EDIT: Nope, PHP commands cannot be ran from text fields.

PLEASE DISABLE THIS FOR KNOWN MEMBERS:
To complete this form, please complete the word verification below.

BigMike's picture
Offline
Joined: 10/20/2008
Juice: 1096
Ok, Now I am back working on

Ok,

Now I am back working on Quicktabs. I can get the tabs to appear on my product page with the correct product content, but the tabs are not grouping themselves together. My site looks like:

__[Description]___
blah blah blah

__[Details]___
SKU: 234

I need this to be..

__[Description]___[Details]___

Hmmmmmmmmmmmmmmmmmmmmmm.....

end user's picture
Offline
Joined: 01/11/2008
Juice: 1683
Re: Ok, Now I am back working on

This is what my look like http://www.altgro.com/store/nutrients/general-hydroponics/flora-bloom-1l I did have the above happen to me with another website but that was 6 months ago and I can't remember what I did to fix it.

I did have to set the quick tabs block css to width:100%

#block-quicktabs-2{
width:100%
}
BigMike's picture
Offline
Joined: 10/20/2008
Juice: 1096
Re: Re: Ok,Now I am back working on

WOW that is freak'n awesome

So in http://www.altgro.com/store/nutrients/general-hydroponics/flora-bloom-1l, are we looking at one Quicktab View with 1 block, or are those two separate views & 2 separate blocks?

Thanks! I'm finally getting very close!! I like the Quicktabs approach better
Mike

DANGIT, I HATE THIS THIS:
To complete this form, please complete the word verification below.

end user's picture
Offline
Joined: 01/11/2008
Juice: 1683
Re: Re: Re: Ok,Now I am back working on

The main image, title, rating, comments and etc.. are just a node-product-tpl.php that I change to suit my needs. The buy now button which I'm still working on is a view in a custom region that's inside the node template.

The quick tabs themselves are also inserted into a custom region in the node template but then I used two views. one for each tab to grab CCK fields and have the tab/view display them. I've tried to insert the comments onto its own tab but that's a pain as the comments are part of the node body and hard to seperate.

Here's the code in template.php that I use to be able to use custom node regions - normally you can only do custom regions in the page.tpl.php file

function yourtheme_preprocess_node(&$variables, $hook) {
  $variables['product_node_price'] = theme('blocks', 'product_node_price');
  $variables['product_info_tabs'] = theme('blocks', 'product_info_tabs');
}

Then in youtheme.info file you specify the new regions

regions[product_node_price] = Product Node Price
regions[product_info_tabs] = Product Info Tabs

In the node template

<?php print $product_info_tabs ?>

BigMike's picture
Offline
Joined: 10/20/2008
Juice: 1096
end user wrote: The main
end user wrote:

The main image, title, rating, comments and etc.. are just a node-product-tpl.php that I change to suit my needs. The buy now button which I'm still working on is a view in a custom region that's inside the node template.

The quick tabs themselves are also inserted into a custom region in the node template but then I used two views. one for each tab to grab CCK fields and have the tab/view display them. I've tried to insert the comments onto its own tab but that's a pain as the comments are part of the node body and hard to seperate.

Here's the code in template.php that I use to be able to use custom node regions - normally you can only do custom regions in the page.tpl.php file

function yourtheme_preprocess_node(&$variables, $hook) {
  $variables['product_node_price'] = theme('blocks', 'product_node_price');
  $variables['product_info_tabs'] = theme('blocks', 'product_info_tabs');
}

Then in youtheme.info file you specify the new regions

regions[product_node_price] = Product Node Price
regions[product_info_tabs] = Product Info Tabs

In the node template

<?php print $product_info_tabs ?>

This is great to have. I just got this configured and it's awesome. Thanks! My Zen 1.x theme's template.php is a bit different, this is how I got it to work:

function mci2_wide_preprocess_node(&$vars, $hook) {
  $vars['product_node_price'] = theme('blocks', 'product_node_price');
  $vars['product_info_tabs'] = theme('blocks', 'product_info_tabs');
}

Thanks again for all the help! I've got a ton of stuff to dooooooo!!!

BigMike's picture
Offline
Joined: 10/20/2008
Juice: 1096
BigMike wrote: in
BigMike wrote:

in http://www.altgro.com/store/nutrients/general-hydroponics/flora-bloom-1l, are we looking at one Quicktab View with 1 block, or are those two separate views & 2 separate blocks?

I looked at your link code and I believe you are using 1 block (and therefore 1 view). Your tab links look like this:
?quicktabs_2=0#quicktabs-2
?quicktabs_2=1#quicktabs-2

and my tab links look like this:
?quicktabs_view__QT_Product_Description__block_1=0#quicktabs-view__QT_Product_Description__block_1
?quicktabs_view__QT_Product_Details__block_1=0#quicktabs-view__QT_Product_Details__block_1

I have two Quicktab Views which have created two blocks:
View: QT_Product_Description, which created block: QT_Product_Description: Block
View: QT_Product_Details, which created block: QT_Product_Details: Block

So I am trying to get everything configured within just 1 view. I know I can add multiple blocks per view, and I see there is a Grouping field option, but when I add a new block view and change it's view settings, the settings of the entire view get overwritten....

BigMike

AAAAAAAAAAAAAAARRRRRRRGGGGGGGGGGGG
To complete this form, please complete the word verification below.

BigMike's picture
Offline
Joined: 10/20/2008
Juice: 1096
end user, How did you get

end user,

How did you get your "Estimated shipping cost:" to appear on your cart page? That is pretty nice

DANGIT!!! >_<

To complete this form, please complete the word verification below.

end user's picture
Offline
Joined: 01/11/2008
Juice: 1683
Re: end user, How did you get

Actually that I don't want that Smiling but its one of the panes in the store setting. I actually normally have it hidden with css display:none but must have taken that out. I used css because I couldn't figure out how to turn it off. The store desing is a mess I was suppose to have finished it last week but I'm always changing things around.

BigMike's picture
Offline
Joined: 10/20/2008
Juice: 1096
Re: Product Tabs

AHhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh

I finally figured it out! The Quicktab itself creates a block for use! I was using the blocks created by my views (views with the style Quicktabs). MAN Quicktabs is AWESOME and SUPER EASY NOW!!!!! GEEEEEEEEZ

Ok, I will reply back with a step by step once I get all this sorted out. WHEW. It only took me about 6 months to get this sorted out Laughing out loud Thanks for all the help end user!!!!!!!!!

mikeede's picture
Offline
Joined: 06/03/2011
Juice: 28
Re: Re: Product Tabs

Nothing useful to add just looking forward to the step by step

BigMike's picture
Offline
Joined: 10/20/2008
Juice: 1096
enduser,I was out of town

enduser,

I was out of town from last Thursday and am now finishing this up. I can get the Tabs to load nicely on my product page and I've already began theming them; things are going great. But I've run into a problem.

I originally had just 1 tab and everything looked great. But when I add a second tab, nothing loads in that tab.

Here is what I've got: Description & Details tabs. Both Views use the Node:Nid argument & both have filters for Node: Type=Product. The Fields for Description are just Node:Body, and the fields for Details are Product:SKU and Product:Weight.

Interestingly, when I configure the Quicktab to load the Description tab first, it loads fine and the Details tab is blank. When I configure it to load the Details tab first, _both_ tabs are blank! It loads with Details tab first, which is blank, and then when you click on the Description tab it is also blank.

I am not sure what is going on yet. I am wondering if it has something to do with the Argument pulling in the Node ID, but the Details tab trying to access Product fields and not Node fields.......... and then maybe it can't pull the Description info because the argument isn't being used when the AJAX tries to load the info? I've also tried this without using AJAX, makes no difference.

So I tried entering some $product->model; PHP stuff in for a argument and I couldn't get it to work....

Hmmmmmmmmmmmmmmmmmmmmm

BigMike's picture
Offline
Joined: 10/20/2008
Juice: 1096
Re: enduser,I was out of town

Ok, it has something to do with the argument for the details View. When I remove the argument, the Details tab loads some random product in there. So it is working, I just gotta figure out how to filter/argument it for only the product being viewed. The Node:Nid method doesn't seem to be working for filters of type "Product" (Product:SKU & Product:Weight).

BigMike's picture
Offline
Joined: 10/20/2008
Juice: 1096
Re: Re: enduser,I was out of town

Success! I got other Tabs to load data while using the Product:SKU argument with,

$node = node_load(arg(1));
return $node->model;

for a Provide default argument > PHP Code argument type.

But, it only works WITHOUT AJAX, "No: Load all tabs on page view." I of course would like to use the AJAX feature but I'll have to wait until I can figure out the proper argument to use with that.

I also tested this with an additional third tab and its all loading great and for the proper product being viewed! Smiling NICE

Thanks
Mike

stesind's picture
Offline
Joined: 09/02/2010
Juice: 18
Re: Product Tabs

subscribe