Configuration Updated June 30, 2025

How to prevent user from viewing Sample Product?

1 min read
657 views
Helpful (2)

All Samples products will be redirected to Homepage. Follow these bellow guide to secure your Sample page.

  1. From Shopify admin dashboard.
  2. Navigate to Online Store > Themes tab.
  3. Edit code of your Live theme. Edit theme
  4. From the left side panel, click Add a new template, select product and name it samples and hit Create template Add new template
    Add this code bellow:

    {% layout none %}
    <!DOCTYPE HTML>
    <html lang="en-US">
    <head>
      <meta charset="UTF-8">
      <meta http-equiv="refresh" content="0; url={{ shop.url }}">
      <script type="text/javascript">
        window.location.href = "{{ shop.url }}";
      </script>
      <title>Redirecting...</title>
    </head>
    </html>
    
  5. Navigate to Products section
  6. Finding Samples products created on your store, click to open
    Edit Sample Products
  7. After opening Product sample, scroll down to section Theme templates on your right hand side.
    Edit Sample PDP Template
  8. Hit Save button on top right corner

Was this article helpful?

Help us improve our documentation

Still need help?

Can't find what you're looking for? Our support team is here to help.

Contact Support

Related Help Articles

Advanced Customization

New Feature: Offer Multiple Shipping Choices for Your Product Samples

Today, we are excited to introduce Advanced Shipping Options. Why Use Advanced Shipping Options? Instead…

Read Article → 3 min read
Help Article

How to Set Different Shipping Prices for Your Product Samples by Country

Are you sending product samples to customers in different countries? You probably know that shipping…

Read Article → 5 min read
Advanced Customization

New Feature: Configure Shipping Rates Based on Sample Count

We are excited to announce a brand-new feature in Product Samples: Shipping by Sample Count!…

Read Article → 2 min read