WooCommerce and E-Commerce Flashcards
(25 cards)
What is WooCommerce?
WooCommerce is an open-source WordPress plugin for building e-commerce websites.
WooCommerce transforms WordPress into a fully functional online store, supporting products, payments, and shipping. Freelancers use it to create client stores, while enterprise architects leverage its flexibility for scalable e-commerce solutions integrated with business systems.
How do you install WooCommerce?
Install WooCommerce via Plugins > Add New in the WordPress admin, then activate and follow the setup wizard.
The setup wizard configures store settings like currency, shipping, and payments. Freelancers guide clients through this process, while enterprise architects ensure proper initial setup for large-scale or multi-site deployments.
What is a WooCommerce product?
A product is an item for sale in a WooCommerce store, defined by attributes like price, stock, and description.
Products can be simple, variable, or downloadable, managed via Products > Add New. Freelancers create and customize products for clients, while enterprise architects integrate product data with external systems like CRMs.
What are product types in WooCommerce?
Product types include simple, variable, grouped, external/affiliate, and virtual/downloadable products.
Simple products have one configuration, while variable products have options (e.g., sizes). Freelancers set up product types to meet client needs, while enterprise architects use them to model complex inventories for large stores.
What is a product attribute in WooCommerce?
Product attributes define variations or characteristics, like size or color, for products.
Attributes, set under Products > Attributes, enable variations (e.g., small/large shirts). Freelancers configure them for client flexibility, while enterprise architects ensure attributes support scalable product catalogs.
What is a WooCommerce variable product?
A variable product allows customers to choose options, like size or color, from predefined variations.
Created by adding attributes and variations in the product editor, they’re ideal for customizable products. Freelancers build variable products for client stores, while enterprise architects optimize them for large-scale inventory management.
What is the WooCommerce shop page?
The shop page displays all products in a WooCommerce store.
Set via WooCommerce > Settings > Products, it uses the archive-product.php template. Freelancers customize its layout, while enterprise architects ensure it’s optimized for performance and SEO in high-traffic stores.
What is the WooCommerce cart page?
The cart page shows items added by customers before checkout.
Managed via the cart.php template, it displays quantities and totals. Freelancers customize cart functionality, while enterprise architects integrate it with external systems for seamless order processing.
What is the WooCommerce checkout page?
The checkout page processes customer payments and order details.
Configured via checkout.php and WooCommerce settings, it handles billing, shipping, and payments. Freelancers customize checkout fields, while enterprise architects ensure secure, scalable checkout flows.
What is a WooCommerce payment gateway?
A payment gateway processes customer payments, like PayPal or Stripe, in WooCommerce.
Configured in WooCommerce > Settings > Payments, gateways handle transactions securely. Freelancers integrate gateways for clients, while enterprise architects ensure compatibility with enterprise payment systems.
How do you add a custom payment gateway?
Extend the WC_Payment_Gateway class and register it with WooCommerce.
Developers create a custom gateway by defining methods like process_payment(). Freelancers build gateways for niche client needs, while enterprise architects integrate custom gateways with secure, scalable systems.
What is the woocommerce_before_main_content hook?
It’s an action hook that runs before the main content on WooCommerce pages.
For example, add_action(‘woocommerce_before_main_content’, ‘my_function’) adds custom content. Freelancers use it for layout tweaks, while enterprise architects ensure it supports modular page designs.
What is the woocommerce_after_shop_loop hook?
It’s an action hook that runs after the product loop on the shop page.
For example, add_action(‘woocommerce_after_shop_loop’, ‘add_custom_text’) adds content below products. Freelancers use it for custom messaging, while enterprise architects leverage it for scalable UI enhancements.
What is the woocommerce_checkout_fields filter?
It modifies fields in the WooCommerce checkout form.
For example, add_filter(‘woocommerce_checkout_fields’, ‘customize_fields’) adds or removes fields. Freelancers customize checkout for clients, while enterprise architects ensure fields align with business data needs.
What is WC_Query?
WC_Query is a WooCommerce class that handles custom queries for products and shop pages.
It extends WP_Query for product-specific queries (e.g., filtering by category). Freelancers use it for custom product displays, while enterprise architects optimize queries for large catalogs.
What is a WooCommerce shortcode?
A shortcode is a tag (e.g., [products]) that displays WooCommerce content like products or carts.
For example, [products limit=”4”] shows four products. Freelancers use shortcodes for flexible layouts, while enterprise architects integrate them into dynamic content systems.
How do you create a custom WooCommerce shortcode?
Use add_shortcode() with a function to output WooCommerce content.
For example, add_shortcode(‘custom_products’, ‘display_custom_products’) creates a product shortcode. Freelancers build custom shortcodes for clients, while enterprise architects use them for reusable components.
What is the WooCommerce REST API?
The WooCommerce REST API allows external apps to interact with store data via JSON.
It supports CRUD operations for products, orders, etc. Freelancers use it for integrations (e.g., mobile apps), while enterprise architects leverage it for headless e-commerce or system connectivity.
How do you secure the WooCommerce REST API?
Use API keys, OAuth, and HTTPS to secure API requests.
API keys are generated in WooCommerce > Settings > Advanced > REST API. Freelancers secure APIs for client integrations, while enterprise architects enforce strict authentication for enterprise systems.
What is a WooCommerce webhook?
A webhook sends data to an external URL when events like order creation occur.
Configured in WooCommerce > Settings > Advanced > Webhooks, they notify external systems. Freelancers set up webhooks for client integrations, while enterprise architects use them for real-time data syncing.
What is the woocommerce_order_status_changed hook?
It’s an action hook that runs when an order’s status changes.
For example, add_action(‘woocommerce_order_status_changed’, ‘my_function’) triggers custom actions. Freelancers use it for order notifications, while enterprise architects integrate it with business workflows.
What is WooCommerce’s tax management system?
It calculates and applies taxes based on store and customer locations.
Configured in WooCommerce > Settings > Tax, it supports automatic or manual tax rates. Freelancers set up taxes for clients, while enterprise architects ensure compliance with global tax systems.
What is WooCommerce shipping zones?
Shipping zones define regions with specific shipping methods and rates.
Set in WooCommerce > Settings > Shipping, zones allow tailored shipping options. Freelancers configure zones for client needs, while enterprise architects optimize them for complex logistics.
What is wc_get_template()?
wc_get_template() loads WooCommerce template files with custom data.
For example, wc_get_template(‘custom.php’, array(‘data’ => $value)) loads a template. Freelancers use it for custom layouts, while enterprise architects ensure template modularity.