All Collections
API / Customization / Advanced
HAPI - Access Customer Total Values to Manipulate Content and Layout
HAPI - Access Customer Total Values to Manipulate Content and Layout

We offer nearly 50 customer.total commands that can bring back relevant data to control the user experience on the fly (server-side).

Updated over a week ago

You can add the following commands in your HAPI whether to display a number or to use for conditional purposes.

The notation is:

{@customer.totalXXX@}

It can be used in a conditional statement like:

data-pv-conditional="{@customer.totalSpend@} > 0"

You can use any of these:

{@customer.totalContestEntries@}
{@customer.totalContestPrizes@}
{@customer.totalPassesGenerated@}
{@customer.totalPassesPocket@}
{@customer.totalPassesRedeemed@}
{@customer.totalSurveysAnswered@}
{@customer.totalPaymentMethods@}
{@customer.totalMembershipCards@}
{@customer.totalMembershipCardsActive@}
{@customer.totalSubscriptions@}
{@customer.totalSubscriptionsActive@}
{@customer.totalVotes@}
{@customer.totalNotes@}
{@customer.totalMembershipActivity@}
{@customer.totalAssociations@}
{@customer.totalTransactions@}
{@customer.totalSpend@}
{@customer.totalLoyaltyActivites@}
{@customer.totalPointsEarned@}
{@customer.totalPointsAvailable@}
{@customer.totalSocialTrackingPosts@}
{@customer.totalCredits@}
{@customer.totalCreditsIssued@}
{@customer.totalNewslettersClicked@}
{@customer.totalNewslettersOpened@}
{@customer.totalNewslettersReceived@}
{@customer.totalSMSNewslettersClicked@}
{@customer.totalSMSNewslettersReceived@}
{@customer.totalApplications@}
{@customer.totalApplicationsApproved@}
{@customer.totalSMSReceivedFrom@}
{@customer.totalSMSSentTo@}
{@customer.totalEmailReceivedFrom@}
{@customer.totalEmailSentTo@}
{@customer.totalTicketsPurchased@}
{@customer.totalTicketsPurchasedUpcoming@}
{@customer.totalOrders@}
{@customer.totalAppointments@}
{@customer.totalMedia@}
{@customer.totalCampaignQueue@}
{@customer.totalKeywordHits@}
{@customer.totalReviews@}
{@customer.totalBusinesses@}
{@customer.totalAffiliates@}
{@customer.totalGiftCards@}
{@customer.totalFavorites@}
{@customer.totalFundraisers@}
{@customer.totalInvoices@}

Remember, these can be added to both content and to your layout for the ultimate in control!  Enjoy.

Did this answer your question?