Jump to content

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

Overriding Promo Code Mechanism Rate Topic   - - - - -

 
  • arfeen
  • Newbie
  • Trial users
  • Join Date: 03-Jan 18
  • 9 posts

Posted 28 June 2018 - 02:29 PM #1

Hello,

 

Is there any possibility I can override the mechanism of "Apply Promo Code" with my own ? I want to integrate a loyalty system and I want to use the same Apply Promo Code process. I could not find any hook for this process. If there is none, Would I be able to hide the apply promo code box using any option of I must edit the .tpl file ?

 

Thanks

 

Arfeen



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

Posted 29 June 2018 - 04:54 AM #2

For example, use Gift Certificates module as example. It alters default Promo code functionality and adds ability to apply gift certificates and promo codes in one field


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 12 July 2018 - 06:05 AM #3

 how  can I change the message  "The Promo code field is mandatory." as "please enter promo code

please help me



 

Posted 12 July 2018 - 06:22 AM #4

I want to change this message like "screenshot-localhost-2018.07.12-11-47-30.png Please enter Promo code"



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

Posted 12 July 2018 - 12:39 PM #5

Remove cm-required class from label and add new validator using cm-regexp class. Examples can be found here

 

https://docs.cs-cart...croformats.html


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