• Resolved markr101

    (@markr101)


    Hi,

    First of all, sorry I can’t link the appropriate page, it’s behind a log-in ‘wall, but hopefully, I’ll explain it well enough…

    First, a caveat;

    This IS related to a plugin (and woo commerce) and I have explored the options through the Author’s support, but the solution more than likely, lies in a core WP/woo/database hack.

    The back story

    I’m selling digital codes through Woo (think X-Box live for 2 weeks etc etc). The plug-in I’m using is splendid apart from one thing… So, the native inventory management system gives me the ability to upload images, as well as me manually inputting a code (it’s pretty common in my industry to sell a photo of a digital access code because the publisher occasionally distributes them as a physical product – like a gift card for example).

    So, everything is working pretty well, but on the client-side order details page, the system shows a non clickable URL, rather than a (preferable) thumbnail or clickable URL (which I could live with).

    In a nutshell…

    The plugin allows me to upload an image via a simple form action (totally standard CMS event), but at the front end, the ‘image’ is only being pulled out of the database as a non-clickable URL.

    What I’m hoping to achieve…

    I can live with not having a clickable thumbnail, but at the very least I’d like the URL to be clickable (to save my clients having to copy and paste it).

    So I was wondering if I could somehow change the formatting attributes of the pertinent MySQL column, so it’s identified as a URL (just guessing here), or do something with the front end TD tag?

    NOTE** I’ve tried using the Auto-Hyperlink plugin (which I thought was the answer to my prayers), but alas, it didn’t work.

    In short…

    How do I define output-content as a URL? (no complex filters or arguments necessary).

    Thanks for sticking with me, and if you could help, that would be awesome.

Viewing 13 replies - 1 through 13 (of 13 total)
  • If I understand you correct you want the main image for the product to go to a custom URL yes?

    Thread Starter markr101

    (@markr101)

    Hey Stef.

    The way the plugin works is like this…

    After the customer has made a purchase, their ‘license code’ (whether it’s an image or just text) is shown in a row on the standard ‘order details’ page.

    In the instances that I use an image, the ‘details’ show a non-clickable URL (plain text) to the image. I’d just like to make it clickable, that’s it.

    Hope this helps, and sorry if I over complicated my explanation – I was probably trying too hard to be clear.

    • This reply was modified 4 years, 11 months ago by markr101.

    Oh got you. LOL hey the more information I always say. Yes, give me a second to think. I rarely use that virtual product download method anymore.

    However, I can say that you will have to customize that template for sure and add a way in the backend to say image or url.

    I’ll have to think on this one for awhile.

    Thread Starter markr101

    (@markr101)

    This might help

    Below is a screenshot of the order details page… The first 3 fields are generated by the plugin. ‘#5’ is the name of the field where I uploaded the image, but as you can see, it’s being displayed as plain text.

    Thread Starter markr101

    (@markr101)

    I don’t seem to be able to posts links, I think Im too much of a noob

    screenshots can simply be added by using something like imgur and or writing the html here for an image, or just paste the url here

    embed
    <img src="your url here" />

    • This reply was modified 4 years, 11 months ago by Stef.
    Thread Starter markr101

    (@markr101)

    Thread Starter markr101

    (@markr101)

    Thread Starter markr101

    (@markr101)

    LOL, nearly

    yah you forgot to close it. that’s alright

    Thread Starter markr101

    (@markr101)

    Any ideas?

    oh no. this is definitely going to be a custom deal. gonna have to think about it. you may want to look at https://woocommerce.com/experts/

    Doug – a11n

    (@dougaitken)

    Automattic Happiness Engineer

    Hey @markr101

    Hope you got some help with this one!

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

    Thanks,

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Customising ‘order details’ content’ is closed to new replies.