Product Rentals Pro
PRP on the App StoreContact Support
  • User Guide
  • Frequently Asked Questions
  • Getting Started
    • Installation
    • Setting up your Products in Shopify
    • Onboarding
      • Set your Store Settings
      • Import & Configure a Product
      • Set Delivery Methods and Defaults
      • Add and Configure the Rental Widget
      • Select a Plan
  • Settings
    • Store Settings
    • Rental Settings
    • Options & Variants Settings
    • Notification Settings
    • Add-Ons - Insurance
    • Add-Ons - Deposits
  • Managing Products
    • Importing Products
    • Products List
    • Configuring Products
    • Setting up a Product for Rental OR Sale
  • Managing Rentals
    • Overview
    • Rentals List
    • Viewing & Editing a Rental
    • Rental Buffers
    • Rental Statuses
    • Blackouts
      • Blackout Form Fields & Options
    • Find All Rentals for a Product
    • Rental Calendar for a Product
    • Creating a Rental Manually
      • Shopify Order Creation
    • Linking/Unlinking from a Shopify Order
  • Fulfillments and Returns
    • Fulfillments
      • Automated Rental Status Updates
    • Returns
  • Rental Widget
    • Rental Widget - Configuration Options
    • Rental Widget - Unavailable and Blocked Dates
    • Rental Widget - Custom Styling
    • Rental Widget - Advanced Customization
  • Other PRP Components
    • PRP Cart Manager
    • cart-quantity-validation Function
  • Selling & Payment Options
    • Intro to Selling & Payment Options
    • Part-Payments / Down-payments
    • Refundable Security Deposits
    • Damage Fees, Late Fees & Non-return Fees (Security Authorisation)
  • Plans & Billing
    • Overview and Comparison of Plans
    • SMS Usage Pricing
  • Troubleshooting
    • General Troubleshooting
    • Overbookings
  • Other
    • Improving the Cart & Checkout Experience
      • Preventing Quantity Updates on your Cart page
      • Blocking Checkout Shipping/Pick-up options based on the option selected on the Product page
      • Updating the price on the default Shopify Price theme block when the variant is changed
    • Supported Languages
Powered by GitBook
On this page
  1. Other PRP Components

cart-quantity-validation Function

A Shopify Cart/Checkout Function for preventing particular actions on items within the Cart

PreviousPRP Cart ManagerNextIntro to Selling & Payment Options

Last updated 13 days ago

The cart-quantity-validation Checkout Function runs on Shopify's servers, monitoring updates to a customer's Cart. It's only purposes, are:

  • Prevent the customer from updating the quantity of an item from directly within the cart. A customer needs to check availability for the quantity they want from the PRP Rental Widget on the product page. If we didn't prevent quantity updates, a customer could start with a quantity of 1 when looking at the rental availability calendar, then increase it to 10 once they arrive to the cart, essentially bypassing the availability calendar.

  • Prevent the customer from removing a Security Deposit product from the cart, whilst the rental product it's connected to is still in the cart.

To enable either of the capabilities above, the Checkout Function must be enabled on your store.

Enabling the cart-quantity-validation Checkout Function

  1. Go to Shopify Settings > Checkout.

  2. Scroll down to the bottom and look for the box named Checkout rules. Click Add Rule.

  3. A popup will appear with a list of available checkout rules on your store. Click on cart-quantity-validation under PRODUCT RENTALS PRO.

  4. The rule screen will first ask you to save settings. Leave "allow all customers to complete checkout" ticked and click Save. The checkout rule is added.

  5. Even though the checkout rule has been added, it is not turned on by default. Click Turn on at the top right of screen.

  6. The On badge appears next to the title, meaning the Checkout Function is active, and the setup is complete!