Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

How To Add New Payment Tabs? Rate Topic   - - - - -

 
  • ufukinan
  • Junior Member
  • Members
  • Join Date: 09-Mar 11
  • 7 posts

Posted 26 January 2016 - 06:21 PM #1

I want to add a new payment tab. How?

 

Thank you.



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19786 posts

Posted 27 January 2016 - 08:15 AM #2

design/backend/templates/views/payments/update.tpl

 

add this line:

 

<option value="tab4" {if $payment.payment_category == "tab4"}selected="selected"{/if}>{__("payments_tab4")}</option>             

after this one:

<option value="tab3" {if $payment.payment_category == "tab3"}selected="selected"{/if}>{__("payments_tab3")}</option>

Then create the payments_tab4 language variable and clear the cache


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • Hungryweb
  • Senior Member
  • Authorized Reseller
  • Join Date: 10-Feb 12
  • 1249 posts

Posted 27 January 2016 - 09:15 AM #3

To be able to do this task you will need to do a core modification or use override, i'll prefer override :D and for this you need to do:

 

1. create file

design/backend/templates/addons/my_changes/overrides/views/payments/update.tpl

2. copy content from 

design/backend/templates/views/payments/update.tpl

3. add how many tabs you need

 

#before

                <select id="elm_payment_category_{$id}" name="payment_data[payment_category]">
                    <option value="tab1" {if $payment.payment_category == "tab1"}selected="selected"{/if}>{__("payments_tab1")}</option>
                    <option value="tab2" {if $payment.payment_category == "tab2"}selected="selected"{/if}>{__("payments_tab2")}</option>
                    <option value="tab3" {if $payment.payment_category == "tab3"}selected="selected"{/if}>{__("payments_tab3")}</option>
                </select>

#after

 

                <select id="elm_payment_category_{$id}" name="payment_data[payment_category]">
                    <option value="tab1" {if $payment.payment_category == "tab1"}selected="selected"{/if}>{__("payments_tab1")}</option>
                    <option value="tab2" {if $payment.payment_category == "tab2"}selected="selected"{/if}>{__("payments_tab2")}</option>
                    <option value="tab3" {if $payment.payment_category == "tab3"}selected="selected"{/if}>{__("payments_tab3")}</option>
                    <option value="tab4" {if $payment.payment_category == "tab4"}selected="selected"{/if}>{__("payments_tab4")}</option>
                    <option value="tab5" {if $payment.payment_category == "tab5"}selected="selected"{/if}>{__("payments_tab5")}</option>
                </select>

* in this example are added another 2 tabs, tab_4 and tab_5

 

4. add translation for the tab

Administration > Languages > Translation

eNAZewg.png

 

Require: My Changes Add-on to be active

Tested on CS-Cart version 4.3.5

 

 

I hope that helps,

---
Valentin
part of hungryweb.net
 


 
  • ufukinan
  • Junior Member
  • Members
  • Join Date: 09-Mar 11
  • 7 posts

Posted 27 January 2016 - 08:18 PM #4

Thanks for your help. You are amazing.  :grin:

 

Best regards. 



 
  • sahibpkrbw
  • Member
  • Members
  • Join Date: 16-Aug 12
  • 24 posts

Posted 24 April 2019 - 10:23 PM #5

Hi

 

i want to add more 2 payment tabs, and i did as mentioned here but it doesn't show in the payments categories (my cs cart version is 4.9.3 Multivendor.

 

although i created the payments_tab4 / payments_tab5 and language variable and cleared the cache as well 

 

kindly help me to solve this problem many thanks

 

 

Regards



 
  • galtinbaeva
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 06-Dec 13
  • 3367 posts

Posted 25 April 2019 - 05:21 AM #6

Hi

 

i want to add more 2 payment tabs, and i did as mentioned here but it doesn't show in the payments categories (my cs cart version is 4.9.3 Multivendor.

 

although i created the payments_tab4 / payments_tab5 and language variable and cleared the cache as well 

 

kindly help me to solve this problem many thanks

 

 

Regards

 

Hello,

 

Is My changes add-on active? If yes, try to search for another add-on's override in design/backend/templates/addons folder. You can search by piece of code, for example, payment_data[payment_category]


Simtech Development | sales@simtechdev.com | www.simtechdev.com
CERTIFIED CS-CART PARTNER | LICENSES | DEVELOPMENT | ADD-ONS | DESIGN | UPGRADE

Google Analytics Enhanced Ecommerce - get advanced ecommerce analytics


 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19786 posts

Posted 25 April 2019 - 05:55 AM #7

Hi

 

i want to add more 2 payment tabs, and i did as mentioned here but it doesn't show in the payments categories (my cs cart version is 4.9.3 Multivendor.

 

although i created the payments_tab4 / payments_tab5 and language variable and cleared the cache as well 

 

kindly help me to solve this problem many thanks

 

 

Regards

 

Try to delete the var/cache directory manually


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • sahibpkrbw
  • Member
  • Members
  • Join Date: 16-Aug 12
  • 24 posts

Posted 25 April 2019 - 05:53 PM #8

Try to delete the var/cache directory manually

Hi,
 
Many thanks dear that's was what i not did not! now it works perfectly.
 
With respect
Regards