All Questions
Tagged with shopping-cart php
815
questions
0
votes
0
answers
82
views
WooCommerce - Empty Cart Page Reload issue
I have an issue when i remove product from the cart and the page refresh to the empty cart page. I use this inside my functions.php file to modify the empty cart page :
add_action( '...
-2
votes
1
answer
29
views
Problem transferring data from one site to another
I have a database with products in it, and I also have a shop.php page where all the products are displayed. If I click on a specific product there, I will be redirected to the product.php page and ...
1
vote
0
answers
40
views
WooCommerce Free Shipping Issue: Multiple Radio Buttons Dilemma on Orders Over free shipping price
I have set up a WordPress site with WooCommerce.
My goal is to offer free shipping for orders over €75.
On its own, it works fine, but I'm encountering a small issue. If I have a product that costs €...
0
votes
0
answers
29
views
Woocommerce free-shopping above a price is not reflecting at view cart
I have a created a website with wordpress and woocommerce.
I want to remove the shippig-rates if the customer buy more than €75.
So I have simple product called A and price is €39,-
I can add this to ...
0
votes
0
answers
331
views
Why does my CodeIgniter 4 shopping cart code only return 1 item when the totalItems() method shows more than 1?
The program works just fine, but when i add this cart it only return 1 items. I checked the cart also using $cart->totalItems(); and the result is more than 1, yet i got only 1 item when it got ...
1
vote
0
answers
90
views
The cart is not updating any item when add to button is called
I have an issue with my cart. Basically when a user clicks add to cart it is supposed to add that item to cart for view. Currently I am getting failed to add item from JavaScript side. When debugging ...
0
votes
1
answer
411
views
Laravel 8.0 shopping cart with API
I am developing a eCommerce shop application in Laravel 8.0. One task is to retrieve the product list from DB and display in products blade page.
Below is my controller implementation
<?php
...
0
votes
0
answers
497
views
I want to add products to the shopping cart in PHP
When i click on adding a product to the shopping cart it shows me this: ' 1 = 0 ' and no product name nor price etc... can anyone please help? (i should mention that the init.inc file has the DB ...
0
votes
1
answer
37
views
Only allow items from same Parent Category in Woocommerce basket
I have 3 'Master' categories, Ambient, Chilled and Frozen. Ambient then breaks down into 3 other categories, Food & Drink, Non Food and Pet Products, each with their own sub categories. I tried ...
1
vote
1
answer
4k
views
Cannot autowire service "App\Controller\MainController": argument "$session" of method "__construct()"
There is my MainController:
<?php
namespace App\Controller;
use App\Entity\ShopCart;
use App\Entity\ShopItem;
use App\Repository\ShopItemRepository;
use Doctrine\ORM\EntityManagerInterface;
use ...
0
votes
1
answer
67
views
Is there a way to have different data in cart and checkout woocommerce
I wanted to have different data in checkout and cart. means, when someone clicked a product directly to checkout, moves just the product to checkout without items that are in the cart.
or preventing ...
0
votes
0
answers
273
views
Woocommerce disable place order button for product with specific category and shipping zone
I am trying to disable the place order button and make a conditional message that is gonna be displayed at the cart and checkout page when:
A) the customer chooses to buy an item from a specific ...
1
vote
0
answers
120
views
PHP webshop shopping cart real-time subtotal
I have a webshop like cart system you can add items to the cart and they will appear there. I store the product's quantity and the price. I also have a + and - buttons so you can change the stored ...
1
vote
0
answers
355
views
Laravel how can i store child with parent if the parent data doesnt exist in restful api
so i want to create a card product feature in my laravel api, i create a table where products belongs to cartsdetail and carts has many cartsdetail, i make a function store in cartdetail controller ...
0
votes
1
answer
63
views
How Do I Limit A Cart Only To The Same Seller? (PHP)
I am currently doing a feature where my Add To Cart Feature is only allowed for the same Seller due to the intentional limitation of my website and instruction from my lecturer, where I want to have ...