Jump to content

Remove shipping and billing addresses


Recommended Posts

Hi,

How can we remove the shipping and billing addresses from the member registration page, the "my account page" etc.?

I sell digital goods and I have no need of these informations since Paypal provides them.

Thanks.

Link to comment
Share on other sites

  • 4 weeks later...
  • 7 months later...

Hello,
to wrestle the shipping, you have to make the following changes:

open YourServer/order.php and find following code:

    /* 4 steps to the order */
   switch (intval($step))
   {
       case 1:
           displayAddress();
           break;
       case 2:
           if(Tools::isSubmit('processAddress'))
               processAddress();
           autoStep(2);
           displayCarrier();
           break;
       case 3:
           if(Tools::isSubmit('processCarrier'))
               processCarrier();
           autoStep(3);
           checkFreeOrder();
           displayPayment();
           break;
       default:
           $smarty->assign('errors', $errors);
           displaySummary();
           break;
   }



and replace it with following code:

     /* 4 steps to the order */
   switch (intval($step))
   {
       case 1:
           displayAddress();
           break;
       case 2:
           displayPayment();
           break;
       default:
           $smarty->assign('errors', $errors);
           displaySummary();
           break;
   }



So now the query shipping off!

Now you have edit the 'back' an 'Other payment methods' links in followed files:

open YourTheme/order-payment.tpl find the following code and replace the step value to 1:

« {l s='Previous'}



open modules/YourPaymentModule/payment_execution.tpl find the following code and replace the step value to 2:

{l s='Other payment methods' mod='bankwire'}



hope I could help you...

Link to comment
Share on other sites

×
×
  • Create New...