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.

Update to latest version doesn't register purchases

October 01, 2012 5:18am

Subscribe [2]
  • #1 / Oct 01, 2012 5:18am

    mediavilla

    79 posts

    Hi,

    I updated a site from EE 1.6.X to the latest version and everything seemed fine, some pages required a few tweaks but apart from that was pretty straight forward.

    The site uses the Simple Commerce module and the Paypal gateway seemed OK. The user and the administrator receive a confirmation email after the transaction is completed. However the purchase is not registered in the system, when we look at the purchases in the simple commerce module the records are not there.

    The users should go to their account to download the purchased items, previous purchases can be seen there but the new ones don’t show up.

    Do you guys have any idea of why could this be happening?

    Many thanks,

    Juan

  • #2 / Oct 01, 2012 6:06pm

    mediavilla

    79 posts

    I’ve been trying to solve this for some time and is just keeps getting weirder and weirder.

    I use the code below for all the items on the same page and this code was working just fine with the previous version but for some reason now it doesn’t work for some items (I haven’t identified a pattern yet).

    Here is the code:

    {exp:channel:entries channel="icebreaker" orderby="date"}
    {exp:simple_commerce:purchase entry_id="{entry_id}" success="bl/your_account" cancel="site/index"}
    
    <div class="shop-section">
     <h3>{title}</h3>
    
    <p> <div class="buy"><br />
      {if logged_in}<br />
      <a href="#%22&gtstrong$">strong>Click here to preview.</strong></a></p>
    
    <p>  <a href="http://{site_url}bl/login">To buy now for ${item_sale_price},  please login.</a><br />
      {/if}<br />
     </div></p>
    
    <p></div>  </p>
    
    <p>{/exp:simple_commerce:purchase} <br />
    {/exp:channel:entries}

    Any help would be greatly appreciated.

    Cheers,

    Juan

  • #3 / Oct 01, 2012 6:24pm

    mediavilla

    79 posts

    OK, so I found the pattern, because the title of the articles are in Spanish. Only those with accents are not registering the purchase.

    I’ll try to encrypt the links to check if that helps…

  • #4 / Oct 02, 2012 11:10am

    Shane Eckert

    7174 posts

    Hello mediavilla,

    Please keep us posted. Would love to know how this is going.

    Thank you,

  • #5 / Oct 02, 2012 6:53pm

    mediavilla

    79 posts

    Hi Shane,

    Unfortunately looks like a bug to me.

    I updated my Paypal certificate and everything to make sure is all fine and still the same problem.

    Basically, products that contain accents on the title are not added to the purchases.

    For instance, this product: “Los pájaros” doesn’t work, but if we try another one without the accent (”á”) it does work.

    Update: I found this on the changelog (EE 1.x)

    “Modified Simple Commerce to work around a PayPal limitation allowing accented characters to display properly in the PayPal shopping cart (unencrypted purchases only)”

    So I’m wondering if for some reason that fix hasn’t been incorporated to 2.5.3

    Can you guys take a look at it?

    Cheers,

    Juan

  • #6 / Oct 03, 2012 3:25pm

    Robin Sowell

    13255 posts

    Hi Juan- it does indeed look like a bug.  I appreciate all of the work you did tracking it down!  I’ve entered it into the bug tracker here: Simple Commerce payment recording fails with accented characters….  I’ll update there as soon as I’ve got a temp fix for you.  I know why it’s failing, so just a matter of nailing down the fix.

  • #7 / Oct 04, 2012 5:15am

    mediavilla

    79 posts

    Hi Robin,

    Thanks for letting me know.

    Looking forward to hearing from you soon.

    Juan

  • #8 / Oct 05, 2012 4:24pm

    Shane Eckert

    7174 posts

    Hey Juan,

    I know Robin is really busy this week, but she should be updating the bug tracker soon.

    Have a great weekend.

    Cheers,

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

ExpressionEngine News!

#eecms, #events, #releases