Skip to content

Users Purchased Widget

The Users Purchased widget displays users who have purchased a specific product or listing. Show social proof with buyer avatars and optional purchase details.

Overview

Display a grid of user avatars or a detailed list showing who has purchased a product. This widget queries Voxel’s orders system and shows completed purchases, providing social proof that encourages conversions.

Key Features

  • Avatar grid or detailed list view
  • Overlapping avatar display
  • Total purchase count display
  • Purchase date display (list view)
  • Email display with truncation (list view)
  • Configurable stacking order
  • Caching for performance

Setup Instructions

Step 1: Enable the Widget

  1. Navigate to Voxel Toolkit → Widgets in your WordPress admin
  2. Find Users Purchased in the list
  3. Toggle the switch to enable the widget
  4. Click Save Changes

Step 2: Add to Template

  1. Edit your single product/listing template in Elementor
  2. Search for Users Purchased (VT)
  3. Drag the widget to your desired location
  4. Choose avatar grid or list view
  5. Save the template

Widget Settings

Display Settings

SettingDescriptionDefault
View TypeAvatar Grid or User ListAvatar Grid
Post SourceCurrent Post or Custom Post IDCurrent Post
Custom Post IDSpecific post ID (if custom source)Empty
Number of UsersHow many users to display10
Show Total CountDisplay total purchase countYes
Count TextText after the count number“people purchased this”

Avatar Grid Settings

SettingDescriptionDefault
Avatar SizeSize of each avatar in pixels50px
Avatar OverlapHow much avatars overlap horizontally-10px
Row SpacingVertical gap between avatar rows10px
Stacking OrderWhich avatars appear on topRight on Top
BorderBorder around each avatarConfigurable
Border RadiusRoundness of avatars50% (circle)
Box ShadowShadow effect on avatarsOptional

List View Settings

SettingDescriptionDefault
Show AvatarDisplay user avatar in listYes
Show Display NameShow user’s display nameYes
Show EmailShow user’s email addressNo
Email Max LengthTruncate email after X characters20
Show Purchase DateDisplay when purchase was madeYes
List Avatar SizeAvatar size in list view40px

Styling Options

Container Style

  • Background color/gradient
  • Border
  • Border radius
  • Padding

Typography

  • Count text typography and color
  • Name text typography and color (list view)
  • Meta text typography and color (list view)

How It Works

  1. Widget queries the vx_orders table for completed orders
  2. Parses order details JSON to find matching post IDs
  3. Fetches user data including Voxel avatars
  4. Results are cached for 5 minutes to improve performance
  5. Displays unique users (no duplicates)

Use Cases

Product Pages

Show buyer avatars to create social proof and urgency.

Course/Membership Sales

Display enrolled students or members to encourage sign-ups.

Event Tickets

Show attendees who have purchased tickets.

Service Bookings

Display customers who have booked the service.

Troubleshooting

No Users Showing

  • Verify completed orders exist for the product
  • Check that the vx_orders table exists
  • Ensure order status is “completed”
  • Clear transient cache if data seems stale

Missing Avatars

  • Widget falls back to Gravatar if no Voxel avatar
  • Check user’s voxel:avatar meta field
  • Ensure avatar attachment exists

Editor Preview Empty

  • Widget displays placeholder in editor when no data
  • Preview on the actual product page to see real data

Built by Code Wattz.