Jump to content

Disable billing information

Featured Replies

Posted

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.

You can not disable it in any option on your ACP.

I got a dirty workaround for that by modifying directly the resources of IPB and simply disable these information.
I will consider rewriting it to a plugin so i could share this work.

Regards

  • Author

Hey Michael,

That would be perfect! Do you have any ETA?

If it's a simple workaround, mind to share it?

Thanks in advance!

  • Author

Found a workaround, thanks!

//Edit: it isn't working good enough... If you could send your editted files i would be very very grateful!.

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.

 

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>

 

  • Author

Thanks alot Michael!

  • 4 weeks later...
  • Author
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?

Just now, WildPix said:

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?

Actually not, since i dont have tickets or the support requests enabled :P

  • Author
Just now, Michael Schneider said:

Actually not, since i dont have tickets or the support requests enabled :P

Ah. Hope IPB will get a permanent fix then :)

Thanks for your reply!

Archived

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

Recently Browsing 0

  • No registered users viewing this page.