solved Foxy Cart Bug With Quotas In Shopping Cart

alt=
@syrus
10 years ago
44 posts
Earlier I ran into some issues while I was testing foxy cart. The issue was when I created Subscription quotas on the custom subscription page I created for visitors to sign up, for a paid account when they are joining my site. I'm bringing this to you guys attention because some people may need the answers to this and also it is a bug.

The issue is when you create quotas for a custom subscription page with foxy cart, and A customer or user chooses a quota and add it to the shopping cart, they get A error that say "Cart Validation Error: name" Or A Blank cart with no quota with zeros. The reason behind this is that you renamed your subscription quotas and the foxy cart system seems to only be picking up the old name you had before you changed it, so it sees all your renamed quotas as a non existing quota. You will not get these errors with newly created quotas, but for quotas that you renamed/changed the name. Solution, simply copy all quota plan info and delete them. Then simply, Create new quotas with the same quota names, no need to change the name of the quotas if you don't want to. The error only occurs when you use quotas that have been renamed. These are the issues I ran into today when I were testing foxy cart paypal gateway for subscriptions, It actually made me think the subscription urls were not working. Hope this helps for many that are having issues with foxy cart subscription url links.
updated by @syrus: 03/31/14 04:12:39PM
brian
@brian
10 years ago
10,148 posts
When you change the name of a quota, it is changed in the DB - there's no where for it to "use" the old name - I'm suspecting you were looking at a cached page that had been setup with the old names.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
alt=
@syrus
10 years ago
44 posts
I had cleared all caches from admin area on site and cleared all browser caches numerous times and ran system checks. I even tested it in different browsers to make sure it wasn't a browser issue. Brian your are absolutely right the name did change in the database, i found this out during testing cause I was using the quota loop code to test the issue. when I used that code, the quotas did show the correct new renamed quotas. The problem was that when you clicked on any of the new renamed quotas, to add to the pop up shopping cart, it would give you the "Cart Validation Error: name". Also, during my testing when that kept happening, i went and tried it from the subscription page inside the members area within the foxy cart browser page where you cancel or upgrade your subscriptions and it gave the same errors there as well. The only way I was able to fix the error was to delete the renamed subscriptions and create it from new and not renamed.
brian
@brian
10 years ago
10,148 posts
OK - I will check this out and see if something has been overlooked.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
alt=
@syrus
10 years ago
44 posts
Ok no problem, thanks for listening.
brian
@brian
10 years ago
10,148 posts
I've tested this here and it is all working no problems:

{jrCore_include template="header.tpl"}
<a href="{jrFoxyCart_subscribe_url quota_id=7}">Subscribe to quota_id 7</a>
{jrCore_include template="footer.tpl"}

If you are seeing problems, make sure your API key is set properly in your FoxyCart config.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
alt=
@syrus
10 years ago
44 posts
No im not seeing any problems, My foxy cart is now live as of last night. My issue was resolved as I mentioned above, when i deleted all the quotas i renamed and creating new quotas with the same names. In order for you to reproduce the issue, you will need to rename a quota, then add that same renamed quota to the shopping cart and you should see the above error from the foxy shopping cart that says "Cart Validation Error: name".
brian
@brian
10 years ago
10,148 posts
syrus:
No im not seeing any problems, My foxy cart is now live as of last night. My issue was resolved as I mentioned above, when i deleted all the quotas i renamed and creating new quotas with the same names. In order for you to reproduce the issue, you will need to rename a quota, then add that same renamed quota to the shopping cart and you should see the above error from the foxy shopping cart that says "Cart Validation Error: name".

Sorry - I should have mentioned that I tested that as well, and there's no issue I can see. I even tested with everything cached and I still don't see an issue, so I'm not sure why it was a problem on your site but I can't reproduce it here.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
alt=
@syrus
10 years ago
44 posts
Okay. No problem, maybe it could have been my server at that time. Thanks and I appreciate everything.
brian
@brian
10 years ago
10,148 posts
No problem. Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
alt=
@syrus
10 years ago
44 posts
Wasn't sure if I should open a new topic. I have another issue relating to the same topic. My foxy cart popup check out page stop working all of sudden. It stop poping up when a user click to add something in the cart. I couldn't figure out why, when it was working fine the day before. It worked fine on my computer and mobile phone. So i did some research and remembered that the last thing i did was activated the Google Analytics module. So i went back and deactivated the Google Analytics module and the foxy cart pop page was working back normal. So everything is back working fine now with the foxy cart popup page. I just need to know how can I get my google tracking code back in my website without using the Google Analytics module since for some reason with my server its breaking the code for the foxy cart pop up page?
updated by @syrus: 02/28/14 10:15:54PM
brian
@brian
10 years ago
10,148 posts
We use the Google Analytics module together with FoxyCart here on Jamroom.net and I'm not aware of any issues.

Do you see an issue adding an item to the cart here on Jamroom.net?

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
alt=
@syrus
10 years ago
44 posts
No, but this is the issue with my server for some reason, I cant explain why honestly. I have activated and deactived this module many times and ran many test to make sure that the module is the issue and it is. If you go to my site, you will see my foxy cart is working fine, but if I activate the Google Analytic module, the Foxy Cart will no longer Pop Up, instead it will give you a regular wide stretched page. The only reason I knew where to look for this issue was because a lot of people had the same issue in foxy cart forum.

https://forum.foxycart.com/discussion/6334/add-to-cart-popup-not-working-opening-a-full-page-in-same-tab-instead/p1

There are many more issues like this if you google.
updated by @syrus: 03/01/14 11:28:38AM
brian
@brian
10 years ago
10,148 posts
Do you have a link to your page you can post so we can view it here?

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
alt=
@syrus
10 years ago
44 posts
If you can tell me how i can send you the link, i will be happy to. Just dont want to post the link to my site in the forum.
brian
@brian
10 years ago
10,148 posts
I see you're not a subscriber - I was going to ask you to post to the backstage forum (subscribers only). We typically do not offer email support to non subscribers, but go ahead and send your URL to me via email and I will check it out.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
alt=
@syrus
10 years ago
44 posts
Okay and thanks I really appreciate it. Do I send it to your name @ jamroomdotnet or support@jamroomdotnet ?
updated by @syrus: 03/01/14 11:41:06AM
brian
@brian
10 years ago
10,148 posts
support [at] jamroom [dot] net

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
alt=
@syrus
10 years ago
44 posts
Ok thanks, Just sent it.

Tags