algol.plus
Forum Replies Created
-
We fixed this issue and plan to release new version next week.
If you submit ticket to https://algolplus.freshdesk.com/ – we’ll provide fixed version tomorrow.
Hello
I just copied this code (which shows error)
From function dslpfw_show_order_shipping_item_pickup_data()
File local-pickup-for-woocommerce/admin/class-local-pickup-woocommerce-admin.phpSo I suggest to contact thedotstore team, I think they will see why it happens and what I did wrong.
thanks , Alextry this version
add_filter( "woe_fetch_order", function($row, $order, $object ){
$data = array();
foreach( $order->get_items("shipping") as $item_id=>$item) {
$ds_local_pickup = dslpfw();
$items_to_choose = $order->get_items();
$items_to_pickup = ( !empty( $item['_dslpfw_pickup_items'] ) ? array_map( 'absint', maybe_unserialize( $item['_dslpfw_pickup_items'] ) ) : [] );
$appointment = $ds_local_pickup->get_dslpfw_appointments_object()->get_shipping_item_appointment( $item_id );
$pickup_date = ( $appointment ? $appointment->get_start() : null );
$appointments_mode = $ds_local_pickup->dslpfw_get_shipping_method_instance()->pickup_appointments_mode();
$data['_dslpfw_pickup_location_id'] = $item->get_meta("_dslpfw_pickup_location_id");
$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 );
$data['_dslpfw_pickup_location_address'] = $ds_local_pickup->get_dslpfw_orders_object()->get_dslpfw_order_items_object()->get_order_item_pickup_location_address( $item_id, 'plain' ) ;
$data['_dslpfw_pickup_location_phone'] = $ds_local_pickup->get_dslpfw_orders_object()->get_dslpfw_order_items_object()->get_order_item_pickup_location_phone( $item_id, false );
$items = [];
foreach ( $items_to_choose as $id => $item_data ) {
if ( isset( $item_data['name'], $item_data['qty'] ) && in_array( $id, $items_to_pickup, true ) ) {
$items[] = ( is_rtl() ? '× ' . $item_data['qty'] . ' ' . $item_data['name'] : $item_data['name'] . ' × ' . $item_data['qty'] );
}
}
$data['_dslpfw_pickup_location_items'] = implode( ', ', $items ) ;
break; // take 1st shipping
}
foreach($data as $k=>$v)
if(isset($row[$k])) $row[$k] = $v;
return $row;
},10,3);please, add this code to section “Misc Settings”
add_filter( "woe_fetch_order", function($row, $order, $object ){
//take 1st shipping
$items = $order->get_items("shipping");
if(empty($items)) return $row; // no shipping ?
$item = reset($items);
$item_id = array_keys($items)[0];
$ds_local_pickup = dslpfw();
$items_to_choose = $order->get_items();
$items_to_pickup = ( !empty( $item['_dslpfw_pickup_items'] ) ? array_map( 'absint', maybe_unserialize( $item['_dslpfw_pickup_items'] ) ) : [] );
$appointment = $ds_local_pickup->get_dslpfw_appointments_object()->get_shipping_item_appointment( $item_id );
$pickup_date = ( $appointment ? $appointment->get_start() : null );
$appointments_mode = $ds_local_pickup->dslpfw_get_shipping_method_instance()->pickup_appointments_mode();
$data = array();
$data['_dslpfw_pickup_location_id'] = $item->get_meta("_dslpfw_pickup_location_id");
$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 );
$data['_dslpfw_pickup_location_address'] = $ds_local_pickup->get_dslpfw_orders_object()->get_dslpfw_order_items_object()->get_order_item_pickup_location_address( $item_id, 'plain' ) ;
$data['_dslpfw_pickup_location_phone'] = $ds_local_pickup->get_dslpfw_orders_object()->get_dslpfw_order_items_object()->get_order_item_pickup_location_phone( $item_id, false );
$items = [];
foreach ( $items_to_choose as $id => $item_data ) {
if ( isset( $item_data['name'], $item_data['qty'] ) && in_array( $id, $items_to_pickup, true ) ) {
$items[] = ( is_rtl() ? '× ' . $item_data['qty'] . ' ' . $item_data['name'] : $item_data['name'] . ' × ' . $item_data['qty'] );
}
}
$data['_dslpfw_pickup_location_items'] = implode( ', ', $items ) ;
foreach($data as $k=>$v)
if(isset($row[$k])) $row[$k] = $v;
return $row;
},10,3);- This reply was modified 1 year, 8 months ago by algol.plus.
Hello
Do you use free plugin https://ww.wp.xz.cn/plugins/local-pickup-for-woocommerce/ ?
What mode do you use for pickup ?
“Allow customers to choose location per order” or “Allow customers to choose location per product” ?
We plan to release updated version next week .
Forum: Plugins
In reply to: [Phone Orders for WooCommerce] Multiple methods of payments ?Hello
You can create order, use button “View Order” and pay using credit card at order’s page .
But you have to use https://ww.wp.xz.cn/plugins/woo-mp/ plugin or similiar.Pro version of our plugin works as https://ww.wp.xz.cn/plugins/user-switching/ and redirect admin to forntend pages. So you can pay in behaave of selected customer.
hello
please, adapt this code
https://docs.algolplus.com/algol_pricing/show-bulk-table-below-product-title-in-category-shop-page/hello
it’s not free plugin. please, submit zip file as new ticket to https://algolplus.freshdesk.com/
ok, I understand it
if you have staging website – try to disable all other plugins and switch to StoreFront theme (default for WooCommerce)
Hello
please, visit >WooCommerce>Pricing Rules>Settings>Rules and set “Show first X results in autocomplete” = 1. Will you see results or 500 error again?
How many variations has each product ?
Forum: Plugins
In reply to: [Advanced Order Export For WooCommerce] GTIN, UPC, EAN, or ISBNhi
Please, use >Setup Fields>Products>Add Field
and seek for necessary keys in the dropdown.Hello
I’m sorry for delayed reply.
Our plugin shows amount saved in the cart totals, not near the each cart items.
But block-based cart(default for WooCommerce) shows this badge for each item.
You can use this css to hide it, run Customzer and put following text in “Additional CSS”.wc-block-cart-item__product .wc-block-components-product-badge{display:none}
- This reply was modified 1 year, 8 months ago by algol.plus.
Forum: Plugins
In reply to: [Advanced Order Export For WooCommerce] Export not possiblehi
Could you visit >WooCommerce>Status>Logs and review “fatal-error-xxx” for today ?