• Resolved edwardsmark

    (@edwardsmark)


    hello –

    using [wp_cart_display_product] shortcode appears to be the best way to only have price in one place.

    i am trying to determine if there is a way to suppress the mandatory thumbnail. according to SO, this should have worked:
    [wp_cart_display_product thumbnail="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs="

    but it did not. using thumbnail='about:blank' didnt work either.

    is there a way to not have a thumbnail, or somehow disable it?

    EDIT: i realize i can probably just create a tiny transparent image, but was hoping for something a little better.
    EDIT 2: creating a 1×1 transparent image worked. but still seems sort of clumsy to do this.

    • This topic was modified 7 months, 3 weeks ago by edwardsmark.
    • This topic was modified 7 months, 3 weeks ago by edwardsmark.
    • This topic was modified 7 months, 3 weeks ago by edwardsmark.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor mbrsolution

    (@mbrsolution)

    Thank you for reaching out to us. Please try the following CSS code. Let me know if this works for you.

    .wp_cart_product_thumbnail {
    display: none;
    }

    Kind regards.

    Thread Starter edwardsmark

    (@edwardsmark)

    only issue there is there are sometimes i want thumbnails to appear, and other times i dont. my transparent 1×1 pixel seems to work ok, but its not an optimium solution.

    its a bit surprising that thumbnail='about:blank' or even thumbnail='does not work. 😟

    Plugin Contributor mbrsolution

    (@mbrsolution)

    I understand your situation. I have submitted a message to the developers to investigate further your request.

    Kind regards.

    Thread Starter edwardsmark

    (@edwardsmark)

    >>> I understand your situation. I have submitted a message to the developers to investigate further your request.

    please include this comment in the code:

    this suggestion was made by my new friend and loyal fan, marky...!

    EDIT: you gave me an idea:

    img[src = "about: blank"]{
    display: none;
    }
    • This reply was modified 7 months, 3 weeks ago by edwardsmark.
    Thread Starter edwardsmark

    (@edwardsmark)

    this works for me:

    img[src$="about:blank"] {
    display: none;
    }

    thumbnail="//about:blank"

    Plugin Author mra13

    (@mra13)

    Thank you. In the new version we have made the thumbnail parameter optional for the product box. That should solve this.

    Thread Starter edwardsmark

    (@edwardsmark)

    awwwww and this is after i came up with a positively brilliant workaround solution?? πŸ˜‚πŸ€£πŸ˜‚πŸ€£

    so i take it we can just omit the thumbnail option and will not see an error?

    • This reply was modified 7 months, 3 weeks ago by edwardsmark.
Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘suppressing the mandatory thumbnail’ is closed to new replies.