Customizing the /product page

Events happening in the community are now at Drupal community events on www.drupal.org.
LiquidMethods's picture

I am at a loss for how to change the way this page outputs http://www.charleekatz.com/shop/product

I'm working on this website that sells knit hats and scarves, there are just two products, with 16 colors and 3 sizes - I only want the two products to show - not the subproducts.

I cannot see any place to administer / customize that /product page as far as the background, fonts, or what products should appear on it or not.

Any help would be greatly appreciated!

Comments

I'm using the views module

criznach's picture

I'm using the views module and a custom vew that filters out products where the field "Product: Master Product" equals "Product". This hides the subproducts.

To theme the backgrounds and fonts, etc, you should be able to locate and manipulate those with CSS selectors. With most drupal themes, there are plenty of IDs, classes and containers to use for CSS.

If you've created your product nodes with CCK, try the contemplate module. I haven't tried it with 5.x yet, but it is helpful. You can also theme CCK nodes with a tpl file named something like "node-content_exclusive_product.tpl.php". This themes the CCK-based content type "exclusive_product". Both CCK-based methods can be tricky with ecommerce though - I've had to manually add PHP code to display some of the UI elements like the "add to cart" form and the "subproducts" form. Again, this may not be the case on 5.x, but in 4.7 I've had trouble.

Woo-hoo!

johnalbin's picture

Thanks, criznach!

That’s the fix I needed for my site as well!

  - John

Albin.Net : friendly web development

  - John (JohnAlbin)

e-Commerce Module

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week