Integrating TaxCloud into Concrete5
Permalink
Hello,
After doing some research this weekend, I will be attempting to integrate TaxCloud with Concrete5 and Stripe. With that said, under the TaxCloud instructions, it notes:
"Second, open your HTML file in an editor (your HTML file is the page where you sell stuff, not the TaxCloud.php/TaxCloud.aspx file) . You need to add the following javascript reference:
Note that we are including with ‘https’ because we are doing a purchase page. Payment processors usually have this requirement. In fact, as we are demonstrating integration with Stripe, we need ensure https per their requirements:
And a bit of JQuery for good measure:
Finally, we are going to add reference to our default JQuery UI Theme, a slightly modified version of the JQuery UI Cupertino theme:
Of course, if your site already uses a JQuery UI Theme, you can omit this link, and the TaxCloud.js UI will look like the rest of your site automatically."
--
Now I don't want to use their JQery UI Theme as I want it to look like the rest of my site, so it looks like I can omit that last bit of code.
However, my question is, where do I install this code within Concrete5?
Any help would be appreciated. Thank you.
After doing some research this weekend, I will be attempting to integrate TaxCloud with Concrete5 and Stripe. With that said, under the TaxCloud instructions, it notes:
"Second, open your HTML file in an editor (your HTML file is the page where you sell stuff, not the TaxCloud.php/TaxCloud.aspx file) . You need to add the following javascript reference:
<!-- TaxCloud Requirements --> <script type="text/javascript" src="https://taxcloud.net/taxcloud.js"></script>
Note that we are including with ‘https’ because we are doing a purchase page. Payment processors usually have this requirement. In fact, as we are demonstrating integration with Stripe, we need ensure https per their requirements:
<!-- Stripe Requirements --> <script type="text/javascript" src="https://checkout.stripe.com/v2/checkout.js"></script>
And a bit of JQuery for good measure:
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>
Finally, we are going to add reference to our default JQuery UI Theme, a slightly modified version of the JQuery UI Cupertino theme:
<link href="https://taxcloud.net/downloads/TaxCloud.js/TaxCloud.js.css" rel="stylesheet" />
Of course, if your site already uses a JQuery UI Theme, you can omit this link, and the TaxCloud.js UI will look like the rest of your site automatically."
--
Now I don't want to use their JQery UI Theme as I want it to look like the rest of my site, so it looks like I can omit that last bit of code.
However, my question is, where do I install this code within Concrete5?
Any help would be appreciated. Thank you.
Thank you for the response TaxCloud.
1) If I open up my editor and add this code in (code listed above in previous post), what should I name this file (with extension)?
2) Also, the next step lists the following code:
"In a <script></script> section, start with this:
--
Is this the code we should be saving as the taxcloud.js file?
3) Then the question comes up as to where to upload this file? Possible in:
public_html/concrete/js directory?
Maybe someone very familiar with Concrete5 might be able to answer this...
--
4) Finally, what file should this code below go into:
--
5) Also, I'm currently editing the TaxCloud.php file and wondering what directory this might need to be uploaded as well.
Thank you so much for your willingness to help me with this. I really appreciate it.
-concreteart
1) If I open up my editor and add this code in (code listed above in previous post), what should I name this file (with extension)?
2) Also, the next step lists the following code:
"In a <script></script> section, start with this:
var myTaxCloud = new TaxCloud("TaxCloud.php", "doPurchase.php"); var storeName = "Your Store Name"; $().ready(function(){//be sure page is fully loaded myTaxCloud.OnPurchaseStep2PurchaseClicked = TaxCloudPurchaseStep2PurchaseClicked; myTaxCloud.Install(); myTaxCloud.SetCustomerID(getCustomerID(), true); }); function getCustomerID(){ //go get your customer identifier from somewhere //if you already have their address, you could pre-populate the address form. return "fabulousCustomer399"; }
--
Is this the code we should be saving as the taxcloud.js file?
3) Then the question comes up as to where to upload this file? Possible in:
public_html/concrete/js directory?
Maybe someone very familiar with Concrete5 might be able to answer this...
--
4) Finally, what file should this code below go into:
SetMyAddress();//this should be done within the $(document).ready function function SetMyAddress() { myTaxCloud.addressOrigin.address1 = "Your Address"; myTaxCloud.addressOrigin.city = "Your City"; myTaxCloud.addressOrigin.state = "Your State as Two Letters"; myTaxCloud.addressOrigin.zip5 = "Your 5-Digit zip code"; }
--
5) Also, I'm currently editing the TaxCloud.php file and wondering what directory this might need to be uploaded as well.
Thank you so much for your willingness to help me with this. I really appreciate it.
-concreteart
# Please type your reply above this line #
Request received: Integrating TaxCloud into Concrete5 : Building with concrete5:
Request received: Integrating TaxCloud into Concrete5 : Building with concrete5:
Hi ConcreteArt,
Please download and view the source ofhttp://taxcloud.net/downloads/TaxCloud.js/HelloTaxCloud.html...
The script references described in the post should be added to the HTML or PHP file where you sell stuff, or the template file that generates the pages where you sell stuff.
The taxcloud.php page should not be edited except for adding your api credentials. You can upload that file wherever you want on your server, just be sure that when you initialize TaxCloud.js you reference that location.
The initialization is this line:
To quote our blog post (http://taxcloud.net/stripe/ ):
"When we create our new TaxCloud instance, we provide two parameters:
- taxCloudPostUrl — the path to the TaxCloud.php/TaxCloud.aspx page on your server
- purchasePostUrl — the path to your payment handler page on your server, in our case doPurchase.php which uses Stripe as our payment gateway."
It would be helpful if someone from Concrete5 could chime in regarding the template file(s) that could/should be modified - we are not Concrete5 experts.
We will monitor this thread and keep you informed if we hear back from them regarding our outreach efforts.
-TaxCloud Merchant Support
Please download and view the source ofhttp://taxcloud.net/downloads/TaxCloud.js/HelloTaxCloud.html...
The script references described in the post should be added to the HTML or PHP file where you sell stuff, or the template file that generates the pages where you sell stuff.
The taxcloud.php page should not be edited except for adding your api credentials. You can upload that file wherever you want on your server, just be sure that when you initialize TaxCloud.js you reference that location.
The initialization is this line:
var myTaxCloud = new TaxCloud("TaxCloud.php", "doPurchase.php");
To quote our blog post (http://taxcloud.net/stripe/ ):
"When we create our new TaxCloud instance, we provide two parameters:
- taxCloudPostUrl — the path to the TaxCloud.php/TaxCloud.aspx page on your server
- purchasePostUrl — the path to your payment handler page on your server, in our case doPurchase.php which uses Stripe as our payment gateway."
It would be helpful if someone from Concrete5 could chime in regarding the template file(s) that could/should be modified - we are not Concrete5 experts.
We will monitor this thread and keep you informed if we hear back from them regarding our outreach efforts.
-TaxCloud Merchant Support
Thank you very much for the help TaxCloud. I will wait to see if someone from Concrete5 can provide further guidance in this thread.
I will be in touch further after that.
Thank you,
-concreteart
I will be in touch further after that.
Thank you,
-concreteart
# Please type your reply above this line #
Request received: Integrating TaxCloud into Concrete5 : Building with concrete5:
Request received: Integrating TaxCloud into Concrete5 : Building with concrete5:
Hello,
I just wanted to see if anyone on concrete5 might have any advice on how I can integrate TaxCloud into concrete5 working with the Stripe payment gateway. I'd really like to learn how to do this, but could use some guidance on walking through this, and what files I need to look at.
Thank you so much,
-concreteart
I just wanted to see if anyone on concrete5 might have any advice on how I can integrate TaxCloud into concrete5 working with the Stripe payment gateway. I'd really like to learn how to do this, but could use some guidance on walking through this, and what files I need to look at.
Thank you so much,
-concreteart
# Please type your reply above this line #
Request received: Integrating TaxCloud into Concrete5 : Building with concrete5:
Request received: Integrating TaxCloud into Concrete5 : Building with concrete5:
Hello,
I just wanted to reach out one more time to see if there is anyone in the concrete5 community who might be able to point me in the direction of what files I need to look at to integrate TaxCloud with Stripe. Per the link above there is some code that needs to be added to some files and I could really use some guidance on what files this code would need to be applied to in concrete5.
Thank you,
-concreteart
I just wanted to reach out one more time to see if there is anyone in the concrete5 community who might be able to point me in the direction of what files I need to look at to integrate TaxCloud with Stripe. Per the link above there is some code that needs to be added to some files and I could really use some guidance on what files this code would need to be applied to in concrete5.
Thank you,
-concreteart
# Please type your reply above this line #
Request received: Integrating TaxCloud into Concrete5 : Building with concrete5:
Request received: Integrating TaxCloud into Concrete5 : Building with concrete5:
We have also not gotten any response from anyone at Concrete5. We will let you know as soon as we hear from them.
Thanks for your patience!
Thanks for your patience!
You should be able to add those javascript references to your main template page(s).
TaxCloud.js uses HTML5 storage (and some fancy cookie code for alder browsers) to persist cart items added across multiple pages.
Your are also correct that the TaxCloud.js generated UI should adopt/inheirit your existing JQuery UI css theme if you omit the link reference.
Please let us know if we can provide any additional assistance.
We have also initiated contact with Concrete5 to hopefully enable TaxCloud as a simple account configuration option (which would eliminate many of the steps described at http://taxcloud.net/stripe/ ).
Thanks again for trying out TaxCloud (http://taxcloud.com ) - the internet's first (and only) completely free sales tax compliance service.
-TaxCloud Merchant Support