Jumprit's Knowledge

Jumprit's knowledge and references to share.

Posts Tagged ‘prestashop’

Adding States in Prestashop —

To create or add states in Prestashop shipping module, follow these steps: (eg. adding states for Australia)   1. Go to Shipping > Countries, edit Australia, then change “Contains States” to “Yes”, then Australia will become an option in the Country field when adding states. 2. Go to Shipping > States > Click Add New. […]

Can’t Send or Receive Email in Prestashop —

If you can’t send or receive email on your Prestashop store, do the following:   1. Go to /tools/swift/Swift/Message.php line #79. Change this code: $this->setFrom(“”); into $this->setFrom(“youremail@yourdomain.com”);   2. Go to /tools/swift/Swift.php, after line #370. Find: if (!($has_reply_to = $message->getReplyTo())) $message->setReplyTo($from); add (!$has_reply_to[0]) $message->setReplyTo($from->getAddress()); so become: 

Remove “Choose Your Payment Method” in Prestashop Checkout —

To skip the Payment Provider choice page you need to edit /themes/yourtheme/order-carrier.tpl (around line 29) We are going to change the form action so that it goes straight to your preferred payment providers form.   For example straight to PayPal: <form id=”form” action=”{$base_dir_ssl}modules/paypal/redirect.php” method=”post”>   For Bankwire without confirmation: <form id=”form” action=”{$base_dir_ssl}modules/bankwire/validation.php” method=”post”>     If you want to skip Shipping […]

How to Delete Order in Prestashop —

To enable delete order in Prestashop, you need to edit the renamed admin directory of your store/tabs/AdminOrders.php Then around line 28 below $this->colorOnBackground = true; , add $this->delete = true; so it looks like this: class AdminOrders extends AdminTab { public function __construct() { $this->table = ‘order’; $this->className = ‘Order’; $this->view = ‘noActionColumn’; $this->colorOnBackground = […]