javascript - If product in cart, on refresh stay at the top of front page. Woocommerce -


my problem... i've created woocommerce page checkout @ bottom of front page, i've created select quantity pick, when user select it, ajax sends add_to_cart url , display new quantity , price in checkout form via .empty.append().

i've added couple of functions if there's empty cart should automatically add 1x product in cart , if there new qunatity added delete old 1 , add new.

everything works ok far, when product added cart , refresh page won't stay @ top of page or pointing before refresh. point bottom -> checkoutform.

i know function have or should edit stay @ top of page or pointing before refresh when product in cart.


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -