|
Hello people,
I would like to delete two required fields in the checkoutpage.
that is: State/Province
and: Country
and add my own custom fields for image uploads.
Just deleting them in the template file is not working.
What i really want to know is: where are the fields defined to be shown in checkout-billing step (and also the other sections).
The different steps in the page are setup in:
E:\Programme\Apache Group\Apache2\htdocs\wwwroot\magento\app\code\core\Mage\Checkout\Block\Onepage.php
public function getSteps() { $steps = array();
if (!$this->isCustomerLoggedIn()) { $steps['login'] = $this->getCheckout()->getStepData('login'); } $stepCodes = array('billing', 'shipping', 'shipping_method', 'payment', 'review');
foreach ($stepCodes as $step) { $steps[$step] = $this->getCheckout()->getStepData($step); } return $steps; }
public function getActiveStep() { return $this->isCustomerLoggedIn() ? 'billing' : 'login'; }
Removing ‘shipping’ in the array for example removes this step in the frontend
Adding “upload files” shows a new step with no content, (by the way: this step is skipped automatically)
But what if I wanted to add my own step or fields?
Ok I still did not assign a template file to it. I could do that too, but then how to integrate/ associate the atached files or other input with the current order?
Hope I made myself clear....
by
|