Topic Resolution: Resolved
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1880
    nicdim
    Participant

    Hi there
    It seems that if I put a shortcode (for another plugin) in the long description of the product, when I add some pricing rules the resulting html from that shortcode is duplicated just above the pricing table.

    https://www.dropbox.com/s/mf4r5nwua60coba/Capture.JPG?dl=0
    The ‘unselect all’ button appearing in 2 places is the result of a shortcode in the main description only.
    If the pricing rules are removed then the button is no longer duplicated.

    Is this something you’re aware of? Also is there a workaround?
    Thanks
    Nic,

    #1881
    Soft79
    Keymaster

    Hi,

    No, I’m not aware if this issue.

    Maybe this happens because the shortcode is automatically displayed instead of the ‘excerpt’?

    Try entering an excerpt for the product.

    #1882
    nicdim
    Participant

    The Excerpt for the product in the image is “Photo Selection” which appears under the pricing table

    The extra button is being rendered inside the DIV with the class “soft79-single-product-discount-wrap”
    https://www.dropbox.com/s/m381ui6cycfhz9q/Capture2.JPG?dl=0

    #1883
    Soft79
    Keymaster

    What plugin generates the shortcode? What is the contents of the

    #1884
    nicdim
    Participant

    The product URL is: http://nicdim.dscloud.me/wordpress/product/photo-purchase/
    It’s an incredibly slow test server, but hopefully it loads for you.

    It’s a very simple home written plugin.
    The complete shortcode in the product description (in case there’s some conflict) is
    [flickr-woo textbox=”photo_ids” showunselectall=true ]

    the code behind rendering the button is very simple and just doing an echo

    if (isset($params[‘showunselectall’])){
    $WOO_SHOW_UNSELECTALL = true;
    echo ‘<button class=”btn btn-sm btn-primary image-unselectall”>Unselect all</button>’;
    }

    #1885
    Soft79
    Keymaster

    What is the post-type of the product? Is it possible that it is not a normal WooCommerce ‘product’?

    You can run this query to find out the post type:

    SELECT post_type FROM wp_posts WHERE post_id = 57;

    #1886
    nicdim
    Participant

    Hi.
    The post_type of ID 57 is: product

    There is nothing unusual about this product. Another plugin is inserting a text field but that’s rendered within the form element and stored in the db separately.

    Thanks
    Nic

    #1887
    Soft79
    Keymaster

    What happens if you replace the shortcode by another shortcode, like this:

    [recent_products per_page="4" columns="4"]

    #1888
    nicdim
    Participant

    I’ll do some more tests tomorrow,
    Thanks for your help and suggestions.

    Nic,

    #1890
    nicdim
    Participant

    Thanks for your help. the recent_products shortcode worked without a problem which helped me narrow it down to some badly written plugins.

    Thanks again for your help.
    Nic.

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.