Contract template rental loop variable for item WordPress page URL?

Austin B. shared this question 20 days ago
Awaiting Reply

Looking for a rental item page URL variable that works in contract templates


I’m trying to add a “View Details” link next to each line item in my contract template that links to the item’s WordPress product page. The goal is for clients to click an item in their contract and view the full catalog listing.


Here’s what I’ve tested inside the rental loop in the contract template:


•*rental_wp_url* — renders a URL, but it outputs the contract signing page URL (contractme.php?...), not the item’s product page

•*rentalname_linked* — outputs blank


What I need: a rental loop variable that outputs the inventory item’s WordPress product page URL (e.g. {{domain}}/rentals/{{item-name}}/) and is accessible inside contract templates.


Is there a variable I’m missing, or is the item URL simply not exposed in contract template loops? Open to any workarounds.


Thank you.

Comments (1)

photo
1

The variable *rental_wp_url* should put out the Rental Wordpress URL. Do you have a test template you are working on that you have it set and it's going to the contract?

photo
1

Hi, yes I have a template: BE-Contract-test


It’s been tweaked a few times. To see what will/won’t work.

photo
1

We have our developers looking into this further and will advise when we have an update.

Thanks!

photo
1

Developer has advised there is no template variable for this. The solution we came up with would give you what you are looking for, it would be to create a custom variable and use that to link the rental page and paste the url for the item into the field. You can then use the custom variable on your contract. Do you need help adding the optional field to the rental item page?

photo
Leave a Comment
 
Attach a file