Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi there – me again ?? My client wants the credit card type (Visa, Mastercard, etc) added to the PDF Invoice/Packing List now too, and I seem to be having issues figuring out the exact action hook code for this one as well – so sorry! The meta data for credit card type on my client’s site is: _wc_first_data_payeezy_gateway_credit_card_card_type

    Can you please help with this inquiry as well? I’ll be sure to leave a review this time! Thanks in advance!

    Thread Starter abgross1

    (@abgross1)

    Yes, sorry. This is the website in question: https://deerdefeat.com
    Specifically on the cart and checkout pages once a shipping address has been entered:
    https://deerdefeat.com/cart/
    https://deerdefeat.com/checkout/

    That action hook you just provided worked!! ?? I was using something along those lines based on similar hooks that were provided in the links you shared, but I was not using all of the correct information. Really appreciate your prompt response and help, thank you!

    Hello – I’m wanting to add the last 4 digits of the customer’s credit card to the PDF invoice as well, and I was able to find the meta tag for this information using The WooCommerce – Store Toolkit plugin you suggested, but none of the action hooks code I’ve been trying to add to my functions.php file is working. Can either of you please help? I don’t care where it outputs on the PDF invoice (I just only want it to be visible if a credit card is actually used on the order)

    Here is the meta data from my specific credit card gateway for the last 4 digits output: _wc_first_data_payeezy_gateway_credit_card_account_four

    Not sure if this order meta data is important as well, but thought I’d include it:
    _payment_method: first_data_payeezy_gateway_credit_card
    _payment_method_title: Credit Card

    Thank you so much!!

    abgross1

    (@abgross1)

    @kalmika – This worked for me as well! Thank you!!

    Thread Starter abgross1

    (@abgross1)

    Yay thank you @wphotographer and @webgirl40! The code/fix below worked! Hopefully future updates of this plugin will factor this in so we don’t have to add this with every update but this is a great free plugin no matter what so can’t complain too much. Just happy someone was able to provide an easy fix.

    Try in
    wc-fields-factory/includes/wcff-injector.php line 69, start with:
    echo ‘<div class=”wcff-variation-cloning….
    and disable this line as follows:
    //echo ‘<div class=”wcff-variation-cloning….

    So, just put // front of the echo text.

    **That code worked for me, and can be seen on my website in question here.

    abgross1

    (@abgross1)

    This is happening to me as well. I’ve tried everything. Please help!

    Thread Starter abgross1

    (@abgross1)

    This worked, thank you so much! Can’t believe it was something that simple, I feel silly. Below is the full code I used in order to create line breaks between additional fields and to make the labels bold. Is that code best practice?

    <?php $this->custom_field("myfield3","<strong>Is this for local delivery:</strong>"); ?><br>
    <?php $this->custom_field("myfield1", "<strong>Address Type:</strong>"); ?><br>
    <?php $this->custom_field("myfield3c", "<strong>Can order be delivered on earlier day:</strong>"); ?><br>
    <?php $this->custom_field("myfield2", "<strong>Is this a gift:</strong>"); ?><br>
    <?php $this->custom_field("myfield4", "<strong>Recipient Name:</strong>"); ?><br>
    <?php $this->custom_field("myfield5", "<strong>Gift Message:</strong>"); ?><br>
    <?php $this->custom_field("myfield7", "<strong>Order Notes:</strong>"); ?>

    One thing I will mention if anyone else is reading this in the future, I’m using TextEdit to edit the php files, and it kept automatically changing some of the quote marks to rather than " which caused errors, so be sure it’s not automatically changing them on you.

    Also, Ewout – how can I remove the individual product weights from the invoice?

    Thanks!

Viewing 8 replies - 1 through 8 (of 8 total)