| 开发者 | shameemreza |
|---|---|
| 更新时间 | 2026年11月27日 03:10 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
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 RezaSource 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.
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.
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.
Yes. A simple product gets one Page color for its whole page, read from its photo or set by hand.
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.
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.
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.
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.
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.
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.
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.
When the color changes, the photo changes with Blur (the default), Fade, Zoom, Slide, Flip, Wipe, Circle reveal, Color wash or None.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Yes. Set its Page color to Off, and it keeps your theme's colors.
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.
Visitors who turn on reduced motion on their device get the colors without any animation.
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.
No. Purplish reads the photos on your own server, with the image tools PHP already has, and never sends them anywhere.
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.
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.
Please report it privately through the security policy on GitHub, not in the support forum.
query-more in the address anymore.settings.custom.purplish.settings.custom.purplish.