Example page: http://giantcalculator.com/content/cartridge-filters
It’s very cumbersome to connect the ubercart view to a relevant content page. In the example above I have attached the view to the bottom; you can scroll down to see it. It is a tedius process though in which I have to create the view, then create a mini panel, include the view in the mini panel, then go to blocks page and add the mini panel to region (currently a region below the main content), then I have to configure the block so the view only appears on it’s one particular page.
This seems far too complicated and the particular region will soon have about 20 blocks inside it, though each only appearing on one page. Is there a better way to attach a view to its relevant content info, or vice versa?
I know the view creates a page of its own, and if I could add the content on top of the view that would be great. Or within the view itself, can the content be added somehow?
I'm almost ready to move forward with this site but I really need to find if there is a better method first. I'm posting this in a number of places and offering a $20 bounty via paypal to the first responder with best alternative that I end up using. (if there is one). Bounty may be shared if two or more people have the same response on different forums and I can't tell who was first, though when I do have an answer I'll promptly post it.
Other forums this will post include Drupal.org paid forum, Ubercart Bounty forum, aardvark, superuser and stackoverflow.
Comments
Problem attaching Ubercart view to relevant content
I believe that you could use this module Insert View (http://drupal.org/project/insert_view) or follow the steps outlined here :Insert view: embed a view into a node (http://drupal.org/node/85769)
Bye
Juan
Viewfield module could also help
In addition to my previous proposals could use Viewfield modulo (http://drupal.org/project/viewfield, CCK field module), unfortunately is in the dev version, probably not have problems.
You can add your region the
You can add your region the same way you do it for the page with a simple change
write a preprocess for your new region for node content on the template.php on your theme file
function phptemplate_preprocess_node(&$vars) {
$vars['Your_region_name'] = theme('blocks', 'node_bottom');
}
The final step is to add your region on your node.tpl.php file
Even you can do this function as a template file
Clear your cache
Cheers
Prasath
There's simple way of
There's simple way of achieving this, you can add a nodereferrence field in the product content type.
I hope you are not allowing users to add the products.
Node Reference field can refer a view also, so you can create a view accordingly.
Acquia certified Developer, Back end and Front specialist
Need help? Please use my contact form