PrestaShop Forums: [Ship2Pay MODULE, CONTRIBUTION] Shows payment methods depends on shipping - PrestaShop Forums

Jump to content


Welcome to the PrestaShop Forum! We hope you'll share your comments and suggestions with us. We ask that you please post in English to the main sections of the PrestaShop Forum. If you want to write in another language, please post in the corresponding PrestaShop Community section below.

Please note that PrestaShop Community sections are largely self-moderated. PrestaShop team members may or may not participate in non-English sections. To improve the chances of receiving feedback to your question or comment, please post it in English to the main sections of our Forum.

NYC

Vous parlez français ? par ici !


[Ship2Pay MODULE, CONTRIBUTION] Shows payment methods depends on shipping


[Ship2Pay MODULE, CONTRIBUTION] Shows payment methods depends on shipping

#1 szazman

    PrestaShop Newbie

  • 11 May 2009
  • Members
  • Pip
  • 14 posts

Posted 07 September 2009 - 12:35 PM

Remember to BACKUP before overwriting!!!!


module that limits the number of payment options depending on the chosen shipping method.
For example When my client chooses pickup at store he should not be able to select bank transfer

Attached File(s)



#2

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 07 September 2009 - 05:40 PM

What about compatibility? PS 1.1 , 1.2 ?

Thanks for sharing your module.
Added to Community Prestashop Modules List

#3

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 08 September 2009 - 05:40 AM

ship2pay_1.1.zip for presta 1.1 tested on presta 1.105
ship2pay_1.2.zip for presta 1.2.1 tested on presta 1.2.1

#4

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 08 September 2009 - 05:49 AM

Nice work!

Ship2Pay reminds me of osCommerce ;-)

#5

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 11 September 2009 - 06:55 AM

Love it! Thank you! Exactly what I was needing!

Kristal

#6

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 13 September 2009 - 09:39 AM

It looks like it does NOT work in PS 1.2.3 :down:

Furhermore, the shop gets corrupted and you need to reinstall!

I'm not sure if I can save the database.

#7

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 13 September 2009 - 11:04 AM

Thanks for this great module.

Strange TB that it not works for you in 1.2.2.0.
I just installed it in prestashop 1.2.3.0 after you told me about this module and it works a charm, no problems so far.
My problems are solved with this module.


Greats, ysco..

#8

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 13 September 2009 - 11:17 AM

From 1252836265:

Thanks for this great module.

Strange TB that it not works for you in 1.2.2.0.
I just installed it in prestashop 1.2.3.0 after you told me about this module and it works a charm, no problems so far.
My problems are solved with this module.

Greats, ysco..


Hmm, I meand 1.2.3.0.

I will try again.

#9

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 13 September 2009 - 11:23 AM

It's working fine on my 1.2.3
love it!

Kristal

#10

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 13 September 2009 - 11:32 AM

No, I cannot save the settings.
Nothing happens.

#11

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 13 September 2009 - 11:56 AM

From 1252837397:

It's working fine on my 1.2.3
love it!

Kristal


Do you use a clean installed 1.2.3?

#12

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 13 September 2009 - 12:04 PM

Um... I did a clean install of the previous version, then updated to 1.2.3

#13

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 13 September 2009 - 12:20 PM

From 1252839898:

Um... I did a clean install of the previous version, then updated to 1.2.3


That is what I did to.

I've done a clean install, configured to work with correct paymend and carriers.
Then installed this Ship2Pay module, I cannot config anything in this module because the "add combination" button does not work.

If you push your "add combination" button, what happens?

#14

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 13 September 2009 - 12:25 PM

So you select a Shipping option, and then select a Payment option that goes with that Shipping option - then click Add Combination?

#15

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 13 September 2009 - 12:33 PM

Like Kristal Hull said, you need to choose a shipping option and then a payment option then click the add button and it save without a problem.

I did use this on 1.2.3.0. and not used a clean install and works without a problem this way.


ysco..

#16

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 13 September 2009 - 12:40 PM

Busted!

I use IE8 with the Slimbrowser Plug-in, it does niet work in that combination.
It does work with Firefox!

#17

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 13 September 2009 - 01:03 PM

Updated version: 1.2.1

First: I've cleaned the code and made sure that the basic module (without any translation file) would use the English language.
Second: I used common words like Shipmend method and Paymend method so it follows the PrestaShop default.
Third: I've also created a new icon which was missing in the modules list.

All credits goes to the original contributor: szazman

Attached File(s)



#18

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 14 September 2009 - 06:19 AM

Thanks TB for improving this great module ;)


Greats, ysco..

#19

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 20 September 2009 - 11:23 AM

Updated version: 1.2.2

Thanks for great module!
I think it should be in core.

Minor update:
* visually enhanced,
* expanded payment modules names,
* corrected "shipmend" to shipment,
* corrected identifiers for pl translation,
* added patches, because it's easier to add while core changing.

Cheers,
romus

Attached File(s)



#20

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 28 October 2009 - 02:19 AM

Thank you for this module, it's been really useful.

I found only a minor problem: when you choose the carrier and then the payment (so you're on the "payment_execution.tpl" of most payment modules) and you want to go back to choose another payment, almost every modules has a "Other forms of payment" button which links to
{$base_dir_ssl}order.php?step=3

But clicking gives a "No payment modules have been installed yet" error, because there's no id_carrier set in POST variables.


I found a fix by editing the changed line in order.php.
Ship2Pay's patch has:
$smarty->assign(array('HOOK_PAYMENT' => Module::hookExecPaymentFront(Tools::getValue('id_carrier')), 'total_price' => floatval($orderTotal)));


I changed it to:
$smarty->assign(array('HOOK_PAYMENT' => Module::hookExecPaymentFront(Tools::getValue('id_carrier', $cart->id_carrier)), 'total_price' => floatval($orderTotal)));

So if there's no id_carrier set in $_POST, the value stored in $cart object is used.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users