Options

Going directly to Buy page from iPhone (Safari)

phsphs Registered Users Posts: 7 Beginner grinner
I am writing an iPhone app for a client who is a SmugMug Pro subscriber and have been using the http://.../buy/... URLto display the Buy page for a photo. Now when trying to display that URL (through same code used by Safari browser), it brings up a mobile page for the photo instead of its Buy popup page. If I select the Full Site link, the Buy page does show up and will do so from then on. Is there a way I can bypass the mobile page and go directly to the full site Buy page?

Comments

  • Options
    MSkaffariMSkaffari Registered Users Posts: 147 Major grins
    edited October 21, 2011
    phs wrote: »
    I am writing an iPhone app for a client who is a SmugMug Pro subscriber and have been using the http://.../buy/... URLto display the Buy page for a photo. Now when trying to display that URL (through same code used by Safari browser), it brings up a mobile page for the photo instead of its Buy popup page. If I select the Full Site link, the Buy page does show up and will do so from then on. Is there a way I can bypass the mobile page and go directly to the full site Buy page?

    This is not officially supported but you can try the following.

    Send the user to the following URL; [smugmugsite]/m/opt/out/?goTo=[buyURL]

    This should cookie the device for full site and re-direct them to the desired page. We are also working on further improvements to the mobile experience. Stay tuned.
  • Options
    phsphs Registered Users Posts: 7 Beginner grinner
    edited October 22, 2011
    MSkaffari wrote: »
    This is not officially supported but you can try the following.

    Send the user to the following URL; [smugmugsite]/m/opt/out/?goTo=[buyURL]

    This should cookie the device for full site and re-direct them to the desired page. We are also working on further improvements to the mobile experience. Stay tuned.

    I tried appending the string above to the URL I have been using and it does not appear to fix the problem. I also tried using alternate URLs in place of the [smugmugsite] in the above string and cannot get a combination that appears to work. Do you have an alternate suggestion?

    Thanks, phs
  • Options
    MSkaffariMSkaffari Registered Users Posts: 147 Major grins
    edited October 24, 2011
    phs wrote: »
    I tried appending the string above to the URL I have been using and it does not appear to fix the problem. I also tried using alternate URLs in place of the [smugmugsite] in the above string and cannot get a combination that appears to work. Do you have an alternate suggestion?

    Thanks, phs

    This works for me. Maybe I didn't explain well enough.

    You should replace the content between brackets with the coresponding URLs.

    [smugmugsite]/m/opt/out/?goTo=[buyURL]

    For example;
    http://msphoto.smugmug.com/m/opt/out/?goTo=http://msphoto.smugmug.com/buy/15839016_vb42kN/1249692683_bGztj/
  • Options
    phsphs Registered Users Posts: 7 Beginner grinner
    edited October 25, 2011
    MSkaffari wrote: »
    This works for me. Maybe I didn't explain well enough.

    You should replace the content between brackets with the coresponding URLs.

    [smugmugsite]/m/opt/out/?goTo=[buyURL]

    For example;
    http://msphoto.smugmug.com/m/opt/out/?goTo=http://msphoto.smugmug.com/buy/15839016_vb42kN/1249692683_bGztj/

    Thanks for the clarification! That works for me now.
  • Options
    phsphs Registered Users Posts: 7 Beginner grinner
    edited October 31, 2011
    I have found that this fix works properly on my iPhone 4 (iOS 5.0) and iOS Simulator (iOS 4.2 & 5.0), but not on my iPod touch 2nd generation (iOS 4.2.1). On the iPod touch 2nd generation, it shows the selected photo on the SmugMug site and not its Buy pop-up page. Is there a backwards compatibility issue? Thanks, phs
Sign In or Register to comment.