davidr2021
Forum Replies Created
Viewing 6 replies - 1 through 6 (of 6 total)
-
Forum: Plugins
In reply to: [WooCommerce Stripe Payment Gateway] Description that is passed on to StripeThanks!!!!
Forum: Plugins
In reply to: [WooCommerce Stripe Payment Gateway] Description that is passed on to StripeI need to replace the code with existing code or add the code to the page and if so where to add it.
add_filter( 'wc_stripe_generate_payment_request', 'filter_wc_stripe_payment_descriptionmod', 3, 10 ); function filter_wc_stripe_payment_descriptionmod( $post_data, $order, $source ) { foreach( $order->get_items() as $item_id => $line_item ){ $item_data = $line_item->get_data(); $product = $line_item->get_product(); $product_sku = $product->get_sku(); } $post_data['description'] = sprintf( __( '%1$s | %2$s' ), $product_sku, $post_data['description'] ); return $post_data; }Forum: Plugins
In reply to: [WooCommerce Stripe Payment Gateway] Description that is passed on to StripeThanks I’ll check it out
Forum: Plugins
In reply to: [WooCommerce Stripe Payment Gateway] Description that is passed on to StripeI guess that’s a requirement of a lot of people
Is there a code that someone has already written that you can refer us to?Forum: Plugins
In reply to: [WooCommerce Stripe Payment Gateway] Description that is passed on to StripeThere is no limit to the number of characters
Forum: Plugins
In reply to: [WooCommerce Stripe Payment Gateway] Description that is passed on to StripeI mean the DESCRIPTION field on the payment page
There is no limit to the number of characters
- This reply was modified 4 years, 11 months ago by davidr2021.
Viewing 6 replies - 1 through 6 (of 6 total)