Jump to content

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

How Can I Add New Payment Category? Rate Topic   - - - - -

 
  • Jamalla
  • Senior Member
  • Members
  • Join Date: 23-Sep 17
  • 263 posts

Posted 19 March 2018 - 10:40 AM #1

Hi,

 

How can I add new Payment Category? Like "Others" ?

 

 

r5DurDE.png



 
  • Alt-team
  • CS-Cart Developer
  • Authorized Reseller
  • Join Date: 18-Jan 11
  • 2651 posts

Posted 19 March 2018 - 12:29 PM #2

Check the backend templates.

 

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


ADD-ONS  Web development service  | CS-Cart dedicated developers

Buy MULTIVENDOR - USD 1250 (14% off)   Buy CS-CART LICENCE - USD 345 (13% off)

 Email - manager@alt-team.com | Skype - Altteam    


 
  • Jamalla
  • Senior Member
  • Members
  • Join Date: 23-Sep 17
  • 263 posts

Posted 19 March 2018 - 01:59 PM #3

Check the backend templates.

 

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

 

Thanks for the reply;

I found this related code:

        <div class="control-group" data-ca-form-group="category">
            <label class="control-label" for="elm_payment_category_{$id}">{__("payment_category")}:</label>
            <div class="controls">
                <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>
                <p class="description">
                    <small>{__("payment_category_note")}</small>
                </p>
            </

Do you think it's enough to change the language variables:

qiylW4U.png



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

Posted 20 March 2018 - 04:42 AM #4

Sure, you can change language variable if extra tabs are not required


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 руб.


 
  • Jamalla
  • Senior Member
  • Members
  • Join Date: 23-Sep 17
  • 263 posts

Posted 25 March 2018 - 02:53 PM #5

Thanks Friends :)



 
  • cristyxx
  • Member
  • Members
  • Join Date: 12-Sep 17
  • 37 posts

Posted 20 July 2018 - 01:27 PM #6

It's enough to add a new tab in design/backend/templates/views/payments/update.tpl ?

No needed to add a new value in database?



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

Posted 23 July 2018 - 06:39 AM #7

It's enough to add a new tab in design/backend/templates/views/payments/update.tpl ?

No needed to add a new value in database?

 

Yes, you are right. No need to update database


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 руб.


 

Posted 06 February 2019 - 04:05 AM #8

hello guys, i didnt find where design/backend/templates/views/payments/update.tp in my admin panel? 
any one can help me



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

Posted 24 April 2019 - 07:32 PM #9

Hi friends i want to add 2 payment categories more and i have added but it dose not show in the payment categories
 
 
 
<div class="control-group" data-ca-form-group="category">
            <label class="control-label" for="elm_payment_category_{$id}">{__("payment_category")}:</label>
            <div class="controls">
                <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>
                <p class="description">
                    <small>{__("payment_category_note")}</small>
                </p>
 
 
 
 
Value Language variable 
 
Credit card:     payments_tab1
PayPal:       payments_tab2
Cash on Delivery:     payments_tab3
Bank Transfer:     payments_tab4
 


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

Posted 25 April 2019 - 05:51 AM #10

Did you clear cache? If yes, 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
  • 21 posts

Posted 25 April 2019 - 05:51 PM #11

Did you clear cache? If yes, 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


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

Posted 26 April 2019 - 06:30 AM #12

You are welcome!


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 руб.