Jump to content

Disable billing information


tendonsie

Recommended Posts

I've upgraded my IPB forum to IPB 4 today and i'm pretty happy with it. The only downside is that when a user creates a support request (IPB commerce) it's asking them to fill in their billing information like address, name and even more. We do not need this data of our users and our users don't like to give this kind of data.

Is there any way to disable this?

Thanks in advance.

Link to comment
Share on other sites

Well the issue is, im currently totally limited in time. I will share my work around, since it touches only 2 files:

Files are listed from your root directory of your forum:

/applications/nexus/modules/front/checkout/checkout.php:

Line 103:

$steps['checkout_customer'] = array( $this, '_customer' );

change to

//$steps['checkout_customer'] = array( $this, '_customer' );

Line 886 - 892:

 

foreach ( \IPS\nexus\Gateway::roots() as $gateway )
{
        if ( $gateway->checkValidity( $amountToPay, $this->invoice->billaddress ) )
        {
                $paymentMethods[ $gateway->id ] = $gateway;
        }
}

change to

foreach ( \IPS\nexus\Gateway::roots() as $gateway )
{
        //if ( $gateway->checkValidity( $amountToPay, $this->invoice->billaddress ) )
        //{
                $paymentMethods[ $gateway->id ] = $gateway;
        //}
}

And the rest is removing the shipping address from the template. Thats the way i did it for now.

 

Link to comment
Share on other sites

Template would be:

nexus -> front -> checkout -> confirmAndPay

Simply remove this:

<div class='ipsGrid ipsGrid_collapsePhone ipsSpacer_bottom'>
	<div class='ipsGrid_span6'>
		<h2 class='ipsType_sectionHead'>{lang="billing_address"} <a href='{$invoice->checkoutUrl()->setQueryString( '_step', 'checkout_customer' )}' data-action='wizardLink' class='ipsType_small'>({lang="edit"})</a></h2>
		<div class='ipsType_medium ipsSpacer_top'>
			{$invoice->billaddress->toString('<br>')|raw}
		</div>
	</div>
	{{if $invoice->hasPhysicalItems()}}
		<div class='ipsGrid_span6'>
			<h2 class='ipsType_sectionHead'>{lang="shipping_address"} <a href='{$invoice->checkoutUrl()->setQueryString( '_step', 'checkout_shipping' )}' data-action='wizardLink' class='ipsType_small'>({lang="edit"})</a></h2>
			<div class='ipsType_medium ipsSpacer_top'>
				{$invoice->shipaddress->toString('<br>')|raw}
			</div>
		</div>
	{{endif}}
</div>

 

Link to comment
Share on other sites

  • 4 weeks later...
On 26-8-2015, Michael Schneider said:

Well the issue is, im currently totally limited in time. I will share my work around, since it touches only 2 files:

Files are listed from your root directory of your forum:

/applications/nexus/modules/front/checkout/checkout.php:

Line 103:


$steps['checkout_customer'] = array( $this, '_customer' );

change to


//$steps['checkout_customer'] = array( $this, '_customer' );

Line 886 - 892:

 


foreach ( \IPS\nexus\Gateway::roots() as $gateway )
{
        if ( $gateway->checkValidity( $amountToPay, $this->invoice->billaddress ) )
        {
                $paymentMethods[ $gateway->id ] = $gateway;
        }
}

change to


foreach ( \IPS\nexus\Gateway::roots() as $gateway )
{
        //if ( $gateway->checkValidity( $amountToPay, $this->invoice->billaddress ) )
        //{
                $paymentMethods[ $gateway->id ] = $gateway;
        //}
}

And the rest is removing the shipping address from the template. Thats the way i did it for now.

 

There is a bug with this.. If a user creates a ticket it won't get posted the first time, only if they try to make it a second time.

Also got this?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...