Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #982462

    I am trying to add a secure seal image after the add to cart button. I have a code but the issue I’m having is on some single product pages the image is duplicating, but not all….

    On product pages where there are variations the Add To Cart is in a boxed area wit the variations. On these pages, anything added after Add To Cart IS duplicating.

    On product pages where there are no variations, the add to cart has no box around it and anything placed after Add To Cart IS NOT duplicating.

    I’ve placed examples below.

    #982566

    Hey Rgrant74,
    Can you please include a admin login in the private content area, the pages you linked to only show the “coming soon” image.
    Also are you adding the image as an element in the editor, or as code in the functions.php?

    Best regards,
    Mike

    #982590

    Sorry. It’s below

    #982602

    Hi,
    I added this css to WordPress > Customize > Additional CSS

    .variations_form .second_content {
    display: none;
    }
    .variations_form .woocommerce-variation-add-to-cart .second_content {
    display: block !important;
    }

    While I did have to clear your caching plugin several times, for it to finally clear, it is now working.
    Please clear your browser cache, maybe more than once, and check.

    Best regards,
    Mike

    #982632

    Thanks so much Mike! Yes I have to clear my cashew several times ti see changes and even then sometimes I just ave to wait till the next day. I’m not sure why. But I really appreciate your help here!

    #982641

    Hi,

    Thanks for the feedback, please let us know if you should need any further help on the topic.

    Regards,
    Rikard

    #984272

    Hi, Could this have affected my Size Chart field? I’m just noticing that I had a size chart field tab beside reviews and now it is not showing. And the field in not available in the Edit Product screen

    #984416

    Hi,
    I believe that this function in your functions.php is removing it, do you remember adding this?

    add_filter( 'woocommerce_product_tabs', 'av_remove_product_tabs', 98, 1 );
    function av_remove_product_tabs( $tabs ) {
    	unset( $tabs['additional_information'] );
    	return $tabs;
    }

    Best regards,
    Mike

    #984426

    Hi Mike, Yes There used to be 3 tabs, additional information, size and reviews. I used that code to get rid of additional informations I added that some time ago but there was still a separate size chart tab until recently.

    #984429

    Hi,
    Please try removing this to test.
    When I logged in I believe I saw a admin message that said something like “Thank you for updating woocommerce
    did you recently update woocommerce?

    Best regards,
    Mike

    #984435

    I’ve removed the code and the Additional Information tab came back but no Size tab. Strange. Maybe there was a Woo update. Is there any code I can use to add it back as a custom tab?

    Because the sizes are not consistent with each item it’s imperative that I detail the size chart. For new items I’ve added recently, I’m just pasting it in the description but it was handy to have it below in a different tab. As an example the Blazer category, they all had content in tat tab and now it’s all gone.

    • This reply was modified 5 years, 10 months ago by Rgrant74.
    #984466

    No worries, I’m repasting all of them in the description box and that works fine. The thread can be closed and thanks again for all of your help :)

    #984537

    Hi,

    Great, thanks for the feedback. I’ll close this thread for now then, please open a new thread if you should have any further questions or problems.

    Best regards,
    Rikard

Viewing 13 posts - 1 through 13 (of 13 total)
  • The topic ‘Duplicating Content’ is closed to new replies.