Pay4Pixels Seller Items Iframe Integration

This guide explains how to integrate the Pay4Pixels seller items iframe into your website, displaying only a list of products from a specific seller in a clean, customizable format.

New Feature: This improved iframe displays only seller products in a list view, allowing customers to browse and select items without loading the entire website.
Security Enhancement: We now offer a secure integration method that doesn't expose your seller ID in the URL. See the Secure Integration Guide.

Basic Implementation

To embed a seller's products on your site, add the following iframe code:

<iframe 
    src="https://br.pay4pixels.com/iframe/v1/seller-list-iframe.html?seller=SELLER_ID" 
    width="100%" 
    height="600px" 
    frameborder="0" 
    scrolling="no" 
    allowfullscreen
></iframe>

Replace SELLER_ID with your actual seller ID.

Styled Implementation

To customize the colors and appearance to match your website:

<iframe 
    src="https://br.pay4pixels.com/iframe/v1/seller-list-iframe.html?seller=SELLER_ID&primaryColor=%234CAF50&secondaryColor=%23e91e63&bgColor=%23f9f9f9&borderRadius=8" 
    width="100%" 
    height="600px" 
    frameborder="0" 
    scrolling="no" 
    allowfullscreen
></iframe>

Available style parameters:

Iframe Generator

Create Your Iframe Code

Advanced Integration

Auto-Resizing

The iframe will automatically notify the parent page about its height. To support this feature, add this JavaScript to your page:

window.addEventListener('message', function(event) {
    if (event.data.type === 'resize') {
        const iframe = document.querySelector('iframe[src*="seller-items-iframe.html"]');
        if (iframe && event.data.height) {
            iframe.style.height = event.data.height + 'px';
        }
    }
});

Handling Product Selection

When a user selects a product, the iframe will send a message to the parent page. You can listen for this event to handle the selected product:

window.addEventListener('message', function(event) {
    if (event.data.type === 'productSelected') {
        const product = event.data.product;
        console.log('Selected product:', product);
        
        // Example: Show product details or add to cart
        // showProductDetails(product);
    }
});

Demo

Example Iframe (Seller ID: 21)