How can i add sizing and color options to my products when adding them to cart?
hello there, thanks for your interest. product variants size color it is a big feature and I have a plan to implement it like this: in product model add this:…
Answer
hello there, thanks for your interest. product variants size color it is a big feature and I have a plan to implement it like this: in product model add this:…
hello there, send screenshot of error in chrome console to find the error. also share the code on github please.
[apcode language="jscript"] import Image from 'next/image'; import Link from 'next/link'; import React, { useContext } from 'react'; import { XCircleIcon } from '@heroicons/react/outline'; import Layout from '../components/Layout'; import { Store…
I already answered it here: https://codingwithbasir.com/question/order-validation-failed-user-path-user-is-required/
you might get this error if you use the same model in different files but your require path has an other case. For example, in my situation I had require('./models/User') in one…
hello there, please compare your code with this: https://github.com/basir/react-18-shopping-cart/blob/master/src/App.js#L10 share the code you use to add the item to the cart.
do you have .env file in the root folder of the project and does it have this line: MONGODB_URI=mongodb://localhost/amazona follow this guide to set MongoDB connection: https://github.com/basir/mern-amazona#run-locally
use console.log in this code to find it why the user does not create: https://github.com/basir/sanity-amazona/blob/main/pages/api/users/register.js#L25
Answer: it says you didn’t set user in order model here: https://github.com/basir/mern-amazona/blob/master/backend/routes/orderRoutes.js#L32 use console.log(req.user) to see what you pass to db and fix the issue there.
createTheme is the newer name, createMuiTheme is deprecated https://github.com/elyra-ai/elyra/pull/1885. You are correct createTheme() is used to apply different default styles to the Mui components makeStyles() is a good way to make custom css classes for your new…