I'm developing a module that appears in the product page. This module consist of a checkbox which when is checked, shows a few inputs to be filled by the client and add an extra amount of, for example, 50.
How can I add this amount to the product cart? I'm using the hook hookActionCartSave to retrieve the cart but I can't update it adding the amount of 50.
The ideal is to reflex this concept like shipping costs but I'm stuck on how to change the product price or add a new concept when the checkbox is checked and client click "Add to cart" button.
Thank you!
Related
First post here so I'll try to make it as good as possible.
For a WooCommerce / WordPress project, I'm trying to achieve the following. When the cart is empty, there should be a button displayed with the text "Return to store".
Now the button isn't the problem, I've added this with Elementor, now usually I use the JetEngine Dynamic Visibility option to show/hide things.
I've also done this with stock status. There I used the _stock option to only display when there are 5 or more in stock left.
So I'm trying something similar with the cart, whenever there are 1 or more items in the cart, this button needs to be hidden because whenever someone has 1 item in their cart we want them to proceed to the checkout and not return to the shop, because the average product bought per order is 1 for this particular shop.
But the one thing I can figure out is, what key do I need to use to check items in the cart?
I've been trying several options I found online but none seem to work.
Does anyone know how to do this?
Thanks!
I am working on a project where customers can buy a product or send it as a gift. In the product page I need two buttons, one for buy and the other one for gift. Clicking one of the two buttons, it will add the product to the cart, then in the cart I have to distinguish which one is a buy product and which one is a gift product.
The problem is that I am not able to catch which one of the two buttons is clicked and how to keep this value (and where) and show it in the cart.
Any idea?
thanks
http://geecosme.nextmp.net/weaves/human-multiway-weave-135/human-multiway-weave.html
Its a configurable product.
here you could see that add to cart ('add to bag') button is there.
http://geecosme.nextmp.net/weaves/human-multiway-weave-135/human-multiway-weave-18-inches-darkest-black-120-grams.html
This is a simple product
In this simple product add to cart button is not showing. I have checked everything from quantity to availability and even reindexed data after setting manage to No. still nothing.
Its ajax based add to cart button.
Simple products that have a parent configurable product shouldn't be visible individually.
Magento will check if it has a stock on the simple product and will show it as an option in configurable.
I put a few custom fields as part of the add to cart form and I'm trying to separate the orders every time the add to cart button is clicked.
Right now when I order an item and fill up the form I get 1 item added to cart and if I fill up the form again with different data and click add to cart the new data gets lost and the count of the first product is increased to 2.
At the same time when viewing the cart page I want to be able to increase the count of separate orders when changing the count and clicking update chart.
What hook can I use to accomplish this? Thanks.
Don't add fields directly to add to cart form.
From admin panel make your product variant product. There you can add product variants like color, size etc. You can add your own variations also. This will automatically create extra fields to add to cart field.
Then, your products will be added separately.
Check out the link:
https://docs.woothemes.com/document/variable-product/
I am new to prestashop
I want to show all the products in prestashop in my cart summary page.
Even though the customer doesn't ordered a product, it should be displayed in his/her shopping cart summary page with quantity as 0. So that from there he must be able to add quantity if he needs.
The product must be displayed category wise.
NB: I have searched and couldn't find a solution :-(
I think, you should not use cart, but should use template for product category instead of cart. This template make you able to show cart quantity. Cart will "invisible" in your shop. The user will select quantity of goods, all of them will add to the cart on 'onchange' event. When, the user press "Order" button and go to the real cart where he see the summary order information and confirm his order. Shop without traditional cart will inconvenient, because selected goods will in the different categories of the shop
The result will like this: http://screencast.com/t/8csYCudqD
Use ajax command which using on 'Add to cart' button click on 'onChange' event for input with good's count (simple jquery ajax)