How to disable the quantity field in the product detail page in woocommerce?

I need to hide the "quantity" field (where one enters the quantity before adding to cart) in Woocommerce on the product detail page, and only show the "add-to-cart"-button, which would then put...

Closing Bootstrap modal onclick

I am using a Bootstrap modal for users to choose product options before adding an item to their cart. I've used them before in this scenario with no issues but this one isn't closing as...

Ajax add to cart is not adding products to the cart

**Ajax add to cart is not updating the product to the shopping cart upon onclick action checkout/continue in the popup and then it redirects to the URL http://hostip.com/checkout/cart/ ** I had...

How to display WooCommerce cart items on the checkout page?

I'm working on this website where I was asked to add a list of the cart items to the checkout page. I decided to add the [woocommerce_cart] shortcode to the checkout page, above...

Woocommerce checkout page: remove view cart button & other messages

First, I'm a bit of a noob. I'm not a web developer/programmer. But I'm also not an idiot and have played with functions.php (just a little bit). here is the...

Customizing the slider form shopping cart in viewcart.tpl

I hope some of you are familiar with WHMCS and smarty template language so you can help me. The problem I am having is with viewcart.tpl page of the slider order form template. I want to hide the...

Moving Details box renders Add to Cart Button inoperable - Magento

My site offers products that have multiple options. Some with as many as 5-8 options. So, the "details box" ends up way beneath all of the options. Also, the details are to long to place into the...

how to send id with form in php

I have a Dynamic page (holidays.php), which comes data from id using get method like this in url holidays.php?id=1 the code is include('header.php'); include('db.php'); $id = $_GET['id']; $sql_hp...

PHP - mysqli_query() expects at least 2 parameters, 1 given in

this is the error: Warning: mysqli_query() expects at least 2 parameters, 1 given in >C:\xampp\htdocs\ajax_cart\dbcontroller.php on line 25 Warning: mysqli_fetch_assoc() expects parameter 1 to...

Woocommerce - Disable Add to Cart Conditionally on Custom Field

Everything I can find on removing the WooComm Add To Cart button will remove not just the add to cart button but also the pricing/variations, aka the whole add to cart area. My goal is to...

How to add badge count in Navigation bar with TabbedPage In Xamarin forms?

I want to add navigation bar in cart icon with badge count. I have added cart icon in navigation bar using toolbar item. and also created badge count circle view using plugin. if i am giving...

Shopify - make variant id change in url when selecting product options

Ok, so I'm new to Shopify, so this may be easy to solve and I'm just not "getting it." I think I'm working with an old theme since new themes seem to have a js file already in place to update the...

Remove product button if out of stock from Woocommerce shop and archives

I am using https://stackoverflow.com/questions/50261566/add-font-awesome-icon-to-custom-add-to-cart-button-in-woocommerce-3/50262262#50262262 answer code to remove the "add to cart" button from my...

javascript multiple time on same page

I need help with a "Show and hide div on link click using jQuery" being used multiple times on the same page. Using this guide https://coding-tips.com/javascript/show-hide-div/ I have added a Show...

Change product button based on product category in Woocommerce archive pages

I have a jQuery script which successfully retrieves data from local storage and then returns to a PHP function (within a child theme). Within this function I have an if/else block which I want...

YITH WooCommerce Wishlist: Help me show the first item / product thumbnail within the sidebar widget and wishlist manage areas?

I am using YITH Wishlist within WooCommerce, WordPress. Within an individual wishlist - it displays the image, with 'remove from list', the product title and a link through to the individual...

Hide product variable price until all variation fields are selected in WooCommerce

I would like to hide the price on the product page of WooCommerce until the customer has selected all fields of variations. I have found a solution using CSS and Javascript, but it doesn't work...

Woocommerce add to cart validation hide alert message

I have woocommerce, single product page, the variational product with two variations. If some of them (or none) are not checked, the Add to cart button is disabled and I have an alert with the...

How can I create a buy now button for a specific product variant with Shopify BuyButton.js

I am using Shopify BuyButton.js to create a buy button and shopping cart on my site. I have a product with multiple variants. I can easily create a buy button for a product with the...

Shopify - debut theme - how to change quantity and flavor variations from drop-down menu into buttons

We have a debut theme with a featured product section. The current size and flavor selector is a drop-down menue: We would like to make the size and flavor variations become buttons, like...

Display A popup on 'Select Options' button - Woocommere

I have Pizza ordering WP Page. I have pizza category products which are 'Simple products' and using Gravity Form Addon to let users to add extra toppings. So, literally under each Pizza product...

Align column elements bottom - WordPress CSS

I am using Wordpress with a theme called Flatsome. I know how to use CSS but because of the HTML and CSS Wordpress and the theme creates I have no clue how to fix this. I have one row with three...

How to communicate with Shopify Storefront and add JS snippet to Product Page

I would like to ask someone who had experience with Shopify App development how to inject JS script into product.template.liquid under "Add to cart button" when a Toggle button is clicked from...

Remove read more button for out of stock item

Ive been strugling with removing a "read more" or "beri dalje" button from my website. The website in question is www.fotroviciliji.si . I can locate it and hide it in chrome investigator but not...

Hide product prices on specific countries WooCommerce

I'm trying to hide the products price and add to cart button from woocommerce pages on specific countries. i've found Turn Woocommerce shop into catalog for geolocated countries? but it works only...

Woocommerce: Hide Add To Cart Button if Customer has already purchased this Product

I would like to hide the Add-To-Cart-Button on the shop page if a Customer has already purchased this Product (in all his previous orders), in this case I'd like to dispay a notice in place of the...

shopping cart, after click on Add to Cart Button : price gets added but showing zero amount

Error : Uncaught TypeError: Cannot read property 'split' of undefined(…) Hello guys, I going to make some add to cart modal I got some reference from codepen example after that I did some...

Laravel Ajax add to cart button

Ajax request not hiding add a cart button and not showing remove a cart button, when I click on a product it inserts into the database add to cart, but does not hide and display remove from cart...

Passing function through useContext

I'm currently struggling with React Context. I'd like to pass functions allowing the show / hide cart logic in the context, instead of using props between components. I dont understand why when...

Unable to successfully loop through a redux store after a dispatch function

I'm trying to add product items to my redux store called cart. After adding an item I then compare both stores product(redux store) and cart(redux store) to check if the product has the same...