• Resolved emvlee

    (@emvlee)


    Hi David,

    I’m struggeling to get the complete metadata out of $items. I was hoping to get the custom field ‘factuurnummer’ in with the info you layed out here: https://www.paytium.nl/handleiding/veelgestelde-vragen/#omschrijvingen-van-betalingen-aanpassen

    However; the only info parsed to $items is array(6) { [“item-1-amount”]=> float(60) [“item-1-label”]=> string(7) “Bedrag:” [“item-1-type”]=> string(4) “open” [“item-1-tax-percentage”]=> int(0) [“item-1-tax-amount”]=> float(0) [“item-1-total-amount”]=> float(60) }
    This comes down to everything in “paytium_amount”. Any way I can retrieve info from a paytium_field?

    Thanks

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor davdebcom

    (@davdebcom)

    Hi Emvlee

    I might be sending the wrong meta, corrected that in this version, can you try that?

    https://take.ms/fDnsd

    Al je bestaande gegevens blijven sowieso bewaard.
    Om deze versie te installeren moet je de bestaande plugin de-activeren, verwijderen, dan nieuwe installeren en activeren. Maak eerst een backup!

    Verwijder je browser cache om er zeker van te zijn dat je de nieuwe code laadt:
    http://www.wikihow.com/Clear-Your-Browser%27s-Cache

    Kind regards
    David

    Thread Starter emvlee

    (@emvlee)

    Excellent! That works. Now I can call like:

    function paytium_custom_payment_description( $payment_description, $payment, $items) {
    	$new_description = "Factuurnummer: " . $items["pt-field-text-2"];	return $new_description;
    	}
    	add_filter( "paytium_payment_description", "paytium_custom_payment_description", 10, 3 );

    The only trouble is the beta version has too many problems to actually use. The svg file for the wordpress plugin is just huge, covering the whole bottom of my wp-admin page. The other issue I have is with the ‘bedrag’ input field. When the user has to specify it, the first number is not visible (public.css:108)

    Would you be able to implement your fix in a more stable version? Many many regards!!

    Plugin Contributor davdebcom

    (@davdebcom)

    Hi Emvlee

    Did you refresh cache, there should be a CSS line that changes the SVG size.

    This version is going out next week, so I’d rather fix it in 3.x.

    did you already change the CSS, and to what?

    Kind regards
    David

    Plugin Contributor davdebcom

    (@davdebcom)

    Hi @emvlee

    Curious to know what your status is, feel free to update me.

    Kind regards
    David

    Thread Starter emvlee

    (@emvlee)

    Hi David,

    I was a bit busy failing in multitasking. But I did make some CSS changes (can’t remember which) to correct the EURO sign. I used a totally different browser, so no cache available :).

    We’re now live, and most runs smoothly. I found the new discription does not show in the WP-Admin side, just to the mollie api. I might have forgotten something?

    Kind regards!

    Plugin Contributor davdebcom

    (@davdebcom)

    Hi @emvlee

    I’m not sure what you mean, do you have a screenshot?

    Kind regards
    David

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

The topic ‘Custom description; help needed’ is closed to new replies.