Forum

Thread tagged as: Problem

custom template variable for shop templates?

Can i use something like below

        perch_shop_registration_form([
            'template' => 'checkout/customer_create_passwordless.html',
            'address_select' => $opt
        ]);

and use this code

<perch:content id="address_select" />

to access the variable ?

sawan ruparel

sawan ruparel 0 points

  • 5 years ago
Rachel Andrew

Rachel Andrew 394 points
Perch Support

This is how to pass variables into templates: https://docs.grabaperch.com/templates/passing-variables-into-templates/

thanks, that worked