nexadesign2
Forum Replies Created
-
This is a first PDF and this is a OK for me:
https://ibb.co/F5Hp4FG
This is what a happen when subscription renewal:
https://ibb.co/d7qDqCb
I don’t nead “Abopreis:” and “Einmalige Einrichtungsgebühr + Versand: ” part after first (Initial) PDF. I just nead regular price of subscription.
https://ibb.co/LRqrPNv
I use this code as a snippet:// Show initial subscription fee and regular price on PDF invoices add_filter('wpo_wcpdf_order_item_data', 'custom_pdf_invoice_item_prices', 10, 3); function custom_pdf_invoice_item_prices($data, $order, $document_type) { if ($document_type == 'invoice') { foreach ($order->get_items() as $item_id => $item) { $product = $item->get_product(); $subscription_fee = $product->get_meta('wps_sfw_subscription_initial_signup_price'); $regular_price = $product->get_regular_price(); if (!empty($subscription_fee) || !empty($regular_price)) { $data['meta'] .= '<br><br>'; if (!empty($regular_price)) { $data['meta'] .= 'Abopreis: ' . $regular_price . ' €<br><br>'; } if (!empty($subscription_fee)) { $data['meta'] .= 'Einmalige Einrichtungsgebühr + Versand: ' . $subscription_fee . ' €<br><br>'; } } } } return $data; }Do I have any solution for this?
- This reply was modified 2 years, 4 months ago by nexadesign2.
Happy New Year… Thank you for answer…
This code snipets work… But unfortunately…
I need Show initial subscription fee only on first pdf bils…
And for second, third… just show Monthly subscription.
What can I do?Under the “Monthly subscription” … I wanna to have for example 2 items:
items1: Monthly subscription
items2: Registration ( initial signup )- This reply was modified 2 years, 6 months ago by nexadesign2.
Thank you for answer.
Yes, I finde: wps_sfw_subscription_initial_signup_price
in Product Post Meta
https://ibb.co/nfLBtYNHello,
thank you for answer.
– What plugin are you using for the subscription system?
I use Subscriptions For WooCommerce plugin by WP Swings.
– Are you using a plugin to add this fee, if it is not the same plugin abovve?
What plugin you recommend for the subscription?
– How does this sign-up appear in your order-details screen for the initial order (screenshot)?
Don’t appear… I just have a total.
https://ibb.co/tbY4Y7t
And this how I setup product
https://ibb.co/GdRNYTs
https://ibb.co/stQS2PfThank you @yordansoares … I solved my problem using a Conditional Fields.