Adding and removing checkout steps is not hard. However, it seems you ask to remove part of the first step?
Removing any checkout step completely:
- Add a directory to your TL_ROOT/system/modules/. Call it something like isotope_remove_shipping[/*:m:d7rx2n02]
- Inside the new directory add a directory called config[/*:m:d7rx2n02]
- Inside the config dir add a file config.php with the following content:
Code:
<?php if (!defined('TL_ROOT')) die('You can not access this file directly!');
unset($GLOBALS['ISO_CHECKOUT_STEPS']['shipping']);
Instead of "shipping" you can choose your checkoutstep; address, shipping, payment and review[/*:m:d7rx2n02]
Removing part of any checkoutstep is also possible. The address step consists of two items; it is defined in the code as:
Code:
$GLOBALS['ISO_CHECKOUT_STEPS'] = array
(
'address' => array
(
array('ModuleIsotopeCheckout', 'getBillingAddressInterface'),
array('ModuleIsotopeCheckout', 'getShippingAddressInterface'),
)
...
So by adding the following lines to the config.php file you can remove the shipping address.
Code:
foreach ($GLOBALS['ISO_CHECKOUT_STEPS']['address'] as $key => $address)
{
if ($address[1] == 'getShippingAddressInterface')
{
unset($GLOBALS['ISO_CHECKOUT_STEPS']['address'][$key]);
}
}
One final note; I have only tried to answer your question directly. I have not tried the code as I showed you here. It should work, but I cannot guarantee it will (without changes).
Bookmarks