X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   General questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=66)
-   -   How to set number of digits for zipcode and phone number? (https://forum.x-cart.com/showthread.php?t=78233)

john.hodson@iinet.net.au 05-04-2021 11:06 PM

How to set number of digits for zipcode and phone number?
 
Hi,

Is there a way to set the number of digits for phone number to 10 digits? This is a new required field that we added in Cart and Checkout, but we have customers putting in phone number that is missing a digit too often.

Similarly, is there a way to set the post code (zipcode) to 4 digits. At the moment, the checkout form shows 5 digits for postcode.

Also, where can I change the word "Invoice #xxxx" to "Tax invoice #xxxx"?

Thank you.
John

pauldodman 05-05-2021 01:27 AM

Re: How to set number of digits for zipcode and phone number?
 
Quote:

Originally Posted by john.hodson@iinet.net.au

Also, where can I change the word "Invoice #xxxx" to "Tax invoice #xxxx"?






That will be under Store Setup >> Translations.


Click on English



/admin.php?target=labels&code=en


and search for Invoice


Then just edit Invoice X

john.hodson@iinet.net.au 05-07-2021 01:54 AM

Re: How to set number of digits for zipcode and phone number?
 
Hi Paul,

Tried it but does not seem to work. I changed from "Invoice" to "Tax invoice"; and "Invoice #{{orderId}}, {{time}}" to "Tax invoice #{{orderId}}, {{time}}". However, no success.

Any further thoughts?

Thank you.
John

pauldodman 05-07-2021 02:31 AM

Re: How to set number of digits for zipcode and phone number?
 
Could be a different variable - but they sound like the right ones.
Use the template editor to double check maybe.


Also, you could try rebuilding the shop, or clearing cache to make sure that the change has taken.

john.hodson@iinet.net.au 05-07-2021 11:50 PM

Re: How to set number of digits for zipcode and phone number?
 
Thank you. Have now rebuild the store. Will have to wait for the next order to see if that has changed anything. Thank you again and have a good weekend.

Cheers,
John


All times are GMT -8. The time now is 10:59 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.