-
Ramon88
Dear GP Team,
I’m confused on the possibilities when it comes to creating WooCommerce templates, for instance for the single-product-page. Ideally I’d like to go full wild in terms of designing a WooCommerce single-product/archive/shopping-cart, using the GP/GB editor designing my own layouts and content.
I’m using GP Premium and GenerateBlocks (not premium(?)) and as far as I can tell my only options at this point are using the hooks to add elements before/after specific places like woocommerce_single_product_summary to customize the standard WooCommerce layout in a basic way.
There also seems to be a way in which you use the WordPress Site Editor (dashboard –> Appearance –> Design) but this doesn’t work because, if I understand correctly, GeneratePress doesn’t use the standard block editor/Gutenberg editor. That is supposedly why I’m not seeing a WooCommerce button in the Site Editor, just ‘Styles’ and ‘Patterns’.
Can you please advise on my current options?
-
George
Hello.
You’re correct that GeneratePress is a classic theme, not a block theme, which is why you don’t see WooCommerce template options in the Site Editor (Appearance → Design). Those full-site editing features are only available with block themes. But it’s not that the theme is not compatible with the Gutenberg editor.
GenerateBlocks free version already includes powerful features for WooCommerce customization:
1. Dynamic Content – Pull product information (title, price, image, description, custom fields) directly into your GenerateBlocks layouts
2. Query Loop – Build custom product archives and related product sections
3. Effects – Add shadows, transforms, filters, opacity, transitions, and more to your blocks
4. Elements (Hooks) – Use hooks likewoocommerce_before_single_product,woocommerce_after_single_product_summary, etc. to inject custom GenerateBlocks layouts
5. Elements (Block) – Create custom block-based content with display conditions to show on specific product pages, categories, or conditionsWhile you can add extensive custom content using hooks and display conditions, completely replacing default WooCommerce areas (like the product summary, tabs, or gallery) requires additional PHP code to first remove the default output. Elements alone can inject content but won’t automatically hide WooCommerce’s default sections.
You have solid WooCommerce customization capabilities with your current setup. The combination of GP Premium Elements + GenerateBlocks free gives you dynamic data, query loops, and effects to create custom product layouts. However, for that “full wild” design freedom where you completely replace WooCommerce’s default structure, you’ll need to combine Elements with some custom PHP code to remove default outputs.
-
George
Regarding the pricing of the GP products:
https://generatepress.com/pricing/GP One: You get GP Premium, GenerateBLocks Pro and GenerateCloud.
Then you have individuals products.
GP Premium: You get the GP Premium plugin
GenerateBlocks Pro: You get the GenerateBlocks Pro plugin
GenerateCloud: You get the GenerateCloud plugin (which requires GenerateBlocks Pro)And of course, there is the GeneratePress theme that is free along with the GenerateBlocks free plugin that can be installed from the repository.
The most VFM package is the GeneratePress One, obviously.
There are also Frequently Asked Questions in the pricing page, which you can check.
-
francisco_niloc
I was waiting for this information. I’m developing an e-commerce site and have run into some problems. After reading other questions on the forum, I decided to work with hooks and start adding custom content.
Currently, my biggest problem is with the product archives (store), brands, categories, and tags. I have my ‘Loop Query’ styled and a product card with additional information, but when I tell it to display in the product archive, it appears duplicated (both the one I created and the default one). What solutions can you offer?
This is important because the product card displays additional information beyond just the price, title, and rating.
-
Ramon88
Thank you George, that was clarifying!
@ Fransisco: that’s what George meant with:
“While you can add extensive custom content using hooks and display conditions, completely replacing default WooCommerce areas (like the product summary, tabs, or gallery) requires additional PHP code to first remove the default output.”
So you’d need to remove the default output using custom php code. My guess is to use code snippets for this.
-
George
Exactly. Woocommerce uses its own templates, GP’s loop template can not override them.
-
Ramon88
1. Dynamic Content – Pull product information (title, price, image, description, custom fields) directly into your GenerateBlocks layouts
I’m having trouble with this. I’m trying to build a custom product page layout: hero (container), with a background image (dynamic: product image1), with an overlay: product title (this is the only one that works for me), product price (can’t find it anywhere outside of the regular product-template-block (which I can’t get it out of)), and more product meta elements that I cannot seem to dynamically insert into the GB layouts. See attached screenshot for the options I’m seeing ‘out of the box’.



I’ve tried using tags like {{wc_price}} and variations to those kinds of tags but nothing works for me. What am I missing?
-
George
In WooCommerce, the custom fields (post meta keys) for product pricing are:
Regular Price:
_regular_price
Sale Price:_sale_priceThese are stored in the
wp_postmetatable and are prefixed with an underscore, which makes them “hidden” custom fields in WordPress.A few related fields you might also find useful:
_price– The active price (automatically set to sale price if one exists, otherwise regular price)
_sale_price_dates_from– Sale start date (Unix timestamp)
_sale_price_dates_to– Sale end date (Unix timestamp)Anything else, let us know!
-
Ramon88
Thank you! I managed to get the prices displayed in the frontend via post meta along with the meta key you provided.
Any chance you can point me in the direction of a complete list of those post meta keys for woocommerce?I can’t seem to find them and Chat is not very helpful either. For instance, the product image (_thumbnail_id) is not working for me.Edit: I’ve found them in the wp_postmeta in the database just like you said :p
-
George
For the product image, you would just add a
{{featured_image key:url}}dynamic tag.Here are the main WooCommerce product post meta keys:
Pricing
_regular_price– Regular price_sale_price– Sale price_price– Active price (used for sorting/filtering)_sale_price_dates_from– Sale start date timestamp_sale_price_dates_to– Sale end date timestamp
Inventory
_stock– Stock quantity_stock_status– Stock status (instock, outofstock, onbackorder)_manage_stock– Whether stock is managed (yes/no)_backorders– Backorder setting (no, notify, yes)_low_stock_amount– Low stock threshold_sold_individually– Sold individually flag (yes/no)
Images
_thumbnail_id– Product featured image ID_product_image_gallery– Comma-separated gallery image IDs
Shipping
_weight– Product weight_length– Product length_width– Product width_height– Product height_shipping_class– Shipping class slug_shipping_class_id– Shipping class term ID
Tax
_tax_status– Tax status (taxable, shipping, none)_tax_class– Tax class
Downloads
- _downloadable – Is downloadable (yes/no)
- _virtual – Is virtual (yes/no)
- _download_limit – Download limit (-1 for unlimited)
- _download_expiry – Download expiry in days (-1 for unlimited)
- _downloadable_files – Serialized array of download files
Product Data
_sku– Stock keeping unit_product_attributes– Serialized product attributes_visibility– Catalog visibility (visible, catalog, search, hidden)_featured– Featured product (yes/no)_purchase_note– Purchase note displayed after checkout
Reviews
_wc_rating_count– Array of rating counts_wc_average_rating– Average rating_wc_review_count– Total review count
Variations (for variable products)
_default_attributes– Default selected attributes_min_variation_price– Minimum variation price_max_variation_price– Maximum variation price_min_variation_regular_price– Minimum regular price_max_variation_regular_price– Maximum regular price_min_variation_sale_price– Minimum sale price_max_variation_sale_price– Maximum sale price
Upsells & Cross-sells
_upsell_ids– Array of upsell product IDs_crosssell_ids– Array of cross-sell product IDs
External/Affiliate Products
_product_url– External product URL_button_text– Custom button text
Other
_edit_last– Last editor user ID_edit_lock– Edit lock timestamptotal_sales– Total sales count (no underscore prefix)
For variation-specific products, most of these same keys apply but some variations also use:
_variation_description– Variation description- All the attribute values stored as
attribute_pa_{attribute_name}orattribute_{attribute_name}
Keep in mind that WooCommerce continues to add new meta keys with updates, and extensions add their own custom fields as well.
-
Ramon88
Thank you so much. I’m starting to realize my ideas now.
-
George
Excellent, no problem!
- You must be logged in to reply to this topic.