Browse AI Field GuideForum Podcast
All ThreadsLeaderboard
  1. Discussions

    1. Popular This Week
    2. Popular All Time
    3. Solved
    4. Unsolved
    5. No Replies Yet

RootKing's avatar

If basket is full, another product disabled

Hey guys, i developed e-commerce symfony app. My question is: If an item has been added to the cart, The date and delivery time of the first product are active for other products. This is output of product page (empty basket): http://prntscr.com/136rmf2 this is output of another product page after basket filled by one product: http://prntscr.com/136rvbt This is my twig code: &

RootKing's avatar
RootKing's avatar zaster5yrs agoGeneral
1
1
Last reply by zaster 5yrs ago
yeasirarafat-dev's avatar

How to implement the internal chat system in laravel?

Hello everyone. I'm working on an e-commerce project. Which have multi-vendor features. I want to implement an internal mailing/chat system in my project. chat between vendor to vendor or customer to vendor. And admin can monitor all conversations. Please suggest to me the best way to make the system.

yeasirarafat-dev's avatar
yeasirarafat-dev's avatar whowho4yrs agoLaravel
4
1
Last reply by whowho 4yrs ago
gitwithravish's avatar

User activity logs - Database vs text files

There are many opinions about using log files over database for saving user activity logs. But in following requirements, using log files does not solve the problem. Example An e-commerce website where the rates of the product keep changing based on the user settings or manual update. These changes need to be logged. There is an active rates table and for valid reasons, these

gitwithravish's avatar
gitwithravish's avatar martinbean5yrs agoGeneral
2
1
Last reply by martinbean 5yrs ago
rohitkumarsingh931@gmail.com's avatar

runtime shipping price calculate on checkout page shiprocket

We are working on an e-commerce portal and want to integrate ShipRocket. Our portal is being built on Laravel and were successful in integrating Shiprocket API. Currently the orders that are placed on our portal is being fetched by shiprocket but would like to know if there is a way for the api to pass on the live shipping rates calculated on shiprocket to the check out page of

rohitkumarsingh931@gmail.com's avatar
rohitkumarsingh931@gmail.com's avatar martinbean2yrs agoLaravel
1
2
Last reply by martinbean 2yrs ago
shahr's avatar

Fatal error: Uncaught Error: Call to undefined function Dotenv\Dotenv()

I am trying to build a website to practice a code where. I am finding a strange error Which I am unable to replicate how to solve the issue. I have followed the steps. I already downloaded the Vendor by Composer and here is the code I have used. .env APP_URL=http://oxbir.me APP_ENV=local APP_NAME="ACSE E-Commerce Store" index.php <?php require_once __DIR__.'/../

shahr's avatar
shahr's avatar shahr5yrs agoGeneral
0
1
ihprince's avatar

How to divide string as per requirement?

Suppose, In database, I have a table where column name is title & description. In the title column, I stored data as "Welcome To Our Ecommerce Shop" Now, I want to display that in frontend like this <p> Welcome to Welcome To Our Ecommerce </p> <h1> Shop </h1> In the description column, I stored data as "Description is the pattern o

ihprince's avatar
ihprince's avatar martinbean5yrs agoLaravel
4
1
Last reply by martinbean 5yrs ago
User1980's avatar

How to forward a request webhook to another url?

Hi, I have installed the Laravel paddle package. To my surprise, there are no ways in the Paddle control panel to setup multiple webhook URL. ie: Let's say you have 3 e-commerce and setup all your products in the paddle admin panel, you can only send the purchase webhook request to 1 URL. In Laravel, let's say I went all the webhook request to a single route, how would you then

User1980's avatar
User1980's avatar User19805yrs agoLaravel
2
4
Last reply by User1980 5yrs ago
tomahawkx's avatar

Building new server infrastructure for multiple laravel websites

I run about 10 laravel websites, and our company is growing. Currently, all sites and databases are hosted on a shared web hosting at OVH. Unfortunately, the performance is not ideal, and there is a lot more potential in speed. I put one of our laravel applications on a VPS with varnish and Memcached installed, and it is loading MUCH faster than on the shared hosting. Our websi

tomahawkx's avatar
tomahawkx's avatar tomahawkx5yrs agoServers
2
1
Last reply by tomahawkx 5yrs ago
EbrahemSamer's avatar

How to know whick page user came from when viewing product ( PHP ) ?

I've an ecommerce website and I wanna track whick page the users use to view products....... when user view or purchase a product i wanna know which page he came from ex: related products, hot products or home page.... Is there another soultion other than storing cookies in user device ?... thanks.

EbrahemSamer's avatar
EbrahemSamer's avatar bugsysha5yrs agoPHP
3
1
Last reply by bugsysha 5yrs ago
Victor Alfonso's avatar

How use both models with same name in laravel

Hi i using this package to get all the data from a ecommerce with woocomerce https://github.com/Codexshaper/laravel-woocommerce and i would like to use this on my Products controller to get the products from woocomerce and if doesnt exist create the products, but i got this error because i have already a model called "Product" on my laravel system. This secction is fr

Victor Alfonso's avatar
Victor Alfonso's avatar Victor Alf...5yrs agoEloquent
3
1
Last reply by Victor Alfonso 5yrs ago
davides98's avatar

Multi auth Laravel 8

I would like to create a multi-auth app. I would like to manage everything with two different tables. Admin table User table I would also like to access two different login pages admin-> login_admin users-> login_users The concept is similar to an ecommerce ... Do you have any advice on how to do it?

davides98's avatar
davides98's avatar eludic5yrs agoLaravel
6
1
Last reply by eludic 5yrs ago
EbrahemSamer's avatar

How to track every click on a product and any link in a pricing comparison website ?

I've tried google analytics and It can track users activity. I heard about Google enhanced ecommerce but its realy confusing and I heard also about Google tag manger. I do not know what to use and how and what the difference between them..... If there any tutorials please put it here...... thanks..

EbrahemSamer's avatar
EbrahemSamer's avatar jlrdw5yrs agoGeneral
1
1
Last reply by jlrdw 5yrs ago
mariam528's avatar

item get removed from cart when we go backward

hello i am making an eCommerce application in laravel and adding products to the cart using session. whenever a product is added to the cart, it will redirect to the basket page where all cart products are shown. but i just noticed that when I add the item to the cart and after that if I click the back arrow of the browser, the item is removed from the session. everything is wo

mariam528's avatar
mariam528's avatar mariam5285yrs agoLaravel
4
1
Last reply by mariam528 5yrs ago
nscott's avatar

Cart items not getting added back into stock when fully removed from cart

I have an e-commerce site that I developed with Laravel. I am trying to get the stock quantity of a product to update in the database when a user clicks on the delete item button. This is different than if a user clicks the decrease item button. I have not yet posted to these forums so I am not sure what protocol is or information is needed. Below is the code for removing all q

nscott's avatar
nscott's avatar nscott5yrs agoLaravel
14
1
Last reply by nscott 5yrs ago
JanOve's avatar

A non well formed numeric value encountered

Hi, I'm on to build a ecommerce with laravel 7. But now I'm stuck with this error: A non well formed numeric value encountered. I have searched for a solution online but I can not find any help. My course leader can not answer that either. In the top of the file I has this lines of code. @php $featured = DB::table('products')->where('status',1)->orderBy('id','desc')->

JanOve's avatar
JanOve's avatar Snapey5yrs agoLaravel
11
1
Last reply by Snapey 5yrs ago
murilo's avatar

best way to make a cart on a vue single application + Laravel

Hello , I am building a Larvel + Vue single application ecommerce . I would like to know what is the best way to store the cart of products , that the user select . As I am using a VUE single application , I can store that on Javascript Cookie ( I will use SSR , so I will not able to use Local Storage ) . Other option is use Redis , I had never worked with Redis , I wold like t

murilo's avatar
murilo's avatar martinbean5yrs agoVue
1
1
Last reply by martinbean 5yrs ago
ahmeda's avatar

How to get to tenants data throw central admin panel ?

The question to anyone used this package: https://tenancyforlaravel.com/ My idea: I wanna to create an e-commerce app contains multi-tenants with multi-database, that's mean I have an admin panel for the main admin and another admin panel for tenants (vendor) I installed the PK above the all things are fine! My question: How Can The Admin panel(main one) reach to the tenants da

ahmeda's avatar
ahmeda's avatar cletous1yr agoLaravel
8
1
Last reply by cletous 1yr ago
morethanctrlc's avatar

What courses to take

I messaged support here, but didn't get any answer, so I thought maybe forum could help. This is what I wrote them: Hello, I've learned some php, html, css and JS a while ago and it helped me develop and maintain several e-commerce websites for our small business. I'm not making money by web development, it's just a hobby for me, also saving us a few bucks. The sites we're runn

morethanctrlc's avatar
morethanctrlc's avatar morethanct...5yrs agoGeneral
4
1
Last reply by morethanctrlc 5yrs ago
anilkumarthakur60's avatar

updating the multiple image gets deleted non-updated image

i am doing ecommerce project ,for the product i have setup 4 images per products but while updating the product image it gets updated but non updated imge gets deleted my model is public function delete_images(){ Storage::delete($this->product_image_1); Storage::delete($this->product_image_2); Storage::delete($this->product_image_3);

anilkumarthakur60's avatar
anilkumarthakur60's avatar anilkumart...5yrs agoLaravel
0
1
Charrua's avatar

Browser automation tests for external websites using puppeteer or similar tool

Hello, I need to test some functioning on multiple clients websites. These are e-commerce websites so I need to create some basic tests. Eg. open store page, add to cart product, go to checkout and verify some data. As I need to deploy this solution on 5-6 websites, I was thinking on a Laravel app to manage data, have a history and send me some notifications to slack and email.

Charrua's avatar
Charrua's avatar Charrua5yrs agoGeneral
2
1
Last reply by Charrua 5yrs ago
haniabidkz's avatar

Adding guest data into cart [JWT REST API]

I am developing an eCommerce application rest API. This API will be consumed by mobile developers to build an e-commerce app. I am facing an issue regarding the shopping cart, A user without being logged-in can add the data to the cart and the data will be stored in a database table named cart. Cart table has product, quantity, guest_id (For guest id), user_id(For authenticated

haniabidkz's avatar
haniabidkz's avatar martinbean5yrs agoLaravel
3
1
Last reply by martinbean 5yrs ago
adityar15's avatar

Looking for suggestion in terms of user login

So I am working on a white label web application using Laravel and Livewire that has one backend code and server while different front end code as it will be different for each client (Whitelabel). It will be having e-commerce functionality as well so I wanted a suggestion with regards to user login while checkout or keep it as the traditional method of checkout form filling. A

adityar15's avatar
adityar15's avatar jlrdw5yrs agoGeneral
1
1
Last reply by jlrdw 5yrs ago
app_dev's avatar

What is your UI suggestion for Laravel and Vue?

I am developing e-commerce software. I need a UI for the front end that will speed me up. What do you suggest me? I use vue, vuerouter. I will use Axios for my APIs. Using Bootstrap with vue is a waste of time. Vue compatible UI is required.

app_dev's avatar
app_dev's avatar MarianoMor...5yrs agoLaravel
1
1
Last reply by MarianoMoreyra 5yrs ago
app_dev's avatar

Why error ? Laravel 8 Install

it is use. "composer create-project --prefer-dist laravel/laravel e-commerce dev-develop" error: " [InvalidArgumentException] Could not find package laravel/laravel with version dev-develop in a version installable using your PHP version, PHP extensions and Composer version. " But WHY ???

app_dev's avatar
app_dev's avatar FillipiN3yrs agoLaravel
11
1
Last reply by FillipiN 3yrs ago
davism24's avatar

Laravel Filtering Results using Checkbox Selectors

Hi all, I’m looking for some guidance on this issue I’ve been trying to fix for a few weeks now. I haven’t been able to find any videos on Laracasts that seem to address my issue but I just joined so if you can think of one please feel free to list it. Background: My website houses a set of games and each game has a set of tags. This is very similar to an ecommerce site and the

davism24's avatar
davism24's avatar guybrush_t...5yrs agoLaravel
3
1
Last reply by guybrush_threepwood 5yrs ago
TonnnnUK's avatar

Forge - Adding friends Digi Ocean account to my Forge account...

My friend wants to create an ecommerce site which I have said I can do but I want him to set up and control his domain and hosting. I currently have my own digital ocean and forge set up which I host multiple projects on. But before I go ahead and get my friend to sign up with DO, I just want to make sure that I will be able to then connect his DO account to my Forge account. I

TonnnnUK's avatar
TonnnnUK's avatar TonnnnUK5yrs agoForge
0
1
ctyler's avatar

How to record product orders

Hello all, I have a generalized question on an eCommerce site and the recording of orders/invoices. So if you have a list of products on your site that has a name, price, etc. When someone purchases you would create an order. As part of that order you would list the product with the name, price etc. The issue that I am curious about is how the order/invoice is recorded. So you

ctyler's avatar
ctyler's avatar sr575yrs agoCode Review
5
1
Last reply by sr57 5yrs ago
m615's avatar

Can I authenticate with Sanctum using another Laravel backend instead of a SPA?

I have two laravel applications. One is going to be an Admin application that will control all the content for several subdomain apps that I'm creating with another Laravel app that will basically be an e-commerce application. I'm using Laravel 8 and I've implemented Sanctum because it's part of the Laravel Jestream Auth system. My Laravel Ecommerce application will be making R

m615's avatar
m615's avatar m6155yrs agoLaravel
0
1
BlueSilver's avatar

Laravel+chat platform

Hi all, I want to make a website for e-commerce and to allow chat between shop owners and registered customers. Can you tell me what is the best chat platform for this. If there is a free service for a start that would be great. Thanks a lot

BlueSilver's avatar
BlueSilver's avatar Palak275yrs agoFeedback
2
1
Last reply by Palak27 5yrs ago
sandyboy's avatar

How to get id as parent and assign to next row column as child

I'm developing an e-commerce for user to select multiple product. In addition, user are able to select same product as a bundle with different quantity, description and prices as child. user data input index product qty 1 200 2 2 200 1 3 201 2 4 201 1 Sale_item table ID - ProductID - ParentID - type. - qty 1001 - 200 - nu

sandyboy's avatar
sandyboy's avatar sr575yrs agoLaravel
1
1
Last reply by sr57 5yrs ago
m615's avatar

Making API calls from one Laravel app to another

I'm building 4 e-commerce sites for a client. These 4 sites will use the same code base and be deployed as separate applications. I'm then setting up a CMS that is using Nova to manage all the product data, users and orders from all the sites. The CMS's database will be the single source of truth for all data across all the ecom apps. My approach will be that the CMS will expos

m615's avatar
m615's avatar m6155yrs agoLaravel
2
1
Last reply by m615 5yrs ago
Wakanda's avatar

How to edit environment variables from browser or user dashboard?

Hi devs, I am updating my Laravel e-commerce app and would want admin users to update the .env variables from their dashboard. How can I achieve this?

Wakanda's avatar
Wakanda's avatar devari5yrs agoLaravel
1
1
Last reply by devari 5yrs ago
Prido's avatar

Rendering blade components dynamically

Im developing a multi tanency ecommerce, so every user can customize their home page.. the home page is made up of product sliders and banners, so user can create slider then specify product category for filter then specify limit of products, title of slider and subtitle... so i have to loop the information and construct the home page wen user visits the site.. Slider1=>[pro

Prido's avatar
Prido's avatar Prido5yrs agoLaravel
1
1
Last reply by Prido 5yrs ago
archi_23's avatar

Products filter after searching on laravel

I m working on an e-commerce project. My system can search items. But I want to filter those searched items according to the range of prices. But I can't understand how to do that. Is there anybody who can help me in this regard.?

archi_23's avatar
archi_23's avatar automica5yrs agoLaravel
3
1
Last reply by automica 5yrs ago
vernancheta25's avatar

How to extract general functionality to a package

My boss wants me to copy almost the exact same functionality from one project to another to save time. I'm really against this because I will have to copy and paste code, and then maintain both codebases later on. What's your recommendation that I could do to make this task more fun. I don't really want to do the default option which is to copy and paste code. For context, it's

vernancheta25's avatar
vernancheta25's avatar automica5yrs agoLaravel
1
1
Last reply by automica 5yrs ago
vikrantsingh47's avatar

shopping cart database design for "products" table

should the "products" table for an ecommerce website have two columns: "availability" and "quantity", so that when user clicks on checkout, availability will reduce, and when the order is completed, quantity will reduce? or should it just be "quantity" ? I am a bit confused about the overall process of adding products to cart/ checkout/

vikrantsingh47's avatar
vikrantsingh47's avatar artcore5yrs agoGeneral
2
1
Last reply by artcore 5yrs ago
Araw's avatar

Need your suggestion

I develop a Ecommerce Website....But iam Little Bit Confused.....Can Anyone Please Tell me where I want to store my Category Section either in client side or in Database...if in Database Can You Please Suggest Me a Field in Table ???

Araw's avatar
Araw's avatar gitwithrav...5yrs agoLaravel
2
1
Last reply by gitwithravish 5yrs ago
aureliee123's avatar

Pagination ajax filter

Hello , i'm working on an ecommerce website where i need to filter products currently i'm sending an ajax request to the controller get the data and then append it to the view however it doesn't work when i use laravel pagination any solutions ?

aureliee123's avatar
aureliee123's avatar drewdan5yrs agoLaravel
1
1
Last reply by drewdan 5yrs ago
danielvechiu's avatar

First job struggle

Hey guys! I might sound selfish and maybe stupid for posting here, but this is the closest php community I have access to and I feel comfortable speaking here. What would you do if you were looking for your first job and what suggestions would you give me? What are some must do's in your opinion? p.s. I'm 20 and I'm in a foreign country and they require their mother language fo

danielvechiu's avatar
danielvechiu's avatar drewdan5yrs agoGeneral
2
1
Last reply by drewdan 5yrs ago
Adam_Commit's avatar

Query Strings aand Parameters - Blowing my mind!

Hi community, Running into a brick wall here with Query String/Parameter building, I have a feeling it shouldn't be this complicated but wanted to get best practice advice. I am currently building a community platform that allows/requires users to tag their content. The content is tagged via two query string parameters. Please note all relationships, tagging logic for posts inc

Adam_Commit's avatar
Adam_Commit's avatar automica5yrs agoGeneral
8
1
Last reply by automica 5yrs ago
eaglehdr's avatar

Storing Credit Card information

Hi, I am working on an ecommerce kond of platform where users will have there own currency (like most of the online games have, PUGBM , CODM) people can send that currency to other people, buy products with that currency or withdraw that to real money in their bank. For that client provided a design of multiple payment methods for a user. Some points are clear to me after some

eaglehdr's avatar
eaglehdr's avatar eaglehdr3yrs agoLaravel
7
1
Last reply by eaglehdr 3yrs ago
sajjad566's avatar

Update other component from one component

Hi, I am developing an eCommerce store with vue and laravel. I am showing the cart component inside the home component. But whenever I add an item to cart that in real time is added to the cart but the cart coomonent does not update. Cart.Vue Code: <template> <div class="cart"> <a href="#" class="lavender-btn shadow-sm" @click=&qu

sajjad566's avatar
sajjad566's avatar sajjad5665yrs agoGeneral
2
1
Last reply by sajjad566 5yrs ago
AlexGodbehere79's avatar

Laravel Multi Vendor Paypal Integration

Hello I have an ecommerce site where each user can able to connect their Paypal account and able to receive the money via their own account. I checked in the documentation that used Adaptive Payment but unfortunately it doesn't support by Paypal anymore. Ref: https://developer.paypal.com/docs/archive/adaptive-payments/gs-AdaptivePayments/ Any suggestion how to achieve that in t

AlexGodbehere79's avatar
AlexGodbehere79's avatar AlexGodbeh...5yrs agoLaravel
2
1
Last reply by AlexGodbehere79 5yrs ago
Garet's avatar

Separate front-end and back-end interface, or combined?

So far the Laravel applications I've developed tend to be a website front-end, and an administration back-end. A good example is an ecommerce website. A visitor would have the ability to register and purchase items from within the website. However, I tend to style the back-end administration area very differently, as its purpose is very different and it doesn't need all of the

Garet's avatar
Garet's avatar tduffy5yrs agoTips
1
1
Last reply by tduffy 5yrs ago
nafeeur10's avatar

How to work with separately in Laravel

https://ibb.co/T8xsdWD I want to work separately. Suppose, I want to build an E-Commerce. Storefront will be SPA and Admin will have Vendor and others system. What will be the better approach to do this type of development?

nafeeur10's avatar
nafeeur10's avatar automica5yrs agoLaravel
10
4
Last reply by automica 5yrs ago
antoniovalentin's avatar

Syntax error or access violation: 1305 FUNCTION

Hi I have a problem regarding a product page in my laravel ecommerce. In the backend I want to access the product page and I get this error. Can anyone help me? Illuminate \ Database \ QueryException (42000) SQLSTATE[42000]: Syntax error or access violation: 1305 FUNCTION smart12_laravel.JSON_EXTRACT does not exist (SQL: select products.id as proid, products.category_id as cate

antoniovalentin's avatar
antoniovalentin's avatar ridorex5yrs agoLaravel
9
1
Last reply by ridorex 5yrs ago
abingpj's avatar

Laravel paypal multi user account setup

Hello. I am planning to build an ecommerce application on Laravel where Each User can able to set up their own paypal account for their store. As of my understanding, I checked in the laravel app, I have to set client_id and secret to the .env file. Confusing part. My confusion is that, how can I manage paypal id and secrect for each user and how to handle in the .env applica

abingpj's avatar
abingpj's avatar kbuczynski5yrs agoLaravel
9
1
Last reply by kbuczynski 5yrs ago
fahaddsheikh's avatar

MultiSeller E-com on Lumen?

Hello People, I know Laravel quite well but I haven't really explored lumen. Right now I have a project in hand to build an API based e-commerce just like Alibaba. It has three basic components: Seller, Customer, and Core. Core is API based engine that will primarily contain products, orders, customers, carts and all the logic around it. It will serve to both seller and custome

fahaddsheikh's avatar
fahaddsheikh's avatar fahaddshei...5yrs agoGeneral
2
1
Last reply by fahaddsheikh 5yrs ago
Wakanda's avatar

Best way to implement product attributes

Hi Devs. Am working on an e-commerce platform. I have a Product model soon to have product attributes. Attributes List Color Size Weight //can be Kgs or Pcs Shape So should I have Models & Tables for each attribute? Or have a single attribute model & table. Which one is the best way in terms of scalability and how should I go about it? A product will have multiple att

Wakanda's avatar
Wakanda's avatar faisalshar...5yrs agoLaravel
3
1
Last reply by faisalsharif 5yrs ago
meeshal's avatar

Laravel + passport + flutter app

I have a passport rest API which I like to use to build a flutter app. What should be the proper way to implement login and other auth processes using the rest API and features that laravel and passport provides out of the box. I have read passport's docs but i am not sure what to use and what advantages or disadvantages these ways will have. The flutter app will act as a front

meeshal's avatar
meeshal's avatar meeshal5yrs agoLaravel
2
1
Last reply by meeshal 5yrs ago

Want us to email you occasionally with Laracasts news?

Nine out of ten doctors recommend Laracasts over competing brands. Come inside, see for yourself, and massively level up your development skills in the process.

Learn
BrowseSeriesCreatorSeriesLaravel PathLarabitsPlayground
Discuss
ForumPodcastSupport
Extras
Gift CertificatesApparelFAQiOS AppTerms
Social
X(Twitter)TikTokYoutube

© Laracasts 2026. All rights reserved. Yes, all of them. That means you, Todd.

Proudly hosted with Laravel Forge and DigitalOcean.

Want us to email you occasionally with Laracasts news?

Nine out of ten doctors recommend Laracasts over competing brands. Come inside, see for yourself, and massively level up your development skills in the process.

Learn
BrowseSeriesCreatorSeriesLaravel PathLarabitsPlayground
Discuss
ForumPodcastSupport
Extras
Gift CertificatesApparelFAQiOS AppTerms
Social
X(Twitter)TikTokYoutube

© Laracasts 2026. All rights reserved. Yes, all of them. That means you, Todd.

Proudly hosted with Laravel Forge and DigitalOcean.