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.

linking to paypal's cart problem

October 20, 2010 11:30am

Subscribe [3]
  • #1 / Oct 20, 2010 11:30am

    UI Studio

    18 posts

    Hello,

    I’m having a rough time linking to paypal’s cart for the site I’m working on.

    Seeing it did’nt work, I copied the code from a precedent site, but everything between my ee tags just disappear.

    So here’s the code :

    this is what I went with in the first place :

    {exp:simple_commerce:purchase entry_id="{entry_id}" success="site/success" cancel="site/index"}
      <li class="cart"><a >Panier</a></li>
    {/exp:simple_commerce:purchase}

    and the code I copied from the older website

    {exp:weblog:entries weblog="produits" limit="1"}
      {exp:simple_commerce:purchase entry_id="{entry_id}" success="site/success" country_code="FR"}
        <li class="cart"><a >Panier</a></li>
      {/exp:simple_commerce:purchase}
    {/exp:weblog:entries}

    Neither of them works…

    Could anybody help me with this, please ?

    Thanks

  • #2 / Oct 20, 2010 4:17pm

    Ingmar

    29245 posts

    What version and build of EE are you using? Any extensions?

  • #3 / Oct 20, 2010 7:06pm

    UI Studio

    18 posts

    The version is 1.6.7 and the only extension I’m using is simple commerce.

  • #4 / Oct 21, 2010 8:28am

    Sue Crocker

    26054 posts

    fdelaneau, try adding {entry_id} right before your simple commerce code to make sure EE is seeing the entry in question.

    You also may want to consider upgrading to the most recent version.

  • #5 / Oct 24, 2010 6:28pm

    UI Studio

    18 posts

    @Sue: Thanks for the advice I had a typo in the weblog, it helped a lot.

    So I solved the problem but it was a bit tricky since I had several products on the page and some of them where not to sale.

    In order to always display my “view cart” button I ended up with creating a phony entry and use its entry_id to make sure I always get an item on sale.

    If anyone can think of a nicer way, I’ll be glad to hear about it 😊

  • #6 / Oct 25, 2010 3:52pm

    Ingmar

    29245 posts

    That is certainly one way of doing it, yes. Thanks for sharing 😊 if there are any other issues, please don’t hesitate to post again as needed.

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

ExpressionEngine News!

#eecms, #events, #releases