Maxime Mettey

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Override issue after MultiVendorX migration #186565
    Maxime Mettey
    Participant

    Thanks for your help, in fact the problem was that the file “archive_vendor_info.php” (with underscores) became (“archive-vendor-info.php (with dashes).
    Everything is fine now, thank you !

    in reply to: Bulk mark multiple commissions as Paid #141085
    Maxime Mettey
    Participant

    Hi,

    Thank you for your answer. In my case, every vendor has the bank transfert selected, but the issue was still here.

    After some investigation, I managed to find where the problem was.

    In the class file “class-wcmp-payment-gateway.php”, method “record_transaction()”, a post_title is generated to record the transaction in database, with the current date and time.

    My website being in French language, the current month (August) is written “Août”, but the accent seems to generate an issue.

    I had to change this line :
    ‘post_title’ => sprintf(__(‘Transaction – %s’, ‘dc-woocommerce-multi-vendor’), strftime(_x(‘%B %e, %Y @ %I:%M %p’, ‘Transaction date parsed by strftime’, ‘dc-woocommerce-multi-vendor’), current_time( ‘timestamp’ ))),

    To add some utf8_encode and handle accents :
    ‘post_title’ => sprintf(__(‘Transaction – %s’, ‘dc-woocommerce-multi-vendor’), utf8_encode(strftime(_x(‘%B %e, %Y @ %I:%M %p’, ‘Transaction date parsed by strftime’, ‘dc-woocommerce-multi-vendor’), current_time( ‘timestamp’ ))))

    And everything works fine now.

    Hope this helps for next updates 🙂

    Have a nice day.

Viewing 2 posts - 1 through 2 (of 2 total)