Duplicating Images in Cart – Exact same Div ID.

This topic has 5 replies, 2 voices, and was last updated 8 months, 1 weeks ago ago by Rose Tyler

  • Avatar: Matt S
    Matt S
    Participant
    August 22, 2023 at 23:57

    Hi, we’re using NBdesigner from CMsmart with woocommerce. The latest update makes the design image duplicate with an exact same div ID within the cart under (class=”cart-item-details”). When I switch to default theme, this no longer happens.

    Please, contact administrator
    for this information.
    4 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    August 23, 2023 at 09:57

    Hello,

    Thank you for contacting us and for using XStore.

    Please note that we do not give a guaranty for full theme compatibility with all existing 3rd party plugins. Sometimes, not always, you need additionally customize the theme or plugin to make them work together. Unfortunately, it’s not possible for the author to make the theme compatible with all the existing plugins and additional customization is outside the scope of our basic support.

    About your request, do you want to disable all cart-item-details ? The next custom CSS code can be used:

    .woocommerce-cart .cart-item-details {
        display: none;
    }

    If this is not what you are looking for, please describe the desired result in more detail with screenshots for a better understanding.

    Use Lightshot screenshot or Gyazo tool to make screenshots and share the links here, or you can use a file-sharing service such as WeTransfer https://wetransfer.com/ to upload ready photos there and provide us with URLs.

    Kind Regards,
    8theme team

    Avatar: Matt S
    Matt S
    Participant
    August 23, 2023 at 11:36

    The issue with that solution you have provided is that it will delete ALL the cart-item-details. The issue that is happening is that there are multiple div ID’s being created with the same ID and content (the design preview image) rather than a single one.
    Like I mentioned, this doesn’t happen with the other standard themes and it also doesn’t happen in Xstore theme on the checkout page, these images are displayed correctly there.

    Please contact administrator
    for this information.
    Avatar: Matt S
    Matt S
    Participant
    August 23, 2023 at 11:44

    I have currently have to create a plugin that runs a jquery script that removes duplicate DIV ID’s on the basket page, but this is obviously not ideal.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    August 23, 2023 at 15:26

    Hello,

    Please try to use the next custom CSS code:

    .nbo-edit-option-cart ~ .nbo-edit-option-cart, .nbo-edit-option-cart + br {
        display: none;
    }

    Kind Regards,
    8theme team

  • Viewing 5 results - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.