tin_soldier
Forum Replies Created
-
Forum: Plugins
In reply to: [Site Reviews] Summary average decimalBrilliant. Thanks!
Amazing support
Forum: Plugins
In reply to: [Site Reviews] Filter and sortBrilliant. Thanks!
Forum: Plugins
In reply to: [Site Reviews] WP All ImportThanks for the quick response. My only concern is that the plugin you recommend hasn’t been updated for 5 years.
Forum: Plugins
In reply to: [WooCommerce] Flexslider gallery conflict with Divi BuilderHave narrowed this down further to a specific function in divi-builder.min.js
Line 50 col 266 if anyone is looking.
For the time being I am solving this by disabling the script entirely as I’m not using Divi builder on the product pages. Here’s how I’ve removed it in case someone needs to do something similar.
function disable_scripts() { // dequeue Divi builder script - conflict with product gallery if (is_product()) { wp_dequeue_script('divi-builder-custom-script'); } } add_action('wp_enqueue_scripts', 'disable_scripts', 100);
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Adding barcode to packing slipOkay will try the hosting support and see whether there’s anything going on there. I’ve just learned that the barcodes are actually served as SVG files (although trying to save from the browser created a .bmp). Does your plugin support .svg out of the box too.
Thanks
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Adding barcode to packing slipHave just set ‘Output to HTML’ in the debug settings and the barcode comes through so it’s something to do with the image and the pdf creator. If I save the image from the html file I can see the format is .bmp
Does the pdf output support .bmp or can it be added?
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Adding barcode to packing slipStill the same:
Barcode
Image not found or type unknown
5e96e3b8f34baon the local version, the staging (remote) version actually times out.
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Adding barcode to packing slipInterestingly I’ve tested this in a local environment and this time where the barcode should output I get:
Barcode
Image not found or type unknownForum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Adding barcode to packing slipHmmm. Have chatted to support but they say: “We confirmed that the code actually works outside of their pluginso it is not related to WooCommerce Order Barcodes not working rather their plugin not taking the barcode for some reason in the PDF file”.
I tested the php snippet in the footer.php file of the theme with an actual order ID and it worked fine (showed the barcode image).
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Adding barcode to packing slipOkay, thanks.
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Adding barcode to packing slipHi,
I’ve got a custom template set up which I know is working correctly but I have tried to add a barcode generated from WooCommerce Order Barcodes using:
<?php echo WC_Order_Barcodes()->display_barcode($order_id); ?>
and can’t get it to display on a pdf. I tried every combination I can think of in place of $order_id ie; $this->order, $this->order->ID, $this->order->get_order_number() etc but nothing works.
What’s the correct code for this please?
Thanks
That looks good thanks Remi @corsonr but I don’t think it will work in our case.
While we could sell the products priced per unit with this, we’d still need to adjust the order price for weight based products, after the order has been placed.
The reason being that the product weight is non-uniform (this is for a site which is primarily delivering meat products). We sell at the maximum weight that the product comes in (say for instance Steak at $22 p/kg). At fulfillment the chosen steak may be only 850gm instead of 1kg so the price needs adjusting accordingly. As we have the credit card gateway set to authorize only the order is adjusted before capturing the credit card payment.
The fulfillment staff currently have to manually calculate the tax exclusive amount as all the prices at their end include tax.
I see a fair few WooCommerce users have asked for the ability to add the tax inclusive field in the past:
https://github.com/woocommerce/woocommerce/issues/17693
https://ideas.woocommerce.com/forums/133476-woocommerce/suggestions/3885796-prices-display-including-tax-in-the-order-edit-scrIs there definitely no way to add this in functions.php?
Have found this which get’s me half the way there: https://stackoverflow.com/questions/46546482/woocommerce-admin-order-detail-page
I can now see the tax inclusive amount on the line items but it’s not editable.
For clarity we have:
Yes, I will enter prices inclusive of tax
set under Tax.
If we changed this we’d have to edit every price in the store so that’s not an option.
Forum: Plugins
In reply to: [WooCommerce] Related Products order of preferenceYeah, that’s the same code I posted above which didn’t work.
Resorted to using the Custom Related Products plugin but that is huge amounts of manual work customising each product.
We should be able to prioritise Tags over Categories or vice versa instead of having the query randomly selecting from both.