Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Apr 2013
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    kind help will be much appreciated

    need help in modify a new function. on the image below, that's 2 currencies shown, one in cny and one in sgd, i need the cny to be able to edit by customer, and it will will auto convert to the pre set rate to sgd, and the converted rate sgd is able to add to cart. i m not sure what coding language should i use, do i need to create a session for the function? i m too nub to do this. kind help will be much appreciated

  • #2
    Regular Coder
    Join Date
    Nov 2012
    Posts
    115
    Thanks
    7
    Thanked 12 Times in 12 Posts
    You're probably looking at using javascript to catch the contents of your CNY value field on the loose of focus, which will update the value of the element that holds the SGD price.

    How to implement this depends on the current structure of your webpage, as the SGD price probably needs its own <span> and you'll need to edit the input field which holds the CNY value to call the javascript function on change or on loose focus.

    Have you got access to the files necessary, or is this a pre-made CMS/webshop you're using?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •