daveetasac
Forum Replies Created
-
Forum: Hacks
In reply to: Need to include custom fields in meta box select menu outputWell, I still don’t quite understand how to accomplish this. Let’s see if I can be a little more clear.
This is a single-site installation. In the backend, the theme has a custom meta-box in the functions.php that shows the store names in an ajax search box (notice a recent update changed ‘type’ to ‘post_type_ajax’ instead of select).
Here’s that updated snippet of code:array( 'id' => 'offer_store', 'name' => __( 'Offer Store', 'couponxl' ), 'type' => 'post_type_ajax', 'post_type' => 'store', 'additional' => array( 'orderby' => 'title', 'order' => 'DESC', ), 'desc' => __( 'Select store this offer is related to.', 'couponxl' ) ),This code is strictly used in the back-end for selecting the store a particular coupon will be related to; only the name of the store is shown. Example: My Store Name. I would like it, however, to show like this:
My Store Name (123 Main St, Town, State 12345).So, I need to find out how to echo the address, city, state and zipcode in this ajax box, using the built-in array. I’m using Advanced Custom Fields to hold each store’s address information. Any further help is much appreciated.
Forum: Hacks
In reply to: Need to include custom fields in meta box select menu outputThanks for the reply, bcworkz! I’ll try that solution. =)
Forum: Plugins
In reply to: [Plugin: Woocommerce] Hide product variations on front end based on user roleUnfortunately, no, I was unable to find a workaround for this. If anyone finds a solution, please post it. Thank you.