Postponed
Project:
Ubercart Sub-Product
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
1 Apr 2011 at 21:55 UTC
Updated:
3 Mar 2014 at 22:11 UTC
Jump to comment: Most recent
Comments
Comment #1
larowlanNot sure if there is a need, UC3 has greater level of views integration.
Comment #2
hbalagtas commentedSo the sub product can be implemented just by using views? Can you give a quick overview on how this can be done with Drupal 7 and UC3
Comment #3
end user commentedYou can kind of do this with views but doesn't look clean with out lots of themeing. Basically you create a new node type. You can call i say product_container. Add an entity reference to this node type. Now make sure you add this node type to the catalog view(s) so it can be displayed.
When you create the the new node type you can then use the reference field to select the nodes you want referenced to it. Now you need to create a view of type block that will display those nodes on the product_container node. You have to set the Reference and Contextual filters for them to show up on each associated node (I could post this info later) Now either insert the view block into the content block or create a custom region. If you don't want the referenced nodes to show up on the catalog you have to unpublish them. They can still be added to the cart but users cant view them.
Now the problem lies with the Add To Cart form which holds the buy now button and attributes and quantity field(s). Since those are not separate fields available to views they all show up in the same table cell.
Comment #4
Hannu commented"Now the problem lies with the Add To Cart form which holds the buy now button and attributes and quantity field(s). Since those are not separate fields available to views they all show up in the same table cell."
Here is a trick to resolve that: http://www.ubercart.org/comment/69170
Worked for me, anyway.
Comment #5
docans commentedI need to create a sub product for every product of mine in drupal 7 Ubercart 3. Is there a way or another module around to achieve this because the previous link does not really show you anything
Thanks