• Resolved rupalu

    (@rupalu)


    Hi support team,

    actually, I installed WooCommerce PDF Invoices & Packing Slips plugin a while ago. It was working fine but recently we’re facing the issue that in our packing slip the mobile number is not displaying. In the invoice, it’s working fine

    I checked in setting part as well, the mobile number is already checked. Please advice!

    Thank you!
    Rupal

    • This topic was modified 3 years, 9 months ago by rupalu. Reason: change the title

    The page I need help with: [log in to see the link]

Viewing 10 replies - 16 through 25 (of 25 total)
  • Plugin Contributor Yordan Soares

    (@yordansoares)

    Hi @rupalu and @ttchopper,

    My colleague @alexmigf already fixed this issue and will be added in next release.

    However, I just built a release including this fix for you, so you don’t have to wait for the next public release to enjoy it: https://we.tl/t-YYUtUxnrDz

    After downloading the file, please replace your current version for this one.

    Hi @yordansoares

    My current plugin is Version 2.11.1.
    Will replacing your version wipe out my previous customers data and info?

    Thank you.
    bigtiny

    Plugin Contributor Ewout

    (@pomegranate)

    @bigtiny that version can no longer be downloaded and is older than the one you have installed. 2.11.1 is the latest version and it includes those fixes.

    @pomegranate thanks for your reply. It shows the Billing Party’s Phone Number on my packing slip but not the Recepient’s Phone Number.

    I’d like to reflect the Receipient’s Phone Number. Is there a code I can add?

    Thank you. ??
    bigtiny

    Plugin Contributor Ewout

    (@pomegranate)

    @bigtiny how are you collecting the Shipping Phone number exactly? Can you provide a link to your site/checkout?
    The packing slip will show the billing phone number if it cannot find the shipping phone number (but it only checks the official WooCommerce field _shipping_phone)

    Also: are you using the official Simple template or a customized version? Please test with the offical template if you haven’t done so yet.

    • This reply was modified 3 years, 3 months ago by Ewout.

    @pomegranate I’m using the official Simple template and testing it with the official template as welling.

    The code on my Simple PHP template for packing slip shows billing_phone
    It should be shipping_phone.

    I tried to change on the template but it doesn’t work that way I think.

    Any possible snippets that I can add?
    Thank you.

    Plugin Contributor Yordan Soares

    (@yordansoares)

    Hi @bigtiny,

    You don’t need to do anything if you’re using our Simple default template to this to work. As my colleague @pomegranate already said above, it will display the shipping phone if exist and only will display the billing phone as a fallback. If this is not happening in your site, please check that you’re using the latest version of our plugin.

    If you already have the latest version, please check which template you’re using under WooCommerce > PDF Invoices > General > Choose a template. If you see here Simple (Custom) or another template name with (Custom) at the end, you’re using a custom template, and it’s likely that this is outdated. You have two options at this point: Switching to the default Simple template that is ever updated, or update your custom template code following the latest changes from our default Simple template.

    Hi @yordansoares @pomegranate

    Thanks for your time and reply on this shipping phone / recipient contact matter. I realised it was a custom field and added this snippet which now works!

    /**
     * Show the shipping contact after shipping address
     */
    add_action( 'wpo_wcpdf_after_shipping_address', 'wpo_wcpdf_show_shipping_contact', 10, 2 );
    function wpo_wcpdf_show_shipping_contact( $template_type, $order ){
    	$document = wcpdf_get_document( $template_type, $order );
    	if($template_type == 'packing-slip') { 
    		?>
    	  <p class="shipping_contact">Recipient Phone: <?php $document->custom_field('shipping_contact'); ?></p>
            <?php
        }
    }

    Hope this helps anyone who has a custom field (ie. custom phone number field) and would like to add in their packing slip!

    Truly grateful for all your replies and time.
    <3 bigtiny

    Plugin Contributor Yordan Soares

    (@yordansoares)

    I’m glad to hear that you found the root of this issue!

    If you don’t mind and have the time, do you think you could leave us a review?

    Thanks in advance and all the best with your store!

    @yordansoares @pomegranate Absolutely, just left a 5 star review. Keep up the great work, tysm!

Viewing 10 replies - 16 through 25 (of 25 total)
  • The topic ‘mobile number is not displaying on packing slip’ is closed to new replies.