Jump to content

Payment & Delivery Options


Recommended Posts

Where and how can I configure payment and delivery options for customers? What I mean is defining what carriers are available when choosing certain payment options, like choosing payment method a enables carrier a, carrier b, carrier d and so on. Thanks for any feedback!

Link to comment
Share on other sites

It's in the shipping tab in backoffice. If you do a search for shipping, there are many threads explaining how to do this. Some steps can be confusing, if you don't do them correctly you'll get additional dollars being added.

I would make sure to search out those threads to see where others have had issues.

Link to comment
Share on other sites

Thanks for the response but I'm afraid this is not what I was looking for. What I mean is the order process. The customer can choose the carrier first, then he chooses the payment method. What I have to do is define cartain payment options if the customer chooses the courier, if he chooses as carrier cash-on-delivery (this we do ourselves) the payment method should be cash-on-delivery. It doesn't make sense to choose as carrier cash-on-delivery and then choose as payment method for example bank wire. Thing is that what payment method and carrier options pop up can not be configured via the backend system, as far as I know this is done via PHP- coding. My problem is that I don't know where exactly this PHP- coding has to be changed. The location of the PHP- coding, that's what I'm looking for.

Link to comment
Share on other sites

Are you sure? : If you use both these modules, you can configure the first so that you have specific delivery for your categories of products and then you can configure which payment options go with which with the second. It does EXXACTLY what you are specifying above. The client choses between the different courrier methods and then you restrict the payment options available to them.

Here is the translation of the what the developper explained.

"stiffmodulecarrier:
This module allows you to restrict the choice of payment methods depending on the carrier chosen by the customer.
In the shop Palmiloire for example, he can request payment on pickup in our shop. If a delivery service is selected, only payment by credit card is offered.
This module is fully configurable in the back office.

The modules each contain documentation of installation and use (odt format, sorry for the fans of Ms Office).

The installation of the modules may pose some problems because we had to modify files Prestashop core files.
It is available for versions 1.2.3 and 1.2.4.
With adaptation, stiffcarriercateg, works in 1.1.x.
stiffmodulecarrier does not work in 1.1.x because it uses a new feature of 1.2.0.1, restrictions on the payment modules."

I think you should download it and take a look at what it does - I myself use the first module and it is very well thought out. You can test run it and at least it will show you which files you need to modify in Prestashop if it doesn't do exactly what you want. The developper has marked where he made the changes in the files so if you use a file comparer tool like PSPad Editor then you can compare your original files with his.

I think you could learn alot from it if you know something about PHP coding - and if you do know something, you should be able to get it to do what you want but most of the hard work has already been done for you.

If I have still misunderstood your needs, then my apologies...

Link to comment
Share on other sites

Oh, Thank you very much. My apologies, that is what I'm looking for. I had to use Google to translate the text and some weird text came up, and from that text I assumed its not the same. Let me pass that on to a friend who helps with the website and who is more familiar with IT, but thanks again very much for your advice!

Link to comment
Share on other sites

  • 1 month later...

Hi... I had exactly the same requirement,
.
And after reading your post and solutions to use stiffmodulecarrier I installed the module.

After setting up everything, I was excited to see the flow. only to realize later that the flow was breaking at the last step of order confirmation.

error: a blank screen appears adn order is not confirmed, neither gets updated in the admin.


I am using 1.2.5 and read later that the module is not compatible with 1.2.5

Q: what should I do now? I want this functionality of displaying selected payment options on the basis of carrier opted by the user
Thanks in advance

Link to comment
Share on other sites

Did you install the new version made for 1.3? Be sure to use the older version available at the very beginning of the thread - I have it installed on 1.2.5 and it works fine.
You have to have created all your transporters on the BO on prestashop tho' and make sure you make the modifications in files that are explained in the setup guide. (use google translate?)

I am joining the files I have installed on my store -

Good luck!

stiffcarriercateg.zip

Link to comment
Share on other sites

  • 2 months later...
Did you install the new version made for 1.3? Be sure to use the older version available at the very beginning of the thread - I have it installed on 1.2.5 and it works fine.
You have to have created all your transporters on the BO on prestashop tho' and make sure you make the modifications in files that are explained in the setup guide. (use google translate?)

I am joining the files I have installed on my store -

Good luck!


In your site, in google chrome the center of the page, go to the right in some links
Link to comment
Share on other sites

  • 1 month later...

I have installed these modules and work fine except one detail, in the blockCart that displays order sumary info while you add products to your cart , it doesnt update the shipping cost if you choose carriers with different fees, it'll always show the default carrier fee.
This worked fine before installing the module, has anyone any idea what could be wrong ?


thanks


Prestashop 1.2.5

Link to comment
Share on other sites

  • 1 month later...

Thanks for this module, I have installed the version for prestashop 1.3.1
but when I try to create a new carrier I get this error:
Notice: Undefined variable: tab in /var/www/vhosts/host.com/subdomains/subdomain/httpdocs/store/controlpanel/tabs/AdminCarriers.php on line 258

Line 258 is where the new code where inserted by the module stiffmodulecarrier

// XPG 090912 Add Carrier restriction
           $id_carrier =  Tools::getValue('id_carrier');
           if (isset($_GET['delete'.$this->table]))
           {
               if ($id_carrier == Configuration::get('PS_CARRIER_DEFAULT'))
                   $this->_errors[] = $this->l('Please set another carrier as default before deleting');
               else
               {
                   $result = Db::getInstance()->ExecuteS('
                       SELECT m.`id_module`
                       FROM `'._DB_PREFIX_.'module` m
                       WHERE m.`name` = \'stiffmodulecarrier\'');
                   if (!$result)
                       $result = false;
                   else {
---------->>      $id_module = $tab[0]['id_module'];
                       $result = Module::hookExec('updateCarrier', array('id_carrier' => $id_carrier, 'carrier' => 0), $id_module);
                   }
                   if (!$result)
                       $this->_errors[] = Tools::displayError('an error occurred while deleting object').' '.$this->table.'';
               }
               parent::postProcess();
           }
           else
           {
               if (Tools::getValue('submitDel'.$this->table))
               {
                   $result = Db::getInstance()->ExecuteS('
                   SELECT m.`id_module`
                   FROM `'._DB_PREFIX_.'module` m
                   WHERE m.`name` = \'stiffmodulecarrier\'');
                   if (!$result)
                       $result = false;
                   else {
----------->        $id_module = $tab[0]['id_module'];
                       $result = true;
                       foreach ($_POST[$this->table.'Box'] AS $id)
                           $result &= Module::hookExec('updateCarrier', array('id_carrier' => $id, 'carrier' => 0), $id_module);
                   }
                   if ($result)
                       parent::postProcess();
                   else
                       $this->_errors[] = Tools::displayError('an error occurred while deleting object').' '.$this->table.'';
                       return $result;
               }
               else
                   parent::postProcess();
// End XPG



where should be declare that variable ??

thanks for your help

Hugh

p.s. this happens also with the version for prestashop 1.2.5

Link to comment
Share on other sites

  • 1 year later...

Exactly.

 it doesnt update the shipping cost if you choose carriers with different fees, it'll always show the default carrier fee.

I'm using presta 1.4.7.3 and stiffcarriercateg 1.6.5.1

Any Ideas?

Greetings from Poland

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...