Forum

Thread tagged as: Problem, PayPal

Perch System Variables and the Perch Shop Paypal App

Hi guys,

Looking to pass a Perch System Variable into a page controlled by the Perch Shop PayPal App.

Here's my PHP code (category.php):

PerchSystem::set_var('today', date('Y-m-d'));
perch_shop_products_by_category(perch_get('cat'), 12);

and my HTML code:

<h1><perch:content id="today" /></h1>

Currently, it's not outputting anything between the <h1> tags.

If I use <perch:showall /> then I can see the 'today' variable.

Any ideas?

Thanks!

Harry Ray

Harry Ray 0 points

  • 5 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

perch:content tags are used by the Content app, which isn't what you're using. The output of <perch:showall /> should tell you at the bottom which namespace the template is using.

I imagine it's probably <perch:shop />

Oh - that's a pretty good point.

Thanks, Drew! I'll report back if it's non-working.