algol.plus
Forum Replies Created
-
Product tags – please read https://stackoverflow.com/questions/31904758/woocommerce-get-product-tags-in-array
please hire programmer, we spend a lot of time already
Forum: Plugins
In reply to: [Advanced Order Export For WooCommerce] Pay Methodhello
please, open section “Filter by billing” and use selector “Payment methods”
I already send you code which center cells , look at https://ww.wp.xz.cn/support/topic/mapping-local-pickup-details-to-excel-fields/page/2/#post-18046357
Just duplicate line for other columns
$objXls->getActiveSheet()->getStyle( "M1:M" . $formatter->last_row)->applyFromArray($style);To add Size as column – open >Setup Fields>Product Order Items, click Add Field and select “Size” in the dropdown. You should use https://docs.algolplus.com/algol_order_export/hooks-filters/ to adjust result.
Please hire PHP programmer.Forum damaged quotes in my message, use double quotes.
ok, try this code
add_filter( ‘woe_fetch_item_meta’, function($value, $meta, $item, $product ){
return $product->get_name() . "(" .$meta["meta_value"] . ")";
},10,4);You don’t need any code in this case 🙂
open >Setup Fields>Product Order Items, click Add Field and select “Size” in the dropdown.
>> I want it between the strikeprice and the new price.
please, send me code which you want to use.Look at https://www.businessbloomer.com/woocommerce-visual-hook-guide-cart-page/
Do you refer to “woocommerce_cart_totals_before_shipping” position ?
Try debug this function , add line before “return…”;
var_dump($value,$meta); die("debug");and press Preview .
- use code
add_filter( 'woe_fetch_item_meta', function($value, $meta, $item, $product ){
return $meta->display_value;
},10,4);2. use code
add_action( 'woe_xls_print_footer', function ($objXls,$formatter) {
$style = array(
'alignment' => array(
'horizontal' => PHPExcel_Style_Alignment::HORIZONTAL_CENTER,
)
);
$objXls->getActiveSheet()->getStyle( "M1:M" . $formatter->last_row)->applyFromArray($style);
}, 10, 2);$order is object.
https://woocommerce.github.io/code-reference/classes/WC-Order.html
Try replace
$data['_dslpfw_pickup_location_name'] = $ds_local_pickup->get_dslpfw_orders_object()->get_dslpfw_order_items_object()->get_order_item_pickup_location_name( $item_id );
WITH
$data['_dslpfw_pickup_location_name'] = $ds_local_pickup->get_dslpfw_orders_object()->get_dslpfw_order_items_object()->get_order_item_pickup_location_name( $item_id );
if(!$data['_dslpfw_pickup_location_name'])
$data['_dslpfw_pickup_location_name'] = $order->get_billing_address_1();or better — hire PHP programmer. I’m sorry, I have a lot of work.
it’s 2nd line in my code
https://ww.wp.xz.cn/support/topic/mapping-local-pickup-details-to-excel-fields/#post-18037732
Just replace
$data = array();
with
$data = array('_dslpfw_pickup_location_id' => $order->get_billing_address_1() );You can put default information in this line
$data = array();