- Posts: 5
- Thank you received: 0
Problem with Override in "register"
- Edis Zunic
- Topic Author
- Offline
- New Member
-
Less
More
9 years 8 months ago #67608
by Edis Zunic
Problem with Override in "register" was created by Edis Zunic
When i create a override for: com_osmembership/register/default.php
in my template: html/com_osmembership/register/default.php
i get a JS Error in my console:
"Uncaught ReferenceError: taxStateCountries is not defined" -> paymentmethod.js:465
and it is not possible to subscribe to a plan if i have a ovveride of the folder "register"
how to fix this?? i need more controll over the design so i need this override to get working!
thank you
in my template: html/com_osmembership/register/default.php
i get a JS Error in my console:
"Uncaught ReferenceError: taxStateCountries is not defined" -> paymentmethod.js:465
and it is not possible to subscribe to a plan if i have a ovveride of the folder "register"
how to fix this?? i need more controll over the design so i need this override to get working!
thank you
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
9 years 8 months ago #67609
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Problem with Override in "register"
Hi Edis
You need to re-do the template override based on latest version of the extension layout. taxStateCountries was just added to Membership Pro from version 2.0.5
Tuan
You need to re-do the template override based on latest version of the extension layout. taxStateCountries was just added to Membership Pro from version 2.0.5
Tuan
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
9 years 8 months ago #67610
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Problem with Override in "register"
In version 2.0.5, we just added two lines of code below to support tax based on states (for US and Canada)
You can look at this image for more details. So you just need to add the two commands to your default.php file and it should work well
Tuan
Code:
var taxStateCountries = "<?php echo $this->taxStateCountries;?>";
taxStateCountries = taxStateCountries.split(',');
You can look at this image for more details. So you just need to add the two commands to your default.php file and it should work well
Tuan
- Edis Zunic
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 5
- Thank you received: 0
9 years 8 months ago #67622
by Edis Zunic
Replied by Edis Zunic on topic Problem with Override in "register"
Hi!
I just updated the component again just to make sure that im on version 2.0.5
I deleted my old override folder of "register" then i created a new one and did not change a thing. just checked if i have those 2 lines of code in the new override folder:
var taxStateCountries = "<?php echo $this->taxStateCountries;?>";
taxStateCountries = taxStateCountries.split(',');
the JS error is gone now but still not working...after all fileds are set it redirects me to the plan page.
however...when i delete my override folder again, everything is ok...
i don´t thing its a problem just of these 2 lines of code...
I just updated the component again just to make sure that im on version 2.0.5
I deleted my old override folder of "register" then i created a new one and did not change a thing. just checked if i have those 2 lines of code in the new override folder:
var taxStateCountries = "<?php echo $this->taxStateCountries;?>";
taxStateCountries = taxStateCountries.split(',');
the JS error is gone now but still not working...after all fileds are set it redirects me to the plan page.
however...when i delete my override folder again, everything is ok...
i don´t thing its a problem just of these 2 lines of code...
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
9 years 8 months ago #67623
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Problem with Override in "register"
The change I was talking about is from 2.0.4 to 2.0.5. If it is from older version, you will need to redo the override based on the code of latest version.
Tuan
Tuan
Please Log in or Create an account to join the conversation.
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.