Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WC Vendors › meta_data
- This topic has 20 replies, 2 voices, and was last updated 6 years, 7 months ago by WCFM Forum.
- AuthorPosts
- May 27, 2018 at 7:35 pm #23882Monster DrummerGuest
Hi there (again ;))
Is it possible to show meta_data based on specific(s) key(s) on this dashboard??? I would need this because I’m sending the delivery location address (lat, lng and the key name is LatLng) as meta_data on my orders and I would like to, at least, show the Google Maps URL on the orders details ( it would be even better if I can show the map on the dashboard).
I think this feature may be a bit specific to my needs so if you don’t plan to do so you may guide me so I can do it (or try it ;))
Thanx again and waiting for your cool and quick response… - May 27, 2018 at 8:18 pm #23883Monster DrummerGuest
If you can help me with some custom code as I’m not precisely a PHP expert… I will really appreciate it…
- May 28, 2018 at 4:18 am #23890Monster DrummerGuest
Another thing is that I need to display the items on the orders details as plain text without the link to the actual product…
- May 28, 2018 at 8:08 am #23894WCFM ForumMember
Hi,
Here is the code for you to add a section to show “LatLng” info –
function delivery_locaton_in_order_details() { global $wp, $WCFM, $theorder, $wpdb; if( isset( $wp->query_vars['wcfm-orders-details'] ) && !empty( $wp->query_vars['wcfm-orders-details'] ) ) { $order_id = $wp->query_vars['wcfm-orders-details']; } if( !$order_id ) return; ?> <div class="wcfm-clearfix"></div><br /> <!-- collapsible --> <div class="page_collapsible orders_delivery_locaton" id="wcfm_orders_items_options"><?php _e('Order Delivery Locaton', 'wc-frontend-manager'); ?><span></span></div> <div class="wcfm-container"> <div id="orders_delivery_locaton_expander" class="wcfm-content"> <?php $LatLng = get_post_meta( $order_id, 'LatLng', true ); echo $LatLng; ?> </div> </div> <?php } add_action( 'end_wcfm_orders_details', 'delivery_locaton_in_order_details', 9 );
Thank You
- May 28, 2018 at 8:14 am #23895WCFM ForumMember
Hi,
“Another thing is that I need to display the items on the orders details as plain text without the link to the actual product…”
– Add this code in your site but it will work after next update –
add_filter( 'wcfm_is_allow_show_product_permalink', '__return_false' );
Thank You
- May 29, 2018 at 9:29 pm #23998Monster DrummerGuest
Thanks guys!!! Tweaking a bit your code I’m able to show the map the way I wanted!! I like to do it this way because I’m not delivering anything outside my city (at this point) and this way is way much better to specify more precisely the delivery location…
- May 30, 2018 at 8:13 am #24010WCFM ForumMember
Fantastic 🙂
- June 5, 2018 at 1:53 pm #24355Monster DrummerGuest
Hi
The products on Products Details are still showing as links (not to the actual product). It is possible to show them just as plain text??? - June 7, 2018 at 9:16 pm #24449WCFM ForumMember
Hi,
Possible and we will add some option for this in next update.
Thank You
- June 17, 2018 at 10:15 am #24981WCFM ForumMember
Hi,
This option added in WCfM 4.1.4
Add this line of code for the purpose –
add_filter( 'wcfm_is_allow_order_details_product_permalink', '__return_false' );
Kindly update yours and take a look.
Thank You
- June 19, 2018 at 4:34 am #25100Monster DrummerGuest
I need to disable one more thing… 😀
I just need to disable the link to “My Store” on the upper left corner of the dashboard. I would like to have it just as plain text - June 19, 2018 at 4:55 am #25101Monster DrummerGuest
Forget about the last request… I already done it via CSS.
One more question… Why when hovering some elements they just turns white? Can I avoid this or change the “on hover” color? - June 19, 2018 at 6:47 am #25106WCFM ForumMember
Hi,
Do you mean menu items?
Can you once check WCfM Admin Settings -> Style
I think something mis-configured there and set white as hover color.
It’s also possible by theme CSS, can you show me a screenshot as well.
Thank You
- June 19, 2018 at 7:03 pm #25130Monster DrummerGuest
I mean elements not from the menu. For example, in the orders list… when hovering any of the items of the list they fade to white and the same happens when I’m in the order details and hover the billing or shipping details, they also fade to white. I already searched on the “Style” menu but didn’t find anything related to this.
The only “fix” for this is disabling the pointer-events of that particular container but it also disables the email link. This is not really the best option so if you (for sure, hehe) have a better solution please let me know. - June 19, 2018 at 8:57 pm #25137Monster DrummerGuest
Here you have a screenshot…
https://imgur.com/a/T9kOrHR
Check it out and you’ll see what I mean… Hope you can help me to fix this… - June 20, 2018 at 7:22 am #25159WCFM ForumMember
Hi,
I have just checked this, thanks for the screenshot.
Actually, WCfM has no style for such hover. It’s probably due to theme CSS.
Can you share a demo vendor access with me to check the CSS?
Thank You
- June 20, 2018 at 12:29 pm #25165Monster DrummerGuestThis reply has been marked as private.
- June 20, 2018 at 12:30 pm #25168Monster DrummerGuestThis reply has been marked as private.
- June 20, 2018 at 3:57 pm #25172WCFM ForumMember
Hi,
Thanks for the details.
Can you please add this Style to your site –
#wcfm-main-contentainer table tbody tr:hover td { background-color: #1C2B36; } #wcfm-main-contentainer table tbody tr:hover td .wcfm-action-icon { color: #1C2B36; }
Thank You
- June 20, 2018 at 5:53 pm #25184Monster DrummerGuest
Thanx guys!!! It’s just fine now!!!
- June 20, 2018 at 7:44 pm #25187WCFM ForumMember
You are welcome 🙂
- AuthorPosts
- The topic ‘meta_data’ is closed to new replies.