Search the Community
Showing results for tags 'skip'.
-
We spent some time in optimizing the performance of our shop. We have a a mean access time of about 500 ms excluding the execution time of the cart controller. This controller takes about 2500 until response (appx. 2300 for waiting time and 200 ms for its exection). So we could say the cart controller takes way more than 50% of the overall loading time. The question popped up if it would be possible to skip cart controller it cart is empty. Without further investigation we think the cart information must be stored on the clients cookies or session variables. If correct, we have the idea of implementing some new logic like this: if ($cart-cookie exist or $cart is not NULL) { fire the cart controller } Any idea if this could work and if yes: where to look for changing the corresponding code? Thanks for any help. Scully. running ps 1.5.6.
-
- cart
- controller
-
(and 3 more)
Tagged with:
-
Hello everybody, I'm trying to skip carrier selection at One Page Checkout because we only have one carrier in my shop, I have made it but in 5 steps checkout, modifying OrderController and order-payment.tpl, but the point is the controller to be modified is OrderOPCcontroller, I think here it is the part of the code that has to be modified, but don't know how to do it, if anybody can give me a hand with this I will appreciate so much. Kind Regards: Cart::addExtraCarriers($vars); $this->context->smarty->assign($vars); if (!Address::isCountryActiveById((int)($this->context->cart->id_address_delivery)) && $this->context->cart->id_address_delivery != 0) $this->errors[] = Tools::displayError('This address is not in a valid area.'); elseif ((!Validate::isLoadedObject($address_delivery) || $address_delivery->deleted) && $this->context->cart->id_address_delivery != 0) $this->errors[] = Tools::displayError('This address is invalid.'); else { $result = array( 'HOOK_BEFORECARRIER' => Hook::exec('displayBeforeCarrier', array( 'carriers' => $carriers, 'delivery_option_list' => $this->context->cart->getDeliveryOptionList(), 'delivery_option' => $this->context->cart->getDeliveryOption(null, true) )), 'carrier_block' => $this->context->smarty->fetch(_PS_THEME_DIR_.'order-carrier.tpl') ); Cart::addExtraCarriers($result); return $result; } if (count($this->errors)) return array( 'hasError' => true, 'errors' => $this->errors, 'carrier_block' => $this->context->smarty->fetch(_PS_THEME_DIR_.'order-carrier.tpl') ); }
-
Omdat de shopper in mijn Prestashop (1.5.4) geen mogelijkheid mag krijgen om een vervoerder (‘carrier’) te kiezen, wil ik in het order-stappenplan van step 1 naar 3. Ik heb hier beschreven hoe ik dat heb gedaan: http://blog.connectcase.nl/2013/10/02/wijzigen-volgorde-prestashop-ordersteps/
- 3 replies
-
- volgorde
- orderstappen
-
(and 8 more)
Tagged with: