Catalog page in mobile version - by misha

This topic has 6 replies, 3 voices, and was last updated 3 years, 3 months ago ago by Olga Barlow

  • Avatar: misha
    misha
    Participant
    January 17, 2021 at 14:18

    Здравствуйте,

    Возможно в теме сделать разное отображение каталога в версии для компьютера и в мобильной версии?

    Я бы хотел убрать вариацию товара и оставить только кнопку “Выбрать” в мобильной версии сайта.

    Так в версии для компьютера: https://prnt.sc/x069p2
    Так в мобильной версии: https://prnt.sc/x05i4m

    Спасибо!

    5 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    January 17, 2021 at 15:21

    Hello,

    Provide URL of page where code from this topic doesn’t work – https://www.8theme.com/topic/variations-swatches-in-mobile/#post-267792

    Regards

    Avatar: misha
    misha
    Participant
    January 17, 2021 at 17:20

    Спасибо за Ваш ответ!

    Данный код скрывает вариацию, но оставляет колличество и кнопку добавть в корзину. При изменении колличества и нажатии кнопки выходит ошибка.
    Я понимаю, что не выбрана вариация (которая скрыта).

    Спасибо

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    January 18, 2021 at 13:02

    Hello,

    Go to Theme Options > WooCommerce > Shop > Product styles > disable Add To Cart With Quantity option.

    Regards

    Avatar: misha
    misha
    Participant
    January 18, 2021 at 16:52

    Здравствуйте,

    Отключение этой функции, отключает и в версии для компьютера и в мобильной версии. Смотрите пожалуйста мое первое сообщение.

    Спасибо

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    January 19, 2021 at 11:01

    Hello,

    You will still have the Add to cart button but without the q-ty input. There is no way to show the q-ty and hide variations because the system does not allow to add to cart if the variation is not chosen, if you change the q-ty some variation may not have 2 or 3 products in stock for this variation and you’ll get the error. So, it’s not a good idea to hide variations for the mobile only. Either disable it for both using Theme Options > WooCommerce > Shop elements > Variation swatches > display on grid > off. Or show it for both.

    Regards

  • Viewing 6 results - 1 through 6 (of 6 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.