Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
tendonsie Posted August 25, 2015 Posted August 25, 2015 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.
GriefCode Posted August 26, 2015 Posted August 26, 2015 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
tendonsie Posted August 26, 2015 Author Posted August 26, 2015 Hey Michael,That would be perfect! Do you have any ETA?If it's a simple workaround, mind to share it?Thanks in advance!
tendonsie Posted August 26, 2015 Author Posted August 26, 2015 Found a workaround, thanks!//Edit: it isn't working good enough... If you could send your editted files i would be very very grateful!.
GriefCode Posted August 26, 2015 Posted August 26, 2015 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 toforeach ( \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.
GriefCode Posted August 26, 2015 Posted August 26, 2015 Template would be:nexus -> front -> checkout -> confirmAndPaySimply 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>
tendonsie Posted September 23, 2015 Author Posted September 23, 2015 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?
GriefCode Posted September 23, 2015 Posted September 23, 2015 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
tendonsie Posted September 23, 2015 Author Posted September 23, 2015 Just now, Michael Schneider said: Actually not, since i dont have tickets or the support requests enabled Ah. Hope IPB will get a permanent fix then Thanks for your reply!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.