You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I'm trying to figure out how to use Lumberjack with WooCommerce. I created a Product post type in Lumberjack, but when I implement the required getPostType and getPostTypeConfig methods it breaks WooCommerce because it seems to override the product post type WooCommerce had already set up. What is the best way to implement custom logic for an already-existing product post type?
The text was updated successfully, but these errors were encountered:
WC will register its own post type 'product', so you can just omit that step, meaning you can go ahead and create custom templates with php or twig, just referencing 'product' as the post type. For example, in the root of the theme, you may create a 'single-product.php' as the product controller that sends the data to a twig template.
Keep in mind that the WC product system is very much based on the traditional WordPress template structure, so just take care when using WC with Lumberjack or Timber in general as I have come across a few instances where X & Y need special cases.
Hello, I'm trying to figure out how to use Lumberjack with WooCommerce. I created a Product post type in Lumberjack, but when I implement the required getPostType and getPostTypeConfig methods it breaks WooCommerce because it seems to override the product post type WooCommerce had already set up. What is the best way to implement custom logic for an already-existing product post type?
The text was updated successfully, but these errors were encountered: