Hp product data

From HurryPress Documentation
Jump to: navigation, search

[hp_product_data id=product_id#|billing_plan_id=billing_plan# field=xxx]

This shortcode allows to insert configured product and related product billing plan information into a page. To specify what product to display shortcode must contain either id or billing_plan_id

Just replace xxx to one from available fields:

product_id 
Product#
title 
Product Title
description 
Product Description
billing_plan_title 
Billing Plan Title
billing_plan_terms 
Subscription terms in human readable form
first_price 
Price of first billing period
first_period 
Length of first billing period (like 1d, 2m, 3y)
second_price 
Price of second and following billing periods
second_period 
Length of second and following billing periods (like 1d, 2m, 3y)
rebill_times 
How many times should HurryPress charge second price (0-never, 1-once)
currency 
Currency


Code Sample <syntaxhighlight lang="php" >

[hp_product_data id=11 field=title] : [hp_product_data id=11 field=description] [hp_product_data id=11 field=terms]

[hp_product_data billing_plan_id=22 field=title] : [hp_product_data billing_plan_id=22 field=description] [hp_product_data billing_plan_id=22 field=terms]


</syntaxhighlight>