Skip to main content

All Questions

Tagged with
1 vote
1 answer
29 views

Force State/County field to be required in WooCommerce Shipping Calculator

I am trying to make sure that the Shipping State field is selected in the shipping calculator. Using the solution here works great for the City and Postcode fields like this: jQuery('#...
AJD's user avatar
  • 424
1 vote
1 answer
88 views

Auto Update WooCommerce Cart on cart item quantity change

I want to enable an AJAX auto update when user changes the quantity (first hiding "Update cart" button) in WooCommerce cart page. I followed the steps from this tutorial. So basically I use ...
Adam's user avatar
  • 5,932
2 votes
1 answer
329 views

Remove conditionally "Proceed to checkout" button in WooCommerce cat page

I want to remove a button in cart display, when the rule is not respect. I made a custom Php for check if the rule is on, and display butoon "proceed to checkout" when it's good and hide it ...
Romain Youaabed's user avatar
-1 votes
1 answer
69 views

Why isn't this jQuery loop not firing every time?

I have a page (product category in Woocommerce) with 12 products on it. Each product has a quantity field, and when you click a button at the bottom of the page, it loops over the products and adds ...
cx3700's user avatar
  • 1
0 votes
0 answers
58 views

Jquery & vanilla javascript mixed, cart not reciving updated data [SOLVED]

to start I'm very new to code. Ive been stuck on this one problem for a week now and its killing me so i came here. I want the h2 innerText of .item with the class of .item-selected to appear in cart ...
personthe's user avatar
1 vote
1 answer
576 views

Adding product without page refresh in shopify

This is my first post here. I was working on adding list of product in my shopify mini cart. I have successfully added the products to the mini cart but when I click add to cart, it takes me to the ...
Diw_S's user avatar
  • 11
0 votes
1 answer
1k views

Shopify validation for custom attribute fields in cart page

We have a Shopify website (Dawn theme) and we added some custom attribute fields on cart page which is associated with the product added to cart. For showing the attribute fields, below is the code I'...
Roby Raju Oommen's user avatar
0 votes
2 answers
885 views

how do attach events on dynamically loaded HTML elements with jquery?

I'm trying to make an add to cart function on products that are on cards which are loaded dynamically. I have buttons of class add-cart. I am trying to append the products to a UL on click, but ...
Cinder Bayongasan's user avatar
-1 votes
1 answer
379 views

Shipping calculator auto update on country change in WooCommerce cart

I woulk like to calculate on Woocommerce shipping cost based on country without clicking "Update button". I checked posts on forums but it did not work for me: Shipping calculator state ...
Aleksandre Khachaturov's user avatar
0 votes
1 answer
2k views

Add to cart - avoid page refresh

I have the following setup: https://jsfiddle.net/uosLke60/ input.Add_To_Cart_Button { background-color: #000; color: #fff; border: none; font: inherit; cursor: pointer; font-size: 13px;...
fiddle's user avatar
  • 25
0 votes
1 answer
3k views

How to remove multiple cart items on one click in shopify?

On Shopify cart page we can see multiple cart items if we added. Dawn Theme give functionality to remove each cart item separately. Is there any way to remove multiple cart Items by selecting them and ...
Anupam Mistry's user avatar
0 votes
1 answer
3k views

Prestashop 1.7.7.8 Ajax cart doesn't update when Add to cart buttons are clicked

We are working on a Prestashop website with Prestashop 1.7.7.8, first we tried a theme called Akira, and after a few days we finally changed it to Warehouse theme. The problem started when we changed ...
Rafa Mérida's user avatar
1 vote
0 answers
33 views

Trigger method via JS class or via jQuery trigger()?

I have a CartHandler Javascript class that contains a method named onAddToCart for communication between the page and the cart API. Part of the class is also a method named updateCartDOM for updating ...
user46581's user avatar
  • 200
0 votes
1 answer
565 views

Woocommerce how to use jquery to get a value inside "cart-subtotal"

This question has been put but I need something different and I don't know if it's even possible. <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></...
nudi amid's user avatar
-1 votes
1 answer
386 views

How can i pass information between pages of html using javascript?

I'm trying to make a shopping cart that works over multiple pages, so that which ever page you add something to the cart in (StoreA.html StoreB.html), the cart on a different page (Cart.html) updates ...
Eric Skakum's user avatar

15 30 50 per page
1
2 3 4 5
9