algol.plus
Forum Replies Created
-
Forum: Plugins
In reply to: [Advanced Order Export For WooCommerce] Group by Product SKUYou’re welcome
Forum: Plugins
In reply to: [Advanced Order Export For WooCommerce] Group by Product SKUI will spend same time as I will program it .
So add key “summary_report_order_id”
USe this code
add_action( "woe_summary_products_add_item", function( $key, $product_item, $order, $item ){
$field = "summary_report_order_id";
if( empty( $_SESSION["woe_summary_products"][$key][$field]))
$_SESSION["woe_summary_products"][$key][$field] = array();
$_SESSION["woe_summary_products"][$key][$field][] = $order->get_id();
},10,4);
add_action( 'woe_summary_before_output' , function(){
$new_rows = array();
foreach($_SESSION["woe_summary_products"] as $data) {
foreach($data["summary_report_order_id"] as $idx=>$order_id){
$new_row= $data;
if($idx>0)
foreach($new_row as $k=>$v) $new_row[$k]="";
$new_row["summary_report_order_id"] = $order_id;
$new_rows[] = $new_row;
}
}
$_SESSION["woe_summary_products"] =$new_rows;
});Forum: Plugins
In reply to: [Advanced Order Export For WooCommerce] Group by Product SKUadd new key via >Setup Fields>Add Field
fill this key(as array) inside hook with $order->get_id()add_action( "woe_summary_products_add_item", $key, $product_item, $order, $item ){
},10,4);rebuild $_SESSION[‘woe_summary_products’] inside hook (repeat product line for each order_id )
add_action( 'woe_summary_before_output' , function(){
});Forum: Plugins
In reply to: [Advanced Order Export For WooCommerce] Group by Product SKUHello
I don’t see easy way, it requies some programming. Will you be able to do it ?
Hello Christine
Free version of this plugin has some limitations
– it can automatically add gift(product with 0) to cart
– or customer should add product to cart
https://docs.algolplus.com/algol_pricing/bogo-free-help/Pro version can show advertising message at product page and can add discounted product to cart .
You should setup rule like https://snipboard.io/I2nTWf.jpg or https://snipboard.io/8vTgZ4.jpgYou can submit ticket to https://algolplus.freshdesk.com/ and will send you version for tests.
thanks, Alex
Hello
please, submit ticket to https://algolplus.freshdesk.com/ and I will send you updated version which will support “After subtotal” position.
just use
if( $order->get_payment_method() == "cod")
$value = $order->get_total();
else
$value = 0;please follow to https://docs.algolplus.com/algol_order_export/fields/
add key COD_total
add codeadd_filter('woe_get_order_value_COD_total',function ($value, $order,$fieldname) {
if( $order->get_payment_method() == "cod")
$value = $order->get_total();
return $value;
},10,3);We planned to release it yesterday, but decided to test it more . So new version only on Monday .
But you can get fixed version at (scroll to bottom and press button Download)
https://ww.wp.xz.cn/plugins/advanced-dynamic-pricing-for-woocommerce/advanced/You should install it via >Plugins>Add New>Upload
Forum: Plugins
In reply to: [Advanced Order Export For WooCommerce] Pay MethodYou’re welcome
Forum: Plugins
In reply to: [Advanced Order Export For WooCommerce] Pay MethodPlease disable mode “Summary report by customers”
You’re very welcome 👍
Forum: Plugins
In reply to: [Advanced Order Export For WooCommerce] Pay MethodPlease, open >Setup Fields>Cart and drag field “Payment method” to left column.
More details https://docs.algolplus.com/algol_order_export/the-set-up-fields-to-export-block/
Useful link https://www.businessbloomer.com/woocommerce-visual-hook-guide-single-product-page/
please, modify this code
add_action( 'woocommerce_before_add_to_cart_button', function(){
global $product;
$processedProduct = adp_functions()->calculateProduct($product, $qty = 1, $useEmptyCart = true);
if($processedProduct instanceof ADP\BaseVersion\Includes\PriceDisplay\ProcessedProductSimple) {
$discount = $product->get_price() - $processedProduct->getCalculatedPrice();
}
elseif($processedProduct instanceof ADP\BaseVersion\Includes\PriceDisplay\ProcessedVariableProduct) {
$discount = $product->get_variation_price('min') - $processedProduct->getLowestPrice();
}
if($discount>0)
echo "Discount by rule = " . wc_price($discount) . "";
});hello
please, tweak this code, I have to use “tag” , as forum removes html tags from my code.
add_action( 'woocommerce_after_cart_item_name', function($cart_item, $cart_item_key){
if(empty($cart_item["adp"]["discount"])) return;
$value = 0;
foreach($cart_item["adp"]["discount"] as $rule_id=>$amounts)
$value += array_sum($amounts);
if($value>0)
echo "tag Discount by rule = " . wc_price($value) . "tag";
},10,2);- This reply was modified 1 year, 8 months ago by algol.plus.
- This reply was modified 1 year, 8 months ago by algol.plus.