Refresh/update shopping cart when I change quantity - PhP - javascript

I'm currently making a webshop with php. I want to know how I can refresh the page when the user changes the quantity of a product, so it can recalculate the total price.
Is there an easy way to do this with php? Or with another language like javascript. Examples or projects with the same topic are welcome :)
Thank you

Related

How to make a product page in Wordpress

I am learning Wordpress currently so far I know how to design the webpage, but what I want to do next is to make a product page without ordering. What I want is the following:
List all my products and if one clicks on a product it will show the detail page of that product
The products can be added to a list and then there will be a contact form which will take the list and send it to me in a pdf or excel (but at first enough if only names are sent via email) so I can answer it with the asked question.
I sadly could not find any starting point I do not even know if there is such a plugin, if not can I make one myself? I know javascript so I think I could Programm it myself but would prefer if there is some plugin I can use due to time issues.
You can also use woocommerce. If you don't want a user to order something with a "Add to cart" button you could hide this button with your code or a pluging for example https://de.wordpress.org/plugins/yith-woocommerce-catalog-mode/

Get price once you are in the cart

For my studies I'm working on a e-commerce website and I need to upgrade my work by getting the price of my articles only on the cart page (I can't put it in the localstorage because price can change and it will not affect the cart items), I'm totally lost..
Here is my project https://github.com/Altaryxa/kanap.git
Thanks for your help

how to customize contact form 7 plugin for wordpress from back-end

im working on a booking tours website, and for this tours there is a specific conditions that the normal CF7 don't have, for an example if the price for one person is 100$ and for two persons is 150$, and picking hotels 4 or 5start...etc, so as you can see i need a specific algorithm here to work on CF7, also after all this i need to show the final price to the client and have it pay it with paypal. i already tried many bookings plugins but none of them do the right job.
i can code the algorithm with js or php but i'm just a beginner with WP.
so any ideas any suggestions from you guys i will appreciate it.
Please use gravity form plugin. if you want add conditions.
Thank you

Unable to Send Cart Details to Paypal

I am using this https://cdnjs.cloudflare.com/ajax/libs/minicart/3.0.6/minicart.min.js script to render a cart for my e-commerce website. This works pretty fine as I can add and remove items from the cart and view the subtotal. However, when it comes to linking with paypal (the main reason I think it was designed), I am unable to submit the cart details, i.e. all items' names and prices along with the total to paypal for processing payment. Can someone have a look and help me understand how to do this. At least, retrieve the price and quantity of each item and the total. If I can access these at any point in my application, that would be a great start.
Please find here a snippet of my use of the script to add an item to cart.
This is my inclusion of the javascript.
This is how it looks like in view.
You have add the shopping cart variables to pass your cart details to PayPal
Please find the below link,
https://developer.paypal.com/docs/classic/paypal-payments-standard/integration-guide/Appx_websitestandard_htmlvariables/#shopping-cart-variables

Multiple items. One sold. One PayPal Buy Now button for other items.

I am new to webdev and looking for suggestions.
Basically I am planning to use an image map to sell some items.
Each image contains up to 100 items. User can simply click on what's needed and from that point I need to figure what will be the best option to checkout.
The easiest method and obviously not smart will be to create 100 paypal buy now buttons and basically place each button for each item.
Cons - time consuming and space wasting because I will have about 100+ image maps.
Target is to have 1 checkout page which will know where the user came from and what he is actually willing to buy and somehow connected to PayPal Button.
Price for all items can be the same, no shipping price (it will be free) and no taxes. I don't want to have registration on the site.
Any ideas, maybe examples...?
HTML CSS JavaScript?
p.s. I found some topic about dynamic item name in paypal but I am still lost.

Categories