ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Problem with simplecommerce tag or something else?

November 07, 2007 2:23pm

Subscribe [1]
  • #1 / Nov 07, 2007 2:23pm

    johnhopkins

    9 posts

    Ok, I built an EE site for a client earlier this year. Before it was ready to roll, the client and I parted ways. It was working and now it isn’t… at least part of it anyway.

    Here is the code that seems to be having an issue

    {if group_id == '5'}
    <!--  -------------------------if they are members but haven't paid, they are presented with the payment link -->
    
    <div class="purchase">
    {exp:weblog:entries orderby="date" limit="1" weblog="{my_weblog}" username="CURRENT_USER"}
    {exp:simple_commerce:purchase entry_id="{entry_id}" success="index.php/site/my_videos" cancel="site/index"}
    
    <h1>Thank you for allowing me to help you improve your game!</h1>
    Please consider signing up for one year of access to the adamsmithgolf.com. Access will provide you with a personalized page, unique to you. After each recorded session, I will upload a video of a portion of our session and add some helpful comments.
    One year of access to your personal page costs only <strong>${item_sale_price}</strong> USD.
    Once you have paid, any and all videos will be immediately available for you to view!
    
    <div id="buynow"><h2></h2></div>
    
    {/exp:simple_commerce:purchase}
    {/exp:weblog:entries} 
    </div>
    
    {if:elseif group_id == '6'}
    <!-- -------------------------if they are members that have paid, they will see their videos and the appropriate comments -->

    When someone logs in and meets the group id 5 condition, they should get a link to pay for the service. Instead, now, the entire contents of the purchase div is empty, the rendered code leaves a gap there where the EE generated code should be.

    If any of the other conditionals are met, it works.

  • #2 / Nov 07, 2007 2:26pm

    Lisa Wess

    20502 posts

    A few questions first:

    1) What version of EE?
    2) What build of EE?

    Also, have you tried setting up a new template, totally blank, and placing just the weblog entries tag (and contained commerce tag) into it to see if it works?

  • #3 / Nov 07, 2007 2:48pm

    johnhopkins

    9 posts

    v1.52 and Build:  20070404

    None of that has changed since it was working.

    I tried stripping out everything, but no dice. Exact same problem.

  • #4 / Nov 07, 2007 3:08pm

    Lisa Wess

    20502 posts

    What about if you use just the weblog entries tag.  Does it return an entry?

    Also, this site really needs to be updated to rule out anything that has since been fixed.

  • #5 / Nov 07, 2007 3:25pm

    johnhopkins

    9 posts

    Upgrading the site is up to them, I’m no longer billable on this one, just trying to help.

  • #6 / Nov 07, 2007 3:25pm

    Lisa Wess

    20502 posts

    Is the item in question added properly as an item in the simple commerce module?

  • #7 / Nov 07, 2007 3:29pm

    johnhopkins

    9 posts

    when I remove the simplecommerce code, it gives me the correct content, duplicated 8 times.

  • #8 / Nov 07, 2007 3:36pm

    Lisa Wess

    20502 posts

    Hrm? You have a limit of 1 there. So it should only show the entry once.  In any case, did you check the simple commerce module to make sure that the entry is added as an item?

  • #9 / Nov 07, 2007 3:38pm

    johnhopkins

    9 posts

    Is the item in question added properly as an item in the simple commerce module?

    It has been so long since I did this and it is the only simplecommerce thing I have done. I see the item in the module, but I can’t remember how the code on the page connects to the item. It is tied to a blog post, yes?

    If so, I’m betting they deleted it.

  • #10 / Nov 07, 2007 3:46pm

    johnhopkins

    9 posts

    nope, the membership entry is still there

  • #11 / Nov 07, 2007 3:48pm

    Lisa Wess

    20502 posts

    At this point, the installation really needs to be updated to do any further troubleshooting.  Thank you. =)

  • #12 / Nov 07, 2007 3:53pm

    johnhopkins

    9 posts

    Thanks for your help Lisa. I’ll recommend they update it.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases