• Resolved ronkarpel

    (@ronkarpel)


    What do I need to do to make this work?

    Previously, it added an icon of a shopping cart, but it was just a link to a ‘buy’ page in my own domain, not back to SmugMug

    Now that I have updated photonic to the latest version, enabling this, seems to not do anything.

    Thanks

    The page I need help with: [log in to see the link]

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Sayontan Sinha

    (@sayontan)

    Previously, it added an icon of a shopping cart, but it was just a link to a ‘buy’ page in my own domain, not back to SmugMug

    Now that I have updated photonic to the latest version, enabling this, seems to not do anything.

    The previous behaviour was a bug for a variety of reasons:

    • It created a PHP error log entry each time your page was visited because it was trying to access a non-existent URL
    • Photonic doesn’t have any integrated “Buy” functionality with native WP, so the “Buy” link is supposed to point to SmugMug, not a WP site.

    Now, based on my testing, the only time you will not see a “Buy” link is if you are trying to display a password-protected album – SmugMug doesn’t return a URL in such cases. Every other scenario seems to yield a Buy link. Are you seeing otherwise? Can you provide me with a link that I can see? The link you have provided above is invalid.

    I would also like to understand why you would want to see a Buy link that does nothing but takes you back to your page.

    Thread Starter ronkarpel

    (@ronkarpel)

    Please check https://karpel.org/wp2/try-testing/ although it also has a problem with some of the images being grayed out. This doesn’t happen when I just preview from the editor, so I didn’t noticed this until I published the page.

    Anyway, I have the “Show “Buy” link” turned on in the setting, but there is no link anywhere on the page. The previous version had a little cart icon at the end of the description in the lightbox, but it led to karpel.org/buy which doesn’t exist.

    What I want to see is a buy link for each image in the lightbox to Smugmug where the user can complete the purchase.

    Thanks,

    Ron

    Plugin Author Sayontan Sinha

    (@sayontan)

    Let’s first start with the simpler problem – you have JetPack’s lazy loading turned on. Can you switch it off, please? That is the one causing the greyed out images.

    Once you have done that please let me know and we can take a look at the Buy button.

    Thread Starter ronkarpel

    (@ronkarpel)

    Yap, that solved the grayed out images.

    Still no buy button anywhere

    Thanks

    Plugin Author Sayontan Sinha

    (@sayontan)

    OK – let’s now also remove JetPack’s image optimization. That is making a copy of all your SmugMug images on to JetPack’s CDN server – that is an unnecessary step because SmugMug is already serving things to you via a CDN.

    Thread Starter ronkarpel

    (@ronkarpel)

    OK, did that, I also am using a cache “WP fastest cache” do I need to disable that too?

    Plugin Author Sayontan Sinha

    (@sayontan)

    No, the caching plugin is fine.

    What is the shortcode you have in place? If you are using Gutenberg, click on the block and keep clicking “Next” till you get to the last screen – the shortcode equivalent to the block will show up at the bottom. If you are using the Classic Editor, switch to the “Text” mode and you will see the shortcode.

    Thread Starter ronkarpel

    (@ronkarpel)

    [gallery type='smugmug' view='images' nick_name='ronkarpel' album='Jv7jsW' columns=3]

    I just inserted this in a paragraph block. I never figured out how to use photonic from a gallery block. It just get stuck when pressing the “insert” button

    Plugin Author Sayontan Sinha

    (@sayontan)

    I just inserted this in a paragraph block. I never figured out how to use photonic from a gallery block. It just get stuck when pressing the “insert” button

    That would be indicative of a conflict.

    Anyway, try changing the shortcode to this:

    [gallery type='smugmug' view='album' nick_name='ronkarpel' album='Jv7jsW' columns=3]

    When you set view='images' on an album it triggers an image search and for some reason SmugMug does not provide a SmugMug page URL for such cases. Changing it to view='album' seems to get this working, though.

    Thread Starter ronkarpel

    (@ronkarpel)

    Changing view=’album’ fixed it, thank you.

    I guess I am not certain about the difference with view=’images’. I thought that view=’album’ will display only the cover image and switch to Smugmug when I click it. I was wrong. Anyway, view=’album’ puts in a link to the appropriate shopping page on SmugMug which is what I expect, and that is great.

    As for the gallery block editor getting stuck, I have the following plug-ins
    Akismet Anti-Spam
    Enhanced Media Library
    Jetpack by WordPress.com
    PanoPress
    Photonic Gallery
    VaultPress
    WP Fastest Cache
    I tied to turn off WP Fastest Cache, PanoPress and Enhanced Media Library but it did not fix the problem. The other plugins I think are too important not to have. Anyway, I can live with editing shortcode by hand.

    Thanks,

    Ron

    Plugin Author Sayontan Sinha

    (@sayontan)

    I thought that view=’album’ will display only the cover image and switch to Smugmug when I click it.

    Almost … view='albums' does that (note the plural albums).

    Do you also have Classic Editor installed? If so, here is what you can try – switch to the Classic Editor and try using the “Add / Edit Photonic Gallery” button there. This button works both with the Visual Editor (there may be some conflicts with other plugins, but it generally works fine), or the Text Editor (there are no known conflicts there). Using the button will give you the same interactive shortcode builder and you don’t have to edit your shortcodes by hand.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Smugmug “buy” botton’ is closed to new replies.