Search the Community
Showing results for tags 'choose'.
-
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') ); }
-
Hello, I have searched about this problem in the forums and forge.prestashop but I didn't find a solution. The problem is in prestashop 1.5 with One Page Checkout selected, the payment options don't refresh automatically. I create an account and a carrier method is selected by default, but the payment options shows "Error: please choose a carrier". If I select another carrier method or the same, I accept the checkbox of terms of sale or I refresh the page, the payment options show up. I read in forge.prestashop it could be solved changing controllers/front/OrderOpcController.php and themes/default/js/order-opc.js but the links to the solution don't work. Any ideas about this problem?. Thanks.
-
Sub-category image sizes are fairly easy to adjust in back office, hats off to prestashop for quick changes, however.. Upon changing the standard theme from white to any other colour these subcategory images gain white letterbox borders (top and bottom). There is no ability to over-ride or select your own colour for this border area. On custom themes this leads to ugly results. On the flip side, there are modules out there to do this function however such modules override all image borders which is not the intended result either. Various image formats and sizes do not change the result as my first thinking was aspect ratio of the picture mis-matching the display size until I made images to exactly fit and the yielded the same result. This is a createimagefrom process in PHP and only needs to have transparency set for borders instead of solid fill colour. PLEASE FIX THIS