This object is in archive! 

Shortcodes?

T. B. shared this question 7 years ago
Answered

This is a web developer who is integrating IO into WordPress and modifying shortcodes. Under the category pages where items are listed, I want to retrieve the item's rental price and booking link (ex: https://www.inflatableoffice.com/quotes/quoteme.php?name=Example+Rentals&rental_names=Fire+Fighter+Bounce+House-1). What can I use in the io_category shortcode to make this work?

Comments (2)

photo
1

Using the same shortcode we use on for io_rental for the book now button should work to let the customer click to book quickly from that page:


  1. <a href="http://www.inflatableoffice.com/quotes/quoteme.php?name=%%page%%&clear_rentals=1&rental_names=%%name_encoded%%-1"; class="hudbtn primary">Book Now</a>

Price is not a variable that we can output. It's calculated based on the inputs of the quote form. What some of our clients do is hijack another field (like the footprint field or dimensions field) to enter a starting price and then use that template variable to output it.

photo
1

I appreciate the timely reply.


I felt the same way about your solution, too, which is why I tried it before asking. Unfortunately, the attempt results in this non-working link for all products:

  1. http://www.inflatableoffice.com/quotes/quoteme.php?name=&clear_rentals=1&rental_names=-1

I'll look into the field hijacking solution you have provided. Perhaps as a feature request, an update can include a Display Price field for this particular use, as displaying prices in a category view of products is common in a lot of other online stores. I do understand your design decisions that led up to here being involved with just renting products and calculating quotes, of course.


Thank you for your time and assistance thus far.

photo
1

There may be a technical limitation here that I wasn't aware of with those variables on that page. I've put a feature request together for our develpers to add support for those variables on that page.

Replies have been locked on this page!