-
- bsboard

-
Total Posts: 15
Joined: 2008-03-18
|
I have successfully modified the onepage checkout to what I need for a unique B2B install (this involved removing steps). Everything works great, but now I need to abstract my changes into the local codebase, so my core files aren’t modified.
I changed the following file in /app/code/core/Mage/:
Checkout/Block/Onepage.php [getSteps method]
Checkout/controllers/OnepageController.php [saveBillingAction and saveShippingAction]
Checkout/Model/Type/Onepage.php [saveBilling and saveShipping]
any attempts to abstract these changes to the /local/ folder have failed, mainly do to outdated and incomplete tutorials in the wiki. Any help you can offer would be GREATLY appreciated.
|
| |
|
 |
 |
 |
|
|
-
- bsboard

-
Total Posts: 15
Joined: 2008-03-18
|
Can noone help me at all? Has anyone successfully extended core modules after the v1 release? I tried putting my code in the local directory, then followed this tutorial: http://www.magentocommerce.com/wiki/groups/174/changing_and_customizing_magento_code
and added this to my app/etc/local.xml:
<modules> <recway_checkout> <active>true</active> <codePool>local</codePool> </recway_checkout> </modules> <blocks> <checkout> <rewrite> <checkout_onepage>Recway_Checkout_Block_Onepage</checkout_onepage> </rewrite> </checkout> </blocks>
However after doing this, the software still wasn’t using my new code. Not real surprising it didn’t work, since the tutorial is .3 versions old. I’m trying to take things one step at a time, so first am just trying to get the Onepage.php Block to work correctly. Please help!
|
| |
-
- Posted: May 7 2008
-
| top
| # 1
-
|
 |
 |
 |
|
|
-
- fenix

-
Total Posts: 16
Joined: 2008-02-18
|
Hi there,
Could you please explain how you managed to change the onepage?
I myself have a simalar problem.
I posted a thread here:
http://www.magentocommerce.com/boards/viewthread/7693/
but no response till now for me either.
So maybe you could help me to remove the:
State/Province
Country
fields from the billing step and add my own fields instead? ( and get them processed)
Or adding a custom step?
I already know about the getSteps() method in :Checkout\Block\Onepage.php
But as you should have discovered, just putting one step between them is not working.
I have no time any more at the moment, but I will look at your problem too because I think that if we could resolve this
we would have learned a lot about customizing Magento.
thanks and by
Fenix
|
| |
-
- Posted: May 7 2008
-
| top
| # 2
-
|
 |
 |
 |
|
|
-
- bsboard

-
Total Posts: 15
Joined: 2008-03-18
|
Sorry for the wait fenix (I only work this job monday-wednesday).
It sounds like my customizations were a little easier then yours. I just needed to remove shipping/payment information completely. What I ended up doing was setting up a “free shipping” and “Pay by Check” options on the backend. Then I edited the magento code directly, so that when you click submit from shipping info, it automatically calls the shipping method and payment method functions with hard-coded values.
Its been a while since I worked on this, so I don’t remember exactly what files I changed. If this seems at all helpful to you I can diff the directories and tell you exactly what I did. Let me know.
|
| |
-
- Posted: May 12 2008
-
| top
| # 3
-
|
 |
 |
 |
|
|
-
- laurent

-
Total Posts: 57
Joined: 2007-08-31
Paris, France
|
Here is my code:
<config> <global> <blocks> <checkout> <rewrite> <onepage>PleinAir_Checkout_Block_Onepage</onepage> </rewrite> </checkout> </blocks> <modules> <PleinAir_Checkout> <active>true</active> <codePool>local</codePool> </PleinAir_Checkout> </modules> [....] </global> </config>
Note that case must be respected. ‘<PleinAir_Checkout>’ reflects directories names.
|
| |
-
- Posted: May 12 2008
-
| top
| # 4
-
|
 |
 |
 |
|
|
-
- RichardWork

-
Total Posts: 10
Joined: 2008-04-17
|
Hi bsboard,
We are trying to do the same thing as you, remove the shipping method and payment information steps. So if you could outline the method you used. I have got the form to preselet “Free Shipping”, but not to jump through the section.
Cheers
|
| |
-
- Posted: June 9 2008
-
| top
| # 5
-
|
 |
 |
 |
|
|
-
- dax

-
Total Posts: 11
Joined: 2008-04-25
|
Calling all Magento Team Members...
I’m also wanting to remove Shipping Method and Payment options, as in both cases there is only one option available to my customers, so no choices to be made.
Looking for the solution, I find that I am far from being alone - dozens of requests for the same feature (removals).
Any chance of a rapid update : option to hide steps in OnePage Checkout if only one option present?
Regards,
David
|
| |
-
- Posted: September 27 2008
-
| top
| # 6
-
|
 |
 |
 |
|
|
-
- warwickmc

-
Total Posts: 30
Joined: 2008-07-14
|
im also interested in removing shipping method and payment options, for similar reasons to everyone else. Any chance of even a wiki or knowledge base article with some of the changes to be made?? would be fantastic :-D
|
| |
-
- Posted: September 29 2008
-
| top
| # 7
-
|
 |
 |
 |
|
|