Planyo Help :: Configuration page: Shopping cart contents template

The following settings are accessible through the backend configuration page "Shopping cart contents template" located at https://api.planyo.com/cart-contents-template.php

Option grouping "Outer template (Shopping cart contents)"

Shopping cart contents
Verify code
This template lets you specify the HTML code which will be printed once for the shopping cart contents. The template must include the $(reservations) tag which will be replaced with all the items in the shopping cart (this is controlled by the inner template below). Other special tags you can use are:$(cart_total) -- total price of all items in the cart, $(cart_item_count) -- number of items in the shopping cart, $(empty_cart_url) -- URL to empty the entire shopping cart, $(coupon_info) -- when the site is using coupons, shows info about possibility of coupon usage for the shopping cart rentals, $(cart_coupon_count) - shows number of coupons used in the shopping cart, $(cart_coupon_amount_left), $(cart_coupon_amount_used) - print information about the coupon used in the shopping cart (the first one if multiple are used), $(cart_total_after_coupons) - the total price of all items in the cart after any coupons are applied. Note that the coupons are applied on checkout (the next reservation step) and their balance can change till then. For this reason, the actual outstanding price after checkout can sometimes differ. $(cart_deposit) - Deposit to be paid for the entire cart (pre-payment amount)$(apply_first_added_reservation_tags), $(apply_last_added_reservation_tags) - using these tags you can use the rental tags explained in FAQ Q204. These tags will come from the reservation added first/last to the shopping cart.The template can also use general tags (how to use tags?). Please see the following FAQ questions for a detailed tag list:Tag playgroundConditional printing of textsUniversal tagsSite data

Option grouping "Inner template (Shopping cart items)"

Here you can choose how each individual shopping cart item will be inserted into the cart contents (outer template). Select whether you want to show cart items in a table or as blocks of HTML code
Edit as
[Possible drop-down choices: Table, Block]
 
Verify code
This template will be used once for each item in the shopping cart. Special tags you can use are:$(price) -- item price$(remove_url) -- URL which the client can access to remove given item from the shopping cart.The template can also use general tags (how to use tags?). Please see the following FAQ questions for a detailed tag list:Tag playgroundConditional printing of textsUniversal tagsSite dataResource dataReservation data
Add header to the table
Number of columns
Edit columns
Customize style
Using the options above you can set up the table that will list the shopping cart items. You can add or hide the header row and choose how many columns will be shown in the table. Click the Edit columns button to enter the contents of the columns and Customize style to modify the table's CSS styles.