dgca Posted February 4, 2013 Share Posted February 4, 2013 When I open order.php in Dreamweaver, I only can see: * @copyright 2007-2011 PrestaShop SA * @version Release: $Revision: 6594 $ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) * International Registered Trademark & Property of PrestaShop SA */ require(dirname(__FILE__).'/config/config.inc.php'); ControllerFactory::getController('OrderController')->run(); I need to change /* 4 steps to the order */ switch (intval($step)) { case 1: but I can find it in the archive. Please help me. Thanks! Link to comment Share on other sites More sharing options...
PascalVG Posted February 4, 2013 Share Posted February 4, 2013 ?? What do you try to do? Order.php should have much more in it than what you suggest above. check your file again in /classes/order.php. (Maybe open in any normal editor to see if there's anything different than what dreamweaver shows. What exactly do you want to change? The $step doesn't seem to be in order.php, (in P.S. 1.4.6.x at least) so your question confuses me. (Where did you get this small code snippet (the piece of code with switch...) from?) Do you want to change the check-out 4 steps or so?? Please elaborate. Pascal Link to comment Share on other sites More sharing options...
dgca Posted February 4, 2013 Author Share Posted February 4, 2013 Thanks for your answer. I would like customers skip the adresses, carrier and payment steps of the checkout in PS 1.4.8 Link to comment Share on other sites More sharing options...
dgca Posted February 4, 2013 Author Share Posted February 4, 2013 I read at the forum that I have to modify the order.php to skip the adresses, carrier and payment steps of the checkout in PS 1.4.8 . But when I open the archive en dreamweaver I dont find the part of the code that I must modify. Link to comment Share on other sites More sharing options...
PascalVG Posted February 4, 2013 Share Posted February 4, 2013 (edited) So they should only add their Email, no address, no payment for your products, (Do I assume correctly that you give away downloadable products?) I'll have a look what's possible. Hope I can find something. Edited February 4, 2013 by PascalVG (see edit history) Link to comment Share on other sites More sharing options...
PascalVG Posted February 4, 2013 Share Posted February 4, 2013 Hi dgca, As you use 1.4.8, the order process is different. They use a ordercontroller.php (in/controllers/ Info on how to change things here are in http://www.prestashop.com/forums/topic/74445-can-i-hide-carrier-selection-step-in-prestashop/ Hope this helps you. If any Q's remain, just ask. Link to comment Share on other sites More sharing options...
dgca Posted February 4, 2013 Author Share Posted February 4, 2013 Thank you very much for your help! I tried to modify the ordercontroller.php but it doesnt work. Link to comment Share on other sites More sharing options...
Recommended Posts