Kiran

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 238 total)
  • Author
    Posts
  • in reply to: How to avoid invoicing for free entries? #4613

    Kiran
    Moderator
    Post count: 7069

    Hello,

    It will be in upcoming release of Pricing Manager v2.5.0.14 soon.

    Thanks,
    Kiran

    in reply to: No AffiliateWP integrations enabled #4588

    Kiran
    Moderator
    Post count: 7069

    Hi Alex,

    I checked and it looks like AffiliateWP v2.5.x has some major changes and some hooks are deprecated. We are updating our Invoicing AffiliateWP plugin to nake compatible with AffiliateWP v2.5.x.

    Regards,
    Kiran

    in reply to: Testing Stripe's yearly subscriptions #4586

    Kiran
    Moderator
    Post count: 7069

    Hi Manfred,

    To test recurring payment you can create one short term recurring package(item). Ex: 3 days or 7 days.

    Kiran

    in reply to: Business Name on Invoices #4566

    Kiran
    Moderator
    Post count: 7069

    Hi Larraine,

    Next release of Pricing Manager probably within first week on May.

    Regards,
    Kiran

    in reply to: Connecting Invoicing with First Data #4514

    Kiran
    Moderator
    Post count: 7069

    Hello Naomi,

    For First Data Payment Gateway it needs following data.

    – Store Name:
    This is the ID of the store that was given to you by First Data. For example : 10123456789

    – Shared Secret:
    This is the shared secret provided to you by First Data.

    – Production URL:
    When you are ready to go into production, please contact First Data and you will be provided with the live production URL.

    Regards,
    Kiran

    in reply to: How to avoid invoicing for free entries? #4511

    Kiran
    Moderator
    Post count: 7069

    Hi spiritualcompass,

    We have already implemented skipping invoices for free packages. The next release soon within next week.

    Thanks for patience.

    Regards,
    Kiran

    in reply to: Overwrite templates #4385

    Kiran
    Moderator
    Post count: 7069

    Hi Misty,

    Try replacing

    <div class="wpinv-receipt-message"><?php _e( 'Thank you!', 'invoicing' ); ?></div>

    with https://wpinvoicing.com/support/topic/overwrite-templates/#post-4384 script in file /themes/YOUR-CURRENT-THEME/invoicing/wpinv-invoice-receipt.php

    Kiran

    in reply to: Overwrite templates #4384

    Kiran
    Moderator
    Post count: 7069
    
    
    	<?php
    	$post_type = '';
    
    	foreach ( $cart_items as $key => $cart_item ) {
    		if ( ! empty( $cart_item['id'] ) && wpinv_get_item_type( $cart_item['id'] ) == 'package' && ( $package_id = get_post_meta( $cart_item['id'], '_wpinv_custom_id', true ) ) ) {
    			$post_type = geodir_pricing_package_post_type( $package_id );
    
    			if ( $post_type ) {
    				break;
    			}
    		}
    	}
    	
    	if ( $post_type == 'gd_apartments' ) {
    		$message = __( 'Thank you!', 'invoicing' ); // Message for gd_apartments
    	} elseif ( $post_type == 'gd_business' ) {
    		$message = __( 'Thank you!', 'invoicing' ); // Message for gd_business
    	} else {
    		$message = __( 'Thank you!', 'invoicing' ); // Message for other
    	}
    	?>
    	<div class="wpinv-receipt-message"><?php echo $message; ?></div>
    in reply to: Payment Methods per CPT #4382

    Kiran
    Moderator
    Post count: 7069

    Hi Misty,

    Try following PHP snippet do disable pre bank transfer gateway for expect one specific invoice item.

    
    
    /**
     * Filter payment gateways on checkout page.
     */
    function wpi_snippet_200320_payment_gateways_on_cart( $gateways = array() ) {
    	$invoice = wpinv_get_invoice( 0, true );
    	
    	if ( ! empty( $invoice ) && ( $items = $invoice->get_items() ) ) {
    		foreach ( $items as $key => $item ) {
    			if ( ! empty( $item ) && ! empty( $item['id'] ) && $item['id'] == 84 ) { // 84 is Item ID from Invoicing > Items > ID
    				
    			} else {
    				if ( isset( $gateways['bank_transfer'] ) ) {
    					unset( $gateways['bank_transfer'] ); // Unset gateway
    				}
    			}
    		}
    	}
    	return $gateways;
    }
    add_filter( 'wpinv_payment_gateways_on_cart', 'wpi_snippet_200320_payment_gateways_on_cart', 20, 1 );

    Thanks,
    Kiran

    in reply to: No payment gateway active #4375

    Kiran
    Moderator
    Post count: 7069

    Hi Ben,

    “No payment gateway active” error indicates that either there is no payment gateway is active or payment for item(package) does not supported by gateways.

    I checked and you have all items(packages) are recurring. Recurring payment support is not implemented yet in “eWay” payment gateway. We are working to implement recurring payment support in “eWay” payment gateway.

    Meantime try items(packages) without recurring option active.

    Thanks for your patience.

    Regards,
    Kiran

    in reply to: Overwrite templates #4373

    Kiran
    Moderator
    Post count: 7069

    Hi Misty,

    On the functions file I just need to change the wording on the button. It says “Proceed to pay” and I need to change it to just “Proceed”.

    You can change checkout button label via translation that @guust suggested or you can do it by using following PHP snippet.

    
    
    /**
     * Change checkout button label.
     */
    function wpi_snippet_200319_checkout_button_purchase( $button ) {
    	$search = 'Proceed to Pay'; // Current button label
    	$replace = 'Proceed';       // New button label
    
    	$button = str_replace( __( $search, 'invoicing' ), __( $replace, 'invoicing' ), $button );
    
    	return $button;
    }
    add_filter( 'wpinv_checkout_button_purchase', 'wpi_snippet_200319_checkout_button_purchase', 20, 1 );

    ===

    Another question for wpinv-invoice-receipt.php. Is it possible in this to pull in the product_type (CPT) and display a different message depending on the CPT?

    Can you clarify with example that how you want so i can help in this?

    Thanks,
    Kiran

    in reply to: Overwrite templates #4365

    Kiran
    Moderator
    Post count: 7069

    Hello Misty,

    – Copy file wpinv-invoice-receipt.php from /plugins/invoicing/templates/ into /themes/YOUR-CURRENT-THEME/invoicing/
    – Copy file wpinv-email-invoice-details.php from /plugins/invoicing/templates/emails/ into /themes/YOUR-CURRENT-THEME/invoicing/emails/

    You can edit files copied under /themes/YOUR-CURRENT-THEME/invoicing/.

    – includes/wpinv-template-functions.php is a plugin core file and core files should not be modified otherwise it may break core functionality. Instead you can use hooks to add customization.
    Let us know what you need to change via includes/wpinv-template-functions.php file so we can help you to add your customization.

    Thanks,
    Kiran

    in reply to: Stripe Recurring #4202

    Kiran
    Moderator
    Post count: 7069
    This reply has been marked as private.
    in reply to: Stripe Recurring #4198

    Kiran
    Moderator
    Post count: 7069
    This reply has been marked as private.
    in reply to: Stripe Recurring #4194

    Kiran
    Moderator
    Post count: 7069

    Hi laurence,

    This indicates customer creation failed at Stripe via API.

    Try again after enabling debug log from wp-config.php file to log reason behind this customer creation error.

    Kiran

Viewing 15 posts - 1 through 15 (of 238 total)