willhouse
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Inventory Manager] wpinventory_the_price(); not displaying the priceI wanted to update my workaround because it turns out the “Show In Detail” display settings also effect the reservation email.
I noticed that the reservation email that was being sent did not have the title of the item. However, when I dragged the “Name” field to “Show In Detail” and saved the settings the next test email had the name.
So, anyone who is going to try the workaround BE AWARE that “Show In Detail” also controls the fields sent in the reservation email.
-Richard
Forum: Plugins
In reply to: [WP Inventory Manager] wpinventory_the_price(); not displaying the priceChuck,
Sounds great! I’ll be on the lookout for the new release and will test the function when it comes out and post back here what I find out.
Thanks for following up with me and for the great plugin.
-Richard
Forum: Plugins
In reply to: [WP Inventory Manager] wpinventory_the_price(); not displaying the priceHi Chuck,
I never received the response sent on June 12th. Could you please post it here on the forum so I can check it out?
Thank you,
RichardForum: Plugins
In reply to: [WP Inventory Manager] wpinventory_the_price(); not displaying the priceAbout 4 weeks ago I sent an email using the option 2 provided…still no word on the mysterious wpinventory_the_price()
If anyone happens upon this and is looking to customize the single item page you can try out my workaround:
First, go to the “Display” settings in WP Inventory’s submenu and move “Price” to “Show in Detail”
Next, copy and paste this in your custom view (hint: use the original single-item.php found in the “views” folder as your guide). CAUTION, only do this if you are comfortable with theme overrides and PHP. If you are not, contact the plugin author:
<?php foreach($inventory_display AS $sort=>$field) { ?> <div class="<?php echo $field; ?>"> <?php if ($display_labels) { ?> <span class="wpinventory_label"><?php wpinventory_the_label($field); ?></span> <?php } wpinventory_the_field($field); ?> </div> <?php do_action('wpim_the_field_' . $field); ?> <?php } ?>
The above is the foreach that displays any fields you have set in the “Show In Detail” display (in my case I only used the price because that is all I needed but use whichever field suits your fancy). Then you can use any of the custom display functions found in single-loop-all-sample.php to further customize your page.
It’s not as clean as being able to use wpinventory_the_price() but it does work: https://milkandhoneyvintagerentals.com/rentals/inventory/1940sredradio/
Cheers!