meta_data

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Viewing 20 reply threads
  • Author
    Posts
    • #23882
      Monster Drummer
      Guest

      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…

    • #23883
      Monster Drummer
      Guest

      If you can help me with some custom code as I’m not precisely a PHP expert… I will really appreciate it…

    • #23890
      Monster Drummer
      Guest

      Another thing is that I need to display the items on the orders details as plain text without the link to the actual product…

    • #23894
      WCFM Forum
      Keymaster

      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

    • #23895
      WCFM Forum
      Keymaster

      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

    • #23998
      Monster Drummer
      Guest

      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…

    • #24010
      WCFM Forum
      Keymaster

      Fantastic 🙂

    • #24355
      Monster Drummer
      Guest

      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???

    • #24449
      WCFM Forum
      Keymaster

      Hi,

      Possible and we will add some option for this in next update.

      Thank You

    • #24981
      WCFM Forum
      Keymaster

      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

    • #25100
      Monster Drummer
      Guest

      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

    • #25101
      Monster Drummer
      Guest

      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?

    • #25106
      WCFM Forum
      Keymaster

      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

    • #25130
      Monster Drummer
      Guest

      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.

    • #25137
      Monster Drummer
      Guest

      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…

    • #25159
      WCFM Forum
      Keymaster

      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

    • #25165
      Monster Drummer
      Guest
      This reply has been marked as private.
    • #25168
      Monster Drummer
      Guest
      This reply has been marked as private.
    • #25172
      WCFM Forum
      Keymaster

      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

    • #25184
      Monster Drummer
      Guest

      Thanx guys!!! It’s just fine now!!!

    • #25187
      WCFM Forum
      Keymaster

      You are welcome 🙂

Viewing 20 reply threads
  • The topic ‘meta_data’ is closed to new replies.