4 min read • Updated 44 minutes ago
Manage Products with Divhunt CMS
Use Divhunt CMS to manage your product data and pages.
Overview
This article provides information on how to manage Foxy products with Divhunt CMS and dynamically populate add to cart form data with Divhunt CMS data (ie: product name, price, image, etc.).
Want to integrate Foxy without using Divhunt CMS? No problem. You can manually link a Divhunt button to a Foxy purchase link. Links can be created manually or via our Link & Form Builder (available in the Foxy admin).
Add Code Snippet
Create Products CMS Collection
To dynamically populate your product detail page and add to cart forms, you'll need a Products CMS collection.
Create Product Detail Page
A product detail page is needed for customers to purchase products. This page can be called whatever you'd like.
Create Add To Cart Form
Add Product Data & Fields
At minimum, Foxy just needs a product name and price. This can be dynamic data from Divhunt CMS, static, or a mix of both dynamic and static. In addition, you can pass any other hidden, visible, or configurable data. Add the following required and optional fields to your form.
Name (required)
Price (required)
Image (optional)
Quantity (optional)
By default, a quantity of 1 will be added to cart. Once a product is in the cart, customers can easily change the quantity. If you'd like to allow customers to specify a quantity before adding a product to cart, please follow the steps below:
Custom Data & Fields (optional)
A complete list of Foxy standard product parameters can be found here. You can pass these parameters as hidden or visible/configurable fields. In addition, you can pass any custom parameters to the cart (ie: Color, Size, Format, etc.). You can use any type of field: input, select, radio, checkbox, etc. Values can be CMS driven, static, or set by the customer.
Testing
To test your add to cart forms, simply publish your Divhunt site and navigate to one of your product pages. Click to add product to cart. You should see product information and image (when applicable) in cart.