AvanorHealthcare
Forum Replies Created
-
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Problem with CurrencyThanks – it worked ??
I didn’t think of www.remarpro.com’s forum rules. I’ll email if I have any queries regarding the paid extension.
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Problem with CurrencyThe documentation is beyond me! ??
The Premium Templates sounds like the solution. However, is the €27 charge required annually in order to use the customizer or is it just for support? What happens to my customizations if I don’t renew the subscription?
regards
PhilForum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Problem with CurrencyI was able to change the columns manually, but not the totals. I don’t understand how to pass the currency to wc_price(). The link you provided earlier doesn’t make any sense to me at all.
Is it possible to change the output to the following with the Premium extension:
Delivery – [Shipping Cost, ex VAT]
Grand Total (ex VAT) – [Grand Total ex VAT]
Total VAT – [VAT]
Grand Total (inc VAT) – [Grand Total inc VAT]regards
PhilForum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Problem with CurrencyI’ve disabled my filter, and checked the default output of the bottom section of the invoice:
Shipping – [Shipping Method]
Payment method – [Payment Method]
Total [Grand Total inc VAT]
(includes [VAT])The currency works correctly now (as you said it would), but I need the output to be:
Delivery – [Shipping Cost, ex VAT]
Grand Total (ex VAT) – [Grand Total ex VAT]
Total VAT – [VAT]
Grand Total (inc VAT) – [Grand Total inc VAT]Is there a way of changing the output to display that?
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Problem with CurrencyI can happily disable my filter. What does the default output display?
I need the invoices to display the Subtotal, Delivery, Grand Total (ex VAT), Total VAT and Grand Total (inc VAT). How can I do that?
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Problem with CurrencyThanks. Sorry, I don’t really understand the wc_price function. Can you clarify what I need to do?
I would like it to display whatever the currency is on the specific woocommerce order (ie not necessarily the default currency).regards
PhilForum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Problem with CurrencyI’ve done some digging – and I’ve found the filter you were talking about!
I’d completely forgotten about it. (I thought I’d just done some tweaks to the product lines)Here’s the code:
add_filter( ‘wpo_wcpdf_woocommerce_totals’, ‘wpo_wcpdf_woocommerce_totals_custom’, 10, 2 );
function wpo_wcpdf_woocommerce_totals_custom( $totals, $order ) {
$totals = array(
‘subtotal’ => array(
‘label’ => __(‘Subtotal’, ‘wpo_wcpdf’),
‘value’ => $order->get_subtotal_to_display(),
),
‘shipping’ => array(
‘label’ => __(‘Delivery’, ‘wpo_wcpdf’),
‘value’ => wc_price( $order->get_shipping_total() + $order->get_shipping_tax() ),
),
‘totalextax’ => array(
‘label’ => __(‘Grand Total (ex VAT)’, ‘wpo_wcpdf’),
‘value’ => wc_price( $order->get_total() – $order->get_total_tax() ),
),
‘totaltax’ => array(
‘label’ => __(‘VAT’, ‘wpo_wcpdf’),
‘value’ => wc_price( $order->get_total_tax() ),
),
‘total’ => array(
‘label’ => __(‘Grand Total (inc VAT)’, ‘wpo_wcpdf’),
‘value’ => wc_price( $order->get_total() )
)
);return $totals;
}Looking at the above, it’s the ones that include wc_price that are being changed into Pound Sterling. What have I done wrong?
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Problem with CurrencyI’m the developer ?? I made a few minor tweaks to show a few specific details on the invoice.
I’m not sure the WP-Lister Pro developers will be able to help with this, as the individual values for delivery, grand total (ex VAT), VAT and Grand Total (inc VAT) are definitely stored in Euro – see the Woocommerce order:
https://ibb.co/k4Y2wUIt appears to me that the get_woocommerce_totals() method your plugin uses is adding the default currency. Is there a way of displaying the values using in the get_woocommerce_totals() method without the currency formatting added by get_woocommerce_totals()?
regards
PhilForum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Problem with CurrencyThanks for getting back to me.
I don’t use a currency switcher. The order values etc (and currency) is all brought in by the ebay importer.regards
PhilForum: Plugins
In reply to: [WooCommerce] Combining Simple Products into One Product with VariationsOK. Thanks.
Perhaps a future version of Woocommerce will be able to add variations from existing products, like Magento can.Forum: Plugins
In reply to: [WooCommerce] Combining Simple Products into One Product with VariationsSo you are suggesting I change the SKU on the imported products to xxxxx-OLD (for example), and then use the correct SKU for the variation?
Forum: Plugins
In reply to: [WooCommerce] Combining Simple Products into One Product with VariationsThanks for getting back to me.
Of course, the other issue is now I will have to add duplicate products, with identical SKUs – one as it’s own product, and another as a variation of a variable product. Is that possible?Forum: Plugins
In reply to: [WooCommerce] Combining Simple Products into One Product with VariationsThanks – but I want the variations to be existing products, linked to a variable product. For example:
Products already imported:
Green T-shirt, simple product, SKU 123
Red T-shirt, simple product, SKU 234
Blue T-shirt, simple product, SKU 345I would like to set them up as follows:
T-shirt, variable product
Variations: Green (SKU 123), Red (SKU 234), Blue (SKU 345)As far as I can tell, I would need to create new products for the variations, thereby losing the sales history of those products.
Is that right?Forum: Plugins
In reply to: [WooCommerce] Combining Simple Products into One Product with VariationsThanks @joelwills, that’s what I thought.
So there’s no way of turning existing (or imported) simple products into child products of a new parent variable product?
Forum: Plugins
In reply to: [WooCommerce] Combining Simple Products into One Product with VariationsFortunately, I’ve not got huge numbers of SKUS, so it won’t be an issue entering them manually. The issue is that I’ve imported all previous orders and sales figures from Magento when I migrated to WooCommerce. If I create new products, the previous orders for those SKUs won’t be included, will they?