answers.tilda.cc/en/a/custom-code-cart-multiple-number-en

Preview meta tags from the answers.tilda.cc website.

Linked Hostnames

15

Search Engine Appearance

Google

https://answers.tilda.cc/en/a/custom-code-cart-multiple-number-en

How do I set the number of products to a multiple of 5, 10, 100, etc.?

Examples below require knowledge of Javascript and CSS. Tilda Customer Support does not assist in code-related questions.To change the behavior of the “plus” and “minus” buttons in the shopping cart, you need to add a T123 block from the “Other’ category and insert the following code:var newMultipleNumber = 100; /* вместо 100 укажите нужное вам число */function tcart__product__plus(t) { var r = t.closest(".t706__product"), o = r.attr("data-cart-product-i"); window.tcart.products[o].quantity += (window.tcart.products[o].quantity % newMultipleNumber > 0 ? newMultipleNumber - window.tcart.products[o].quantity : newMultipleNumber); window.tcart.products[o].amount = window.tcart.products[o].price * window.tcart.products[o].quantity; window.tcart.products[o].amount = tcart__roundPrice(window.tcart.products[o].amount); r.find(".t706__product-quantity").html(window.tcart.products[o].quantity); 0 < window.tcart.products[o].amount ? r.find(".t706__product-amount").html(tcart__showPrice(window.tcart.products[o].amount)) : r.find(".t706__product-amount").html(""); tcart__updateTotalProductsinCartObj(); $(".t706__carticon-counter").html(window.tcart.total); tcart__reDrawTotal(); tcart__saveLocalObj();}function tcart__product__minus(t) { var r = t.closest(".t706__product"), o = r.attr("data-cart-product-i"); 0 < window.tcart.products[o].quantity && (window.tcart.products[o].quantity -= newMultipleNumber); window.tcart.products[o].amount = window.tcart.products[o].price * window.tcart.products[o].quantity; window.tcart.products[o].amount = tcart__roundPrice(window.tcart.products[o].amount); r.find(".t706__product-quantity").html(window.tcart.products[o].quantity); 0 < window.tcart.products[o].amount ? r.find(".t706__product-amount").html(tcart__showPrice(window.tcart.products[o].amount)) : tcart__product__del(t); tcart__updateTotalProductsinCartObj(); $(".t706__carticon-counter").html(window.tcart.total); tcart__reDrawTotal(); tcart__saveLocalObj();}.t706__product-plusminus {width: unset !important;}Replace the value “100” of the variable “newMultipleNumber” with the number you need.The block containing the code should be added to the very bottom of the page, or placed to the Footer.



Bing

How do I set the number of products to a multiple of 5, 10, 100, etc.?

https://answers.tilda.cc/en/a/custom-code-cart-multiple-number-en

Examples below require knowledge of Javascript and CSS. Tilda Customer Support does not assist in code-related questions.To change the behavior of the “plus” and “minus” buttons in the shopping cart, you need to add a T123 block from the “Other’ category and insert the following code:var newMultipleNumber = 100; /* вместо 100 укажите нужное вам число */function tcart__product__plus(t) { var r = t.closest(".t706__product"), o = r.attr("data-cart-product-i"); window.tcart.products[o].quantity += (window.tcart.products[o].quantity % newMultipleNumber > 0 ? newMultipleNumber - window.tcart.products[o].quantity : newMultipleNumber); window.tcart.products[o].amount = window.tcart.products[o].price * window.tcart.products[o].quantity; window.tcart.products[o].amount = tcart__roundPrice(window.tcart.products[o].amount); r.find(".t706__product-quantity").html(window.tcart.products[o].quantity); 0 < window.tcart.products[o].amount ? r.find(".t706__product-amount").html(tcart__showPrice(window.tcart.products[o].amount)) : r.find(".t706__product-amount").html(""); tcart__updateTotalProductsinCartObj(); $(".t706__carticon-counter").html(window.tcart.total); tcart__reDrawTotal(); tcart__saveLocalObj();}function tcart__product__minus(t) { var r = t.closest(".t706__product"), o = r.attr("data-cart-product-i"); 0 < window.tcart.products[o].quantity && (window.tcart.products[o].quantity -= newMultipleNumber); window.tcart.products[o].amount = window.tcart.products[o].price * window.tcart.products[o].quantity; window.tcart.products[o].amount = tcart__roundPrice(window.tcart.products[o].amount); r.find(".t706__product-quantity").html(window.tcart.products[o].quantity); 0 < window.tcart.products[o].amount ? r.find(".t706__product-amount").html(tcart__showPrice(window.tcart.products[o].amount)) : tcart__product__del(t); tcart__updateTotalProductsinCartObj(); $(".t706__carticon-counter").html(window.tcart.total); tcart__reDrawTotal(); tcart__saveLocalObj();}.t706__product-plusminus {width: unset !important;}Replace the value “100” of the variable “newMultipleNumber” with the number you need.The block containing the code should be added to the very bottom of the page, or placed to the Footer.



DuckDuckGo

https://answers.tilda.cc/en/a/custom-code-cart-multiple-number-en

How do I set the number of products to a multiple of 5, 10, 100, etc.?

Examples below require knowledge of Javascript and CSS. Tilda Customer Support does not assist in code-related questions.To change the behavior of the “plus” and “minus” buttons in the shopping cart, you need to add a T123 block from the “Other’ category and insert the following code:var newMultipleNumber = 100; /* вместо 100 укажите нужное вам число */function tcart__product__plus(t) { var r = t.closest(".t706__product"), o = r.attr("data-cart-product-i"); window.tcart.products[o].quantity += (window.tcart.products[o].quantity % newMultipleNumber > 0 ? newMultipleNumber - window.tcart.products[o].quantity : newMultipleNumber); window.tcart.products[o].amount = window.tcart.products[o].price * window.tcart.products[o].quantity; window.tcart.products[o].amount = tcart__roundPrice(window.tcart.products[o].amount); r.find(".t706__product-quantity").html(window.tcart.products[o].quantity); 0 < window.tcart.products[o].amount ? r.find(".t706__product-amount").html(tcart__showPrice(window.tcart.products[o].amount)) : r.find(".t706__product-amount").html(""); tcart__updateTotalProductsinCartObj(); $(".t706__carticon-counter").html(window.tcart.total); tcart__reDrawTotal(); tcart__saveLocalObj();}function tcart__product__minus(t) { var r = t.closest(".t706__product"), o = r.attr("data-cart-product-i"); 0 < window.tcart.products[o].quantity && (window.tcart.products[o].quantity -= newMultipleNumber); window.tcart.products[o].amount = window.tcart.products[o].price * window.tcart.products[o].quantity; window.tcart.products[o].amount = tcart__roundPrice(window.tcart.products[o].amount); r.find(".t706__product-quantity").html(window.tcart.products[o].quantity); 0 < window.tcart.products[o].amount ? r.find(".t706__product-amount").html(tcart__showPrice(window.tcart.products[o].amount)) : tcart__product__del(t); tcart__updateTotalProductsinCartObj(); $(".t706__carticon-counter").html(window.tcart.total); tcart__reDrawTotal(); tcart__saveLocalObj();}.t706__product-plusminus {width: unset !important;}Replace the value “100” of the variable “newMultipleNumber” with the number you need.The block containing the code should be added to the very bottom of the page, or placed to the Footer.

  • General Meta Tags

    6
    • title
      How do I set the number of products to a multiple of 5, 10, 100, etc.? - Frequently asked questions Tilda
    • charset
      utf-8
    • Content-Type
      text/html; charset=utf-8
    • viewport
      width=device-width, initial-scale=1.0
    • format-detection
      telephone=no
  • Open Graph Meta Tags

    2
    • og:title
      How do I set the number of products to a multiple of 5, 10, 100, etc.?
    • og:description
      Examples below require knowledge of Javascript and CSS. Tilda Customer Support does not assist in code-related questions.To change the behavior of the “plus” and “minus” buttons in the shopping cart, you need to add a T123 block from the “Other’ category and insert the following code:var newMultipleNumber = 100; /* вместо 100 укажите нужное вам число */function tcart__product__plus(t) { var r = t.closest(".t706__product"), o = r.attr("data-cart-product-i"); window.tcart.products[o].quantity += (window.tcart.products[o].quantity % newMultipleNumber > 0 ? newMultipleNumber - window.tcart.products[o].quantity : newMultipleNumber); window.tcart.products[o].amount = window.tcart.products[o].price * window.tcart.products[o].quantity; window.tcart.products[o].amount = tcart__roundPrice(window.tcart.products[o].amount); r.find(".t706__product-quantity").html(window.tcart.products[o].quantity); 0 < window.tcart.products[o].amount ? r.find(".t706__product-amount").html(tcart__showPrice(window.tcart.products[o].amount)) : r.find(".t706__product-amount").html(""); tcart__updateTotalProductsinCartObj(); $(".t706__carticon-counter").html(window.tcart.total); tcart__reDrawTotal(); tcart__saveLocalObj();}function tcart__product__minus(t) { var r = t.closest(".t706__product"), o = r.attr("data-cart-product-i"); 0 < window.tcart.products[o].quantity && (window.tcart.products[o].quantity -= newMultipleNumber); window.tcart.products[o].amount = window.tcart.products[o].price * window.tcart.products[o].quantity; window.tcart.products[o].amount = tcart__roundPrice(window.tcart.products[o].amount); r.find(".t706__product-quantity").html(window.tcart.products[o].quantity); 0 < window.tcart.products[o].amount ? r.find(".t706__product-amount").html(tcart__showPrice(window.tcart.products[o].amount)) : tcart__product__del(t); tcart__updateTotalProductsinCartObj(); $(".t706__carticon-counter").html(window.tcart.total); tcart__reDrawTotal(); tcart__saveLocalObj();}.t706__product-plusminus {width: unset !important;}Replace the value “100” of the variable “newMultipleNumber” with the number you need.The block containing the code should be added to the very bottom of the page, or placed to the Footer.
  • Link Tags

    11
    • canonical
      https://tilda.cc/en/answers/a/custom-code-cart-multiple-number-en/
    • dns-prefetch
      //tilda.ws
    • dns-prefetch
      //static.tildacdn.com
    • shortcut icon
      //answers.tilda.cc/src/images/tildafavicon.ico
    • stylesheet
      //answers.tilda.cc/src/css/tilda-grid-3.0.min.css
  • Website Locales

    8
    • DE country flagde
      https://de.answers.tilda.cc
    • EN country flagen
      https://answers.tilda.cc
    • ES country flages
      https://es.answers.tilda.cc
    • FR country flagfr
      https://fr.answers.tilda.cc
    • IT country flagit
      https://it.answers.tilda.cc

Emails

2

Links

25