3,208 questions
-1
votes
0
answers
25
views
Sale-ended item still in cart — update price on quantity change or on cart fetch? [closed]
I’m building a cart service for an e-commerce system and I’m confused about handling a sale-end edge case.
A user adds an item to the cart during a sale at a discounted price. The sale later ends ...
0
votes
0
answers
72
views
How to update total Price on shopify cart page
I am trying to update total price on shopify cart page.
total price don't update like this.
this is response after page load
{
"token": "hWN203uf9SnlUssKBp2VwOxu?key=...
0
votes
1
answer
115
views
Hydrogen 2 + Remix: cart briefly updates, then `totalQuantity` & prices drop to zero
I’m building a storefront with Shopify Hydrogen 2, Remix, and React 18.
When I add a product with CartForm.ACTIONS.LinesAdd:
the form submits without errors
a new line does appear in the cart UI
...
0
votes
1
answer
76
views
WooCommerce cart update shipping after changing item count
I have a custom dialog which shows cart content to user.
I get data for this dialog with ajax:
$cart = WC()->cart->get_cart();
// Loop over $cart items
foreach ( $cart as $...
0
votes
0
answers
134
views
How to exclude woocommerce cart page from redis cache
cart not update when not login in
Hello,the woocommerce store runs with redis object cache,after multiple tests, i've found that Issue:
When in the state of an unlogged-in visitor, the Redis cache ...
0
votes
0
answers
93
views
Override cart.php template file issue in WooCommerce
I am making my own WooCommerce shop. For this I have copied the WooCommerce templates into <my_custom_theme>/woocommerce.
However I don't seem to be able to change the layout of the Cart. From ...
0
votes
0
answers
225
views
How to implement a custom Add to Cart button to Shopify's Dawn Theme?
I have attempted to create a custom Add to Cart button for the Dawn theme (using AJAX functionality) based on the dev notes for Cart API (https://shopify.dev/docs/api/ajax/reference/cart).
I have been ...
1
vote
1
answer
96
views
WooCommerce Progressive discount based on cart subtotal if there are no discounted items
I am using the following code that applies progressive discounts based on order amount.
add_action('woocommerce_cart_calculate_fees', 'woo_discount_total');
function woo_discount_total(WC_Cart $cart) {...
0
votes
0
answers
23
views
odoo18 how to fix js error in cart at step: fill address
In odoo18, after having purchased a product, at the second part of the cart: /shop/address
I get this error:
UncaughtPromiseError > TypeError
Uncaught Promise > input.parentElement is undefined
...
0
votes
1
answer
71
views
Persistent Cart with Woocommerce backend?
Nextjs Frontend, WooCommerce headless backend.
Trying to have a persistent cart with a signed in user, and just having a lot of difficulty in that. I've tried to create a custom plugin that adds a ...
1
vote
1
answer
88
views
Exclude products from specific category for free shipping min amount in WooCommerce
I have set up multiple shipping zones, which have their own shipping methods: flat rate, local pickup (free) and free shipping with a minimum subtotal. Products belonging to "leeggoed" ...
0
votes
1
answer
311
views
Modify the Default Price In Cart Totals Based on Custom Tax Class
I need to filter the product price for products which use the custom-tax-class when the product is added to cart so i can calculate the tax based on the margin = price - purchase price rather than the ...
0
votes
1
answer
48
views
How to reset the order increment ID of tx:cart 10 to zero in TYPO3 12.4.27?
(See solution at the end of the question.)
Currently my order number is "29" as I fired 29 orders. Now I would like to reset it to zero so that the order number starts again with "1&...
1
vote
1
answer
126
views
Hide quantity button for virtual product variations in WooCommerce [duplicate]
I'm an author, and I have my books set up as variable products in my WooCommerce store. Each book/variable product has a paperback, e-book, and audiobook variant. I want to leave the quantity button ...
0
votes
1
answer
143
views
WooCommerce Combined Cart & Checkout Page (Redirect Issue)
I have a single page site that has a product listing, cart & checkout all on one page. It's been a challenge to get this setup working but I have it 99% of the way there :/
My issue is if I click ...