Foxy Cart Site Integration - Page Code

fanclipz
@fanclipz
9 years ago
5 posts
Hey guys,

Having trouble getting my Foxy Cart set up to work. Read over the JR / Foxy cart documentation and forums. Tried many different configurations and options. Still I am at a loss.

So far this is where I am. I have 4-subscriptions set up on my Fan Clipz site - http://www.fanclipz.com, the Foxy Cart site, and the Pay Pal site.

Fan Clipz 1-Year Subscription
Fan Clipz 6-Month Subscription
Fan Clipz 3- Month Subscription
Fan Clipz Monthly Subscription

I can hit my Cart Icon at the top of the main Fan Clipz page – http://www.fanclipz.com and it takes me to my Foxy Cart page - https://fanclipz.foxycart.com/cart?cart=view – it is empty. I know that Foxy Cart and Fan Clipz are communicating. Set up on both sites seems to be right.

I have made a subscription page template which shows up under ‘Pages’ on my Admin profile with Page Creator - http://fanclipz.com/admin/page . I had put the Pay Pal code into this page showing a Subscription Button – however, the link takes me to my Pay Pal account front page. I’ve also tried the FC cart code in this page (both cart and cart include code) but it only showed HTML code and not any buttons, links, or drop boxes to items. I have pasted code from the JR Support documentation area but it also just shows up as HTML code. Not sure what code I need to use for the links PP code or FC code. Or, do I need to write my own HTML code? Have nothing but a title text there now.

From what I understand, I need a page with my Subscriptions listed that links to the Foxy Cart page with the chosen Subscription items listed - https://fanclipz.foxycart.com/cart?cart=view . I have made the Subscription.tpl file which is set to ‘Show on Profile Only’ – not ‘Show On Main’. I am not sure how to get this Subscription.tpl file into the Flashback Skins Template listing…it does not show up. The actual Subscription Page has a URL of - http://fanclipz.com/admin/page/6/fan-clipz-subscriptions .

Here are questions which may help me complete this…HA!

1 – What HTML code do I use in the Subscription.tpl file, FC or PP?
2 – I edit it in the Flashback Skin setting – does it automatically place itself in the Flashback Skin Template List or do I need to put it there? How do I do that?
3 - How do I link this Subscription Page to the Front Page of Fan Clipz? Is this the ‘index.tpl’ in the Flashback Skin directory? I have tried with the Blog section but didn’t work. Can I use a button in the Page Header List of Links? Can I just add a link, button or text?

One note: I installed the Site Builder and tried it with that module but it totally took away all of the HEADER Listings on top, i.e.…Home – Community – Lists – etc.. Going to need to practice with Site Builder to become proficient but can’t spend the time right now with it.

Please let me know what I need to get this cart up and running. Looking forward to using it. Have a great weekend! Thanks…Marty

updated by @fanclipz: 09/04/16 07:58:31PM
michael
@michael
9 years ago
7,799 posts
You're not going to be able to put smarty code into one of the pages created on a profile, it will need to go into a template.

The code you want to add looks like this:
<a href="{jrFoxyCart_subscribe_url quota_id=3}">Monthly Subscription @ $29</a>

Where that quota_id=3 should be replaced with whichever quota you want them to signup to, so for you it will probably be something like:
<a href="{jrFoxyCart_subscribe_url quota_id=2}">Fan Clipz 1-Year Subscription @ $29</a>
<a href="{jrFoxyCart_subscribe_url quota_id=3}">Fan Clipz 6-Month Subscription @ $29</a>
<a href="{jrFoxyCart_subscribe_url quota_id=4}">Fan Clipz 3- Month Subscription @ $29</a>
<a href="{jrFoxyCart_subscribe_url quota_id=5}">Fan Clipz Monthly Subscription @ $29</a>

Depending on the order in which you created the different quotas. Just get the number of the quota aligned with the quota its for.

If you wanted a loop to do all the quotas, then this one from the docs works:
{jrFoxyCart_subscribable_quotas assign="quotas_that_allow_subscriptions"}
{foreach $quotas_that_allow_subscriptions as $quota_id => $_q}
    <a href="{jrFoxyCart_subscribe_url quota_id=$quota_id}">Subscribe Now ({$_q.quota_jrProfile_name})</a> <br>
{/foreach}
Its the same thing, just lists all the possible quotas.

That needs to go into a template file, so either via Site Builder if you have that enabled:

Docs: "Site Builder"
https://www.jamroom.net/the-jamroom-network/documentation/site-builder

Or you can edit an existing skin template:
ACP -> SKINS -> FLASHBACK -> TEMPLATES -> (choose a location for it) -> MODIFY (the index.tpl is the front page.)

Docs: "Using the Template Editor"
https://www.jamroom.net/the-jamroom-network/documentation/development/3183/using-the-template-editor

Quote: One note: I installed the Site Builder and tried it with that module but it totally took away all of the HEADER Listings on top, i.e.…Home – Community – Lists – etc.. Going to need to practice with Site Builder to become proficient but can’t spend the time right now with it.
Yes it will do that, but the pages are still there, so you can use the MENU EDITOR to add those url's back in to the new menu if you want to keep using the pages.
fanclipz
@fanclipz
9 years ago
5 posts
Michael,

Thanks for the very quick response and information...appreciated. I had seen the codes you spoke of but couldn't figure where they went and how to get them there...Ha! I will try this out soon as I can...in video sessions today. Will let you know how it comes out...Ha! Thanks again. My best...Marty
fanclipz
@fanclipz
9 years ago
5 posts
Hope all is well with oyu this Sunday. Things are going good because of your guidance....even began using and slowly learning Site Builder...Ha! I have got the Subscriptions working with the Foxy Cart - however, I get the following in the Cart when I click each link:

ERROR: "This product could not be added because it does not contain an expires property."

I went back and checked my Subscription Quotas and I do have a Length Period set on each. Any Ideas? Will keep working on it...Ha! Thanks!
brian
@brian
9 years ago
10,149 posts
fanclipz:
ERROR: "This product could not be added because it does not contain an expires property."

You see this error in the FoxyCart cart? This error does not come from Jamroom - I would recommend contacting FoxyCart and see if they can let you know why you're seeing this.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
fanclipz
@fanclipz
9 years ago
5 posts
Thanks so much Brian!!! Michael's advice has really helped me to get ahead of this thing. Will let you know how it turns out. Appreciate you guys!
fanclipz
@fanclipz
9 years ago
5 posts
Just about got everything on the Foxy Cart going. I've got the Foxy Cart working from the User account Control Panel under Subscriptions. However, the links on the Subscription page I built with Site Builder are giving me a bit of a problem. I write this HTML code in the HTML Editor:


Fan Clipz 1-Year Subscription @ $120
Includes:
Website / Site Control Panel / 24/7 Audio-Video-Photo Access /  
Blog / Event Calendar / 



But on the Subscription page the links come out with double domain entries, 'http://fanclipz.com/http://fanclipz.foxycart.com/' in the code - like this:

http://fanclipz.com/http://fanclipz.foxycart.com/cart?code%7C%7C5b9811c956db696879e2b5a6d67339f6e0a6ce50065eda0ab96dd5838b358cfe=subscription_purchase&quota_id%7C%7Cd0264bcb351a1adda7884574822c096f560f850a61c32d133db04f7caadc9483=10&name%7C%7C763db430cd17e4d6c31249c3384d840567e828c7c0ea5403c9a6fecbb215db2f=Fan+Clipz+1-Year+Subscription&sub_frequency%7C%7Cb11548b0a1d5c72475a84832062188615a830ec7b23f82bea7094156d52a41e2=1y&price%7C%7C88f0cc092b026fcca6158078a686a83f54ecbd0febcb1a1799eefa50ac6bea24=120.00&quantity_max%7C%7C8464373015aeb04709eaa6c2151f16cc7c142d4de2437a3d1cac8af01e1b7d23=1&h:user_id=1&h:profile_id=1&empty=true

Kind of lost...Ha! Tried to find where to change parameters in the ACP and re-writing the code but couldn't figure it out. Please point me in the right direction. Thanks - Appreciated. Have a great Monday!
michael
@michael
9 years ago
7,799 posts
My guess would be check the settings at:
ACP -> ECOMMERCE -> FOXYCART -> GLOBAL CONFIG.

especially the values at:
* store sub domain url
* store sub domain.

Check the help ? for info on each.

--edit--
if that all looks right, paste the code you are using in here for us to see.
updated by @michael: 06/06/16 12:42:53AM

Tags