Jump to content

New payment methode: Cash on collection


Recommended Posts

How can I add a new payment option in Prestashop 1.4, which is paying with cash on collection of the goods in my store? In this way no carrier is needed and no shipping cost are charged ... Thank you for help!

Link to comment
Share on other sites

  • 2 weeks later...
Hmm, I thought the installer auto-created this (pickup in-store) offering...

visit backoffice Shipping } Carriers
click AddNew

"carrier name" field: PICKUP
"transit time" field: Pick up in-store
Tax: no tax
"Shipping & handling" field : [x] aka NO
Zone: bind it to whatever zone makes sense for your location
If you wish, you can select a logo.
click (Save) after adding these details


Hello.
I did what you said above, but the pick up in store will now show up in my Choose Carrier field on the cart options.
Can you help?

Thanks.
Link to comment
Share on other sites

Angora,
thanks for the reply.
However it still does not work for me. I did all that and i even placed it as my "default carrier" and it still doesn´t appear on the checkout page.
Did this work for anyone else?
It's too bad because this feature would really be helpful in my shop.

Thank you.

Link to comment
Share on other sites

  • 1 month later...
Oops -- my instructions above were incomplete. Sorry 'bout that.

visit backoffice Shipping } Price Ranges page
Click "Add new"
in the selectbox, choose your carrier "pickup in store"
and add range details, then click save
(given a range "zero to a million", this carrier option should be available during any checkout, eh)

visit backoffice Shipping } Weight Ranges page
and repeat the setup, similar to PriceRanges, and "Save".
(again, in this case, you'll probably want to set a huge range, like "zero to a million")

Now, finally (cross yer fingers) this new "carrier" will be presented as an available option during checkout.


I've done all of this, but this is not exactly what I wanted ... Beside this new 'pickup in store' carrier I also want a new payment method 'Pay with cash' ... Maybe I could just use a 'cheque' module (because I will not take cheques) and modify it to act as 'pay with cash' module ... Or if I copy 'cheque' folder to 'PayWithCash' in modules folder, what else must I change so this module will act as standalone module, independant from cheque module? Thanks for the tip!
Link to comment
Share on other sites

  • 5 weeks later...

Hi

I have set up a cash on collection for my store just recently.

What I did was take the module Cash on Delivery and change the text 'Delivery' and 'COD' to 'Collection' and 'COC' in the .tpl files under the Cash on Delivery Module.

It all works wanderfully and all the notifications come through with the correct wording too.

Files I changed in this module were:

payment.tpl, validation.tpl, confirmation.tpl - I used notepad++ to mke the changes.
Do a copy of them first before working on the original!!! so you can revert back if need be.

I changed the logo and added more text to make it more meaningful.

Hope this helps.

Link to comment
Share on other sites

  • 2 weeks later...
Hi

I have set up a cash on collection for my store just recently.

What I did was take the module Cash on Delivery and change the text 'Delivery' and 'COD' to 'Collection' and 'COC' in the .tpl files under the Cash on Delivery Module.

It all works wanderfully and all the notifications come through with the correct wording too.

Files I changed in this module were:

payment.tpl, validation.tpl, confirmation.tpl - I used notepad++ to mke the changes.
Do a copy of them first before working on the original!!! so you can revert back if need be.

I changed the logo and added more text to make it more meaningful.

Hope this helps.



This is something that I'm currently setting up; but I change everything that is relevant on those files to make it display "cash on collection" and when I update the changes in the back office and by FTP the only thing to changes is the logos; does anyone have any idea what i'm doing wrong?

Validation.tpl
{capture name=path}{l s='Shipping' mod='cashondelivery'}{/capture}
{include file="$tpl_dir./breadcrumb.tpl"}

{l s='Order summation' mod='cashondelivery'}

{assign var='current_step' value='payment'}
{include file="$tpl_dir./order-steps.tpl"}

{l s='Pay with cash on collection' mod='cashondelivery'}

<form action="{$this_path_ssl}validation.php" method="post">
   <input type="hidden" name="confirm" value="1" />



       {l s='You have chosen the cash on collection method.' mod='cashondelivery'}



       {l s='The total amount of your order is' mod='cashondelivery'}
{convertPrice price=$total}
       {if $use_taxes == 1}
           {l s='(tax incl.)' mod='cashondelivery'}
       {/if}









{l s='Please confirm your order by clicking \'I confirm my order\'' mod='cashondelivery'}.



getPageLink('order.php', true)}?step=3" class="button_large">{l s='Other payment methods' mod='cashondelivery'}
       <input type="submit" name="submit" value="{l s='I confirm my order' mod='cashondelivery'}" class="exclusive_large" />

</form>



payment.tpl





{l s='Pay with cash on collection' mod='cashondelivery'}

{l s='You pay for your order upon collection' mod='cashondelivery'}





confirmation.tpl

{l s='Your order on' mod='cashondelivery'} {$shop_name}{l s='is complete.' mod='cashondelivery'}



   {l s='You have chosen the cash on collection method.' mod='cashondelivery'}


{l s='Your order will be reserved and made ready for collection.' mod='cashondelivery'}


{l s='For any questions or for further information, please contact our' mod='cashondelivery'} getPageLink('contact-form.php', true)}">{l s='customer support' mod='cashondelivery'}.

Link to comment
Share on other sites

I have checked these .tpl files against what I changed and they look okay, mine slightly different in that:

1. I left in the (COD) but changed it to (COC)
2. In the confirmation.tpl at the end :

 

{l s='For any questions or for further information, please contact our' mod='cashondelivery'} getPageLink('contact-form.php', true)}">{l s='customer support' mod='cashondelivery'}.



Did you clear your cache? That is what I always get asked to do when I have a problem.

So when you have uploaded these 3 files you overwrote existing. Then when you test the only change is the logo image? All the wording you have used ie cash on collection, that is not showing?

Check the config file under cashondelivery module. Mine has the following:

<?xml version="1.0" encoding="UTF-8" ?>

cashondelivery
<![CDATA[Cash on collection (COC)]]>
<![CDATA[0.3]]>
<![CDATA[Accept cash on collection payments]]>
<![CDATA[PrestaShop]]>
<![CDATA[payments_gateways]]>
0
1




Other than that not sure. Mine worked straight away when I did the changes and uploaded.
<?xml version="1.0" encoding="UTF-8" ?>

cashondelivery
<![CDATA[Cash on collection (COC)]]>
<![CDATA[0.3]]>
<![CDATA[Accept cash on collection payments]]>
<![CDATA[PrestaShop]]>
<![CDATA[payments_gateways]]>
0
1



Other than that, not sure sorry.
Link to comment
Share on other sites

Hello, thanks for your reply;

after hours of trying to work out what was wrong, turned out to be nothing to do with the code. The problem was that any changes I was making to the .tpl files weren't being updated on the website.

To fix this goto Preferences>performance

force compile = yes
caching = no

Problem solved!

Link to comment
Share on other sites

  • 2 years later...

I want to do the same. However, I have an active COD module, so cannot modify with above changes cause the module name is same 'cashondelivery' . How can I duplicate the COD module as 'Pay in store' called 'payinstore' ?

Link to comment
Share on other sites

×
×
  • Create New...