Linux 软件免费装
Banner图

Purplish - Block Design Toolkit for WooCommerce

开发者 shameemreza
更新时间 2026年11月27日 03:10
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

woocommerce blocks design product gallery woocommerce blocks

下载

1.3.3 1.4.0 1.3.0 1.2.1 1.1.0 1.3.1 1.3.2 1.2.0 1.4.1 1.0.0 1.4.2

详情介绍:

Open a few WooCommerce stores on block themes and you'll see the same add to cart button, the same gallery and the same product cards, whatever they sell. The blocks are good. They all start out looking alike, though. Purplish is a block design toolkit for WooCommerce. It gives those blocks, and the patterns you build from them, the design options they don't have on their own. Select a block in the Site Editor, open the Purplish panel, and decide how it looks and moves. You need no page builder and no custom CSS, and nothing of WooCommerce's gets replaced. Think of a product page that takes the color of the variation a shopper picks, a gallery that tilts toward the mouse or slides in like a film reel, or a shop page where product cards fan out and hang from a clothes line. [youtube https://www.youtube.com/watch?v=K9pyGo5XebQ] Built to stay out of your way What Purplish adds to WooCommerce blocks Every effect plays on a hover, a scroll, a color change, an add to cart, an opened cart drawer or a placed order, then stops. Nothing moves on its own unless you turn on Showfloor's autoplay. Visitors who turn on reduced motion on their device get the colors without the animation. Purplish blocks Find them in the Purplish group of the block inserter. Patterns Purplish's 29 patterns are in the Purplish category of the pattern inserter. They're built from WooCommerce and core blocks, so you can change any part. Abilities for AI agents Purplish registers four abilities with the WordPress Abilities API. Through the REST API or the MCP Adapter plugin, an AI agent can list what Purplish can do, read the options a page uses, set them on a block and add a pattern. Only Purplish's own options change, and each change saves a revision. Block and classic themes Purplish is built for block themes and tested with the free Purple theme. On a block theme, every option sits in a Purplish panel on the block it changes, in the Site Editor. Classic themes get a smaller set under WooCommerce > Settings > Products > Purplish: the page colors (except the selected option, since classic themes show a dropdown), the photo transition, the title and price rise, and three gallery options: hide thumbnails, rounded corners and the hover style. Why I made it
Purplish started with one small idea from a discussion on X: let the product page take the color of the variation a shopper picks. Building it showed me how much more WooCommerce's blocks can do with a few good options, so I kept going. I built the Purplish plugin site with WooCommerce, the Purple theme and Purplish itself. Shameem Reza
Source code The code is on GitHub, with every option explained in the README. The readable source of the scripts ships in assets/src, next to the built files in build. To build them, run npm ci and npm run build.

安装:

  1. Make sure WooCommerce 11.0 or later is active.
  2. Go to Plugins > Add New, search for Purplish, then install and activate it. Purplish reads the colors of your variation photos in the background.
  3. To change a variation's color, edit the product, open Variations and use the Page color field. For a simple, bundle, composite, mix and match or grouped product, it's on the General tab.
  4. On a block theme, open a template in the Site Editor, select a block Purplish works on, like Add to Cart + Options, Product Gallery or Product Collection, and open the Purplish panel. Purplish's own blocks are in the Purplish group of the block inserter. On a classic theme, go to WooCommerce > Settings > Products > Purplish.

屏幕截图:

  • The same page after picking blue.
  • The Page color field on a variation: Automatic, Custom or Off.
  • The Purplish panel on the Add to Cart + Options block in the Site Editor.
  • Purplish settings for classic themes under WooCommerce > Settings > Products.

常见问题:

How do I change the add to cart button color for each variation in WooCommerce?

Install Purplish. Each variation takes its color from its photo by default, and the add to cart button follows the variation the shopper picks. To set a color yourself, edit the variation and set Page color to Custom.

Does Purplish work with my theme?

Yes. Block themes get every option through WooCommerce's product blocks. Classic themes get the page colors, the photo transition, the title and price rise, and three gallery options. Purplish's blocks also take the colors of the section style they sit in, like Purple's Style 1 to 3, on every color variation and on any block theme with section styles. A block theme can match Purplish's corners, shadow, photo wash and ruled lines to its own in theme.json, under settings.custom.purplish (radius, shadow, wash and rule). The README on GitHub has an example.

Does it work with simple products?

Yes. A simple product gets one Page color for its whole page, read from its photo or set by hand.

Does it work with bundles and grouped products?

Yes. A bundle, composite, mix and match box or grouped product gets its own Page color on the General tab, and its page opens in that color. When a shopper picks a color on an item, or adds a mix and match or grouped item, the page takes that item's color. Clearing it hands the color back to the item changed before, then to the product's own color. With the product's own color set to Off, a bundle or composite opens in the color of its first item that already has one. Works with WooCommerce Product Bundles, WPC Product Bundles, Composite Products and Mix and Match Products. A variable product inside a grouped product only links to its own page there, so it doesn't change the color.

Do I need color swatches?

No. Purplish works with WooCommerce's plain dropdowns and option buttons. If you set swatch colors on the color attribute, Purplish uses those first. To show a dot of each color on the option buttons, turn on Color dots. To show each color as its variation photo instead, pick Photo swatches under Color options on the Variation Selector.

How do I add a hover effect to the WooCommerce product gallery?

On a block theme, open the Single Product template in the Site Editor, select the Product Gallery block, and pick a Hover style in the Purplish panel. The full-screen and slide styles are in the same panel. On a classic theme, pick the hover style under WooCommerce > Settings > Products > Purplish.

Can I change how product cards look on the shop page?

Yes, on block themes. Select the Product Collection block on your shop or collection template and open the Purplish panel. You can put add to cart on the photo, pick one of 23 card effects, and add a hover look to the card, the photo or the add to cart button.

A color Purplish found looks wrong. What do I do?

Set the variation's Page color to Custom and pick the color. A busy photo, like a model in a furnished room, can point Purplish at the wrong area.

Why do some option buttons have no color dot?

An option gets a dot only when every variation with it has the same color. A size, or an option that comes in several colors, has no single color to show. On the picked option, the dot turns the button's text color so it stays visible.

How does Purplish pick a variation's color?

Each variation has a Page color setting. Automatic, the default, finds the product in the photo, not the wall behind it, and takes its color. If the color attribute has a swatch color, that comes first. Custom uses the color you pick, exactly as you set it. Off keeps your theme's colors. A photo's color is often too dark or too pale for a button, so Purplish keeps the hue and adjusts it for each use, with readable text on the button. The page opens in the default variation's color, so there's no flash of your theme's colors first.

Which photo transitions are there?

When the color changes, the photo changes with Blur (the default), Fade, Zoom, Slide, Flip, Wipe, Circle reveal, Color wash or None.

Which gallery styles are there?

Hover styles: 3D tilt, Zoom, Loupe, Lift, Parallax, Glare and Slow zoom. Any of them replaces WooCommerce's own hover zoom, and touch screens skip it. Full-screen styles, for the lightbox that opens when a shopper clicks the photo: Snap stack, Zoom from photo, Filmstrip, Cinema and Classic fade. They need the gallery's "Open pop-up when clicked" setting. Slide styles: 3D media gallery, Circular slider, Reel slider and Image tunnel. Layouts: Grid, two across, and Two large over smaller ones show every photo at once on screens 600px and wider. Phones keep one photo at a time, with swipe, thumbnails and a photo count.

Which card effects are there?

There are 23. On hover: Spotlight, Color reveal, Fan deck, Expanded cards, Magnetic panel, Card folder, Bookmark and Roster. In a carousel (a grid stays as it is): Deck, Arc, Spotlight carousel, Grow, Tilt, Depth, Overlap, Momentum, Wheel, Helix and Reel, and the last three can also be dragged with the mouse. As cards scroll into view: Clothes line, Parallax, Zoom reveal and Unfold, which needs the Grid layout.

How do I show a best seller tag on WooCommerce product cards?

Put the Shelf Tag block inside the Product Image block of your Product Collection and pick its rule: best sellers, new arrivals, featured products, products on sale, or a product tag or category you choose. The tag shows only on the cards it matches, as a chip, a pill, frosted glass, a ribbon across the corner or your own image, in the corner you pick, with your own words if you like and a shine on hover. Give it a start and end date and it shows only while your sale runs, in the store's time zone. For a discount like -39%, add WooCommerce's On-Sale Badge block inside Product Image, set its content to Percentage and its prefix to a minus sign. The Purplish panel gives it a pill, circle, price tag or ribbon shape.

How do I show a sold out label on product cards?

Put WooCommerce's Stock Indicator block inside the Product Image block and turn on Only when sold out in the Purplish panel. It takes the same three looks as the Shelf Tag and can grey out the photo. Turn on Dot for a small colored dot before In stock, low stock and On backorder, a different color for each.

How do I show color swatches on WooCommerce product cards?

Add the Color Dots block to the card. It shows the colors a product comes in, as small dots beside the name or swatches under the price, from your color attribute or each variation's page color. Shoppers can tap or point at a dot to see that color's photo on the card, with a fade, wipe or slide. It works from the keyboard, and the photo's alt text names the color for screen readers.

How do I make a WooCommerce category grid with images?

Select the Terms Query block and set its Look to Category photos. Each category shows its photo in a circle, rounded square, square or arch, with a ring around the current one, and you can add a hover and a scroll entrance. For big tiles, add the Shop by category pattern: your four biggest categories, each with its photo and a Shop now button.

Can I add a mega menu to a block theme?

Yes. Add the Wardrobe block to your Navigation block. Hovering or clicking its label opens a big panel under the header, made of blocks you edit in place. With more than one look card in the panel, hovering a category link shows its look. Enter or Space opens it, Escape closes it and puts focus back on the label, and on phones the label is a plain link.

How do I add a Load more button to the WooCommerce shop page?

Select the Pagination block in your Product Collection and pick Load more in the Purplish panel. The button adds the next page under the products, on its own or over a fade, and the new cards come in one after another. It takes the Button block's looks, and a reload or the Back button keeps the same products.

Can the product filters sit in a bar above the products?

Yes. Select the Product Filters block and set Layout to Bar. Each filter opens as a dropdown under its label, on a click or on hover, with four open styles. To keep the sidebar instead, turn on Sidebar can hide for a Hide filters button beside Sort by. Phones keep the filter overlay either way.

Can the WooCommerce search show products while typing?

Yes. Select a Search block and turn on Show products while typing under Instant results. Products show from the second letter, matched by name or SKU, variation SKUs too. It works on cached pages. Prices in the list are the ones a guest sees, so stores with role or member prices see guest prices there.

How do I style the WooCommerce checkout?

Select the Checkout block and open the Purplish panel. Fields can be soft, filled or underlined, with a focus ring in the effect color. Shipping and payment choices can sit on cards, step numbers can be badges or a timeline, and the order summary can sit on a soft card with a bigger total. Place Order gets the Button block's looks and a small lock. Nothing on the checkout moves.

Can I change the cart drawer and the order confirmation page?

Yes. The Mini-Cart drawer can open with a soft spring, with the items on soft rows, and Fly to cart sends the product photo into the cart icon. On the order confirmation page, the Order Status heading can rise with a burst of rays behind it once, and the Order Summary can sit on a paper receipt with a torn bottom edge, printed on the block's background color. The drawer and the Cart page can show how much more the cart needs for free shipping. Both can also hide each item's short description, so the rows stay short.

Can I show a monthly price under the product price?

Yes. Turn on Instalment line in the Purplish panel of the Product Price block, then set your price bands, minimum price, wording, info link and logo in WooCommerce > Settings > Products > Instalments. A price uses the highest band it reaches. At 0% the price is split and rounded up, so the months never add up to less than the price. A yearly rate above 0 always shows the total payable. The line only shows the sum. It doesn't take payments or change checkout, so pair it with the pay-later or instalment plan your store offers. You own the wording, so check what your country asks a store to say about payment plans before you turn it on.

Can shoppers add a whole outfit to the cart at once?

Yes, with two blocks. On a Showfloor, one button adds every piece of a look at the price shown, and variable products link to their page instead. In the Changing Room, Add both adds the top and the bottom and asks for a size first when a piece needs one.

Can shoppers trade in an old phone?

Yes. Turn on Ask about a trade-in on Add to Cart + Options, then add your devices at WooCommerce > Settings > Products > Trade-in, each with a low and a high value. You can import and export the table as a CSV. Shoppers pick the brand, model and storage and see the estimate. The device is saved on the cart item and the order, and nothing comes off the price. A category or a product can turn it on or off.

Does anything move on its own?

Only Showfloor's autoplay, and it's off by default. When you turn it on, it moves every 3 to 8 seconds, holds while a visitor uses the floor, and has a pause button. The Scroll Lookbook's opening video plays once and stops within 5 seconds. Visitors who turn on reduced motion get neither.

Can I turn it off for one variation or product?

Yes. Set its Page color to Off, and it keeps your theme's colors.

Can panels stay neutral when a product has a color?

Soft panels, like accordions and the cart drawer, take a light mix of the page color. To keep them on a neutral fill from your theme's text color, turn off Tint panels with the page color in WooCommerce > Settings > Products > Purplish. The page background tint keeps the page color.

What about visitors who turn off motion?

Visitors who turn on reduced motion on their device get the colors without any animation.

Will Purplish slow down my store?

No. Photos are read in the background and the color is saved with the product. The product page loads a small stylesheet. The color script loads only on variable products, bundles, composites, mix and match boxes and grouped products, and each effect loads only on pages that use it.

Do my product photos leave my site?

No. Purplish reads the photos on your own server, with the image tools PHP already has, and never sends them anywhere.

Does it change WooCommerce's blocks or templates?

No. Purplish adds a panel to WooCommerce's own blocks and styles the parts you choose. Deactivate it, and your store looks exactly as it did before.

Can an AI agent design my store with Purplish?

Yes. Purplish registers four abilities in the Abilities API: get the design catalog, get the designs on a page, set a block's design and insert a pattern. Add the MCP Adapter plugin to offer them to an agent. Running them needs the same permission as editing that page or template in WordPress.

Where do I report a security issue?

Please report it privately through the security policy on GitHub, not in the support forum.

更新日志:

1.4.2 1.4.1 1.4.0 1.3.3 1.3.2 1.3.1 See changelog for all versions.