Skip to main content

WooCommerce

Styling and integrating WooCommerce with TheDock.


Overview

TheDock provides built-in support for WooCommerce, the leading e-commerce plugin for WordPress.

When WooCommerce is active, TheDock adds:

  • WooCommerce-specific styling controls
  • Product template options
  • Shop page templates
  • Cart and checkout styling

Enabling WooCommerce Support

Prerequisites

  1. Install and activate WooCommerce
  2. Complete WooCommerce setup wizard
  3. TheDock automatically detects WooCommerce

WooCommerce Design Panel

When WooCommerce is active:

  1. Go to A. Design
  2. WooCommerce appears in the sidebar
  3. Access shop-specific styling options

WooCommerce Templates

Default Templates

TheDock provides templates for:

TemplatePurpose
ShopProduct archive/catalog
ProductSingle product page
CartShopping cart
CheckoutCheckout process
My AccountCustomer account

Customizing Templates

  1. Go to B. Layout > Templates
  2. Find WooCommerce templates
  3. Edit like any other template

Template Assignment

In C. Build > Theme Structure:

  • Assign templates to WooCommerce pages
  • Map product category templates
  • Configure product tag archives

Product Display

Product Loop Block

Display products in templates:

SettingDescription
Products Per PageNumber to show
ColumnsGrid columns
Order ByPrice, date, popularity
CategoriesFilter by category
On SaleShow only sale items
FeaturedShow featured products

Product Elements

Within product displays:

  • Product image
  • Product title
  • Price
  • Add to cart button
  • Rating stars
  • Sale badge

WooCommerce Styling

In Design Panel

A. Design > WooCommerce provides:

Product Cards

SettingDescription
Image RatioProduct image proportions
Title StyleTypography for product titles
Price StylePrice typography and color
Button StyleAdd to cart button appearance

Sale Badges

SettingDescription
Badge ColorBackground color
Badge PositionCorner placement
Badge ShapeSquare, rounded, circle

Price Display

SettingDescription
Regular PriceNormal price styling
Sale PriceDiscounted price styling
Price AlignmentLeft, center, right

Buttons

SettingDescription
Add to CartButton for adding products
View CartLink to cart
CheckoutCheckout button

Cart Page

Cart Template Elements

Typical cart template includes:

  • Product list with quantities
  • Update cart button
  • Coupon field
  • Cart totals
  • Proceed to checkout

Styling Cart

  • Table styling for product list
  • Quantity input styling
  • Remove button appearance
  • Totals box styling

Checkout Page

Checkout Template

Elements include:

  • Billing details form
  • Shipping details form
  • Order review
  • Payment methods
  • Place order button

Styling Checkout

  • Form field styling
  • Section headings
  • Order summary appearance
  • Trust badges placement

My Account

Account Pages

  • Dashboard
  • Orders
  • Downloads
  • Addresses
  • Account details
  • Logout

Styling Account

  • Navigation styling
  • Table styling for orders
  • Form styling for details
  • Address card appearance

Product Categories

Category Templates

Create templates for product categories:

  1. Create new template
  2. Add product loop block
  3. Assign to Product Category in Theme Structure

Category-Specific Templates

For different category layouts:

  1. Create category-specific template
  2. Use WordPress template hierarchy
  3. Or use conditional logic

Product Page Elements

Single Product Template

Typical elements:

  • Product gallery
  • Product title
  • Price
  • Short description
  • Add to cart with quantity
  • Product meta (SKU, categories)
  • Tabs (Description, Reviews, etc.)
  • Related products
SettingDescription
Gallery StyleThumbnails, dots, none
ZoomEnable image zoom
LightboxFull-screen gallery

Product Tabs

Style product tabs:

  • Tab navigation
  • Active tab indicator
  • Tab content styling

Mini Cart

Cart Widget

Display cart in header:

  • Cart icon with count
  • Dropdown with cart contents
  • Cart total
  • View cart link
  • Checkout link

Styling Mini Cart

  • Icon styling
  • Dropdown appearance
  • Product list in dropdown
  • Button styling

Best Practices

1. Test the Full Flow

After styling, test:

  • Browse products
  • Add to cart
  • View cart
  • Checkout (test mode)
  • Order confirmation

2. Mobile Shopping

Optimize for mobile:

  • Touch-friendly buttons
  • Readable product info
  • Easy cart access
  • Simple checkout

3. Trust Elements

Include on checkout:

  • Security badges
  • Payment icons
  • Return policy
  • Contact info

4. Performance

Product pages can be heavy:

  • Optimize images
  • Lazy load products
  • Cache where possible

5. Consistency

Match WooCommerce styling to your design system:

  • Same button styles
  • Consistent colors
  • Matching typography

Troubleshooting

Products not displaying

  • Verify WooCommerce is active
  • Check products are published
  • Verify template has product block

Styling not applying

  • Clear WooCommerce cache
  • Check CSS specificity
  • Export theme

Cart not updating

  • JavaScript errors in console
  • AJAX conflict with plugins
  • Clear all caches

Checkout issues

  • Payment gateway configuration
  • SSL certificate required
  • Form validation errors


← Back to Documentation