join 2 table orders wordpress plugin

i have two table wp_wcfm_marketplace_orders wp_wcfm_affiliate_orders i need call data where wp_wcfm_affiliate_orders.orderid wp_wcfm_marketplace_orders.order_id it code call data table wp_wcfm_affiliate_orders class WCFMaf_Affiliate_Stats_Controller { public function __construct() { global $WCFM; $this->processing(); } public function processing() { global $WCFM, $wpdb, $_POST, $WCFMu, $WCFMaf; $length = $_POST[‘length’]; $offset = $_POST[‘start’]; $affiliate_id = $_POST[‘wcfm_affiliate’]; $status = $_POST[‘status_type’]; $sql = “SELECT…

Details

Convert Django Queryset to list or dict

From my views.py I doing this query: var_query = DB.objects.filter(Q(user_id=str(request.user.id)) & Q(router_name=’router1′ )).values(‘router_type’, ‘router_ip’) Working because I get this result: {‘router1’: set([‘[{“router_type”: “CISCO”, “router_ip”: “192.168.1.1”}]’])} the type of var_query is: tipo: When I convert this with list() converted = list(var_query) and this error: AttributeError: ‘set’ object has no attribute ‘iteritems’ becasue when a convert this…

Details

How to get struct array (or pointer) that is part of another struct? in C

In the following code: typedef struct { uint32_t variable_1; }struct_1; typedef struct { uint32_t variable_2; }struct_2; typedef struct { struct_1 struct_1_var; struct_2 struct_2_var; }struct_all; struct_all variable_t[10]; struct_1* struct_1_var; //how to get this to point to an array of struct_1 that’s inside variable_t? Basically, I want to get an struct_1[10] or struct_2[10] that that is part…

Details

how to add br between attributes item woocommerce

hi everyone i want to try add tag on the attributes item woocommerce to show any item per line . can i help me to do that? here is my product-attributes.php file code <table class=”woocommerce-product-attributes shop_attributes”> <?php foreach ( $product_attributes as $product_attribute_key => $product_attribute ) : ?> <tr class=”woocommerce-product-attributes-item woocommerce-product-attributes-item–<?php echo esc_attr( $product_attribute_key ); ?>”>…

Details