Product shortcode options
You can use the pop-up window on the WordPress page editor to easily insert a product shortcode or you can easily type the shortcode by hand. The product shortcode has the following syntax:
[cc_product sku="EX29" display="inline" quantity="true" price="true"]
The Cart66 Cloud product shortcode has the following options:
The SKU specifies which product to display and should exactly match the SKU of one of the products you have defined in your Cart66 Cloud management console:https://manage.cart66.com
This controls the layout of the product form. The available options are:
- inline: The quantity and Add To Cart button are side by side
- vertical: The form labels are above the form fields.
- horizontal: The form labels are beside the form fields.
Note: If the product has options (variations) then it cannot be displayed inline.
You can choose to display or hide the quantity box. If the quantity box is hidden then the Add To Cart button will add one item to the cart at a time. The available options are:
- true: Display the quantity text field
- false: Hide the quantity text field
You can choose to display or hide the price. Sometimes you may want to hide the price so that you can use your own design, such as an image, or you may want to display the price in a different area of the page. The available options are:
- true: Display the price
- false: Hide the price