Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hotel nodes are absent from product catalog display page. Adding a hotel room type to the catalog vocabulary causes it to be counted in the catalog node counts (breadcrumb, catalog block, etc), but the product display page remains blank once the vocabulary link is clicked on.
Comments
Comment #1
willvincent CreditAttribution: willvincent commentedHotel room type nodes aren't technically real product nodes.
At the moment, there's just enough code to make it possible to put them into the cart.
I don't believe they display in the store reports either.
Comment #2
3rdLOF CreditAttribution: 3rdLOF commentedI am not sure if this exactly the same issue, but once I add the room (room type) to the catalog I simply cannot get them to show up anywhere except when I look at "list terms" page under the Catalog vocabulary in the Taxonomy view.
I wonder if the order in which the module was installed has anything to do with this.
Comment #3
3rdLOF CreditAttribution: 3rdLOF commentedMy apologies. Accidental second click. Delete please.
Comment #4
willvincent CreditAttribution: willvincent commentedYou should still be able to add the nodes to the menu directly, as with any other node.
It is possible, and not totally unlikely, that adding them to catalog will break something.
As I stated earlier, they aren't technically product nodes, there's just enough voodoo going on to make ubercart let these be added to the cart.
Comment #5
willvincent CreditAttribution: willvincent commentedWe are looking into adding this functionality in a future release.
Comment #6
3rdLOF CreditAttribution: 3rdLOF commentedThank you, much obliged.
Comment #7
larowlanHi
uc_catalog is not very flexible wrt showing other nodes in the catalog.
It selects nodes (in a query) by joining the node table to the uc_product table. As our room nodes don't exist in uc_product (and never will) you will need to override the function theme_uc_catalog_products in your theme and inject the room nodes into the products array before calling theme('uc_catalog_product_browse').
You will most likely need to override theme_uc_catalog_product_browse as well to prevent errors when uc_catalog tries to show the add to cart button for the room products.
IMHO it would be better to use another taxonomy module / custom taxonomy theming to show your nodes in a catalog.
Lee
Comment #8
coloryan CreditAttribution: coloryan commentedI can confirm that rooms don't show up in product reports. They're in the list, but no amounts are associated with them. Customer reports do behave as desired.