Questions tagged [commerce]

E-Commerce related questions

221 questions
1
vote
1 answer

Designing a rudimentary Shopping Cart database

create table [User] ( UserId int primary key identity(1,1), FirstName nvarchar(256) not null, LastName nvarchar(256) not null, ) create table Product ( ProductId int primary key identity(1,1), UnitPrice decimal(18,2) not null,…
Only Bolivian Here
  • 35,719
  • 63
  • 161
  • 257
1
vote
1 answer

Drupal generate commerce coupon programmatically

I am using drupal with drupal commerce, when a user like the page with facebook like button, I generate a coupon and serve it to the client. All is going well atm. except for one thing, how do I generate a new coupon?
Nealv
  • 6,856
  • 8
  • 58
  • 89
1
vote
1 answer

How can I combine multiple categories into a single entity?

Having studied the documentation and queries in commercetools, I could not find the following thing. I know that a product has variants and multiple products can be combined into categories, but how do I combine multiple categories into something…
Dmitriy
  • 11
  • 2
1
vote
0 answers

Getting reindexing issue after 2.4.1 to 2.4.5 commerce upgrade

$ bin/magento indexer:reindex catalog_product_flat Product Flat Data index process error during indexation process: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'row_id' in 'field list', query was: INSERT INTO…
pavani
  • 31
  • 3
1
vote
0 answers

How can I fix 404 error when trying to "Add to Cart" in Drupal Commerce?

We've moved a site from one server to another and don't usually do any work with Drupal - all looked to be working fine on the site but the Add to Cart function is failing - it brings up a 404 error with this response {"message":"The…
user759542
  • 73
  • 1
  • 8
1
vote
2 answers

Material ui Loading Button Loads all button onClick in React js loop (using map)

So, I was working on commerce.js API. But when I press add to cart, it takes a bit of time to update the cart items number (from API) so I thought I should add a loading button until the cart items load. I found LoadingButton from @mui/lab so I used…
Tauhid
  • 37
  • 7
1
vote
1 answer

How to create a new OccEndpoints in Spartacus

I created a new page in Spartacus. On this page, I also wrote the necessary services to receive the data from the backend. I created a WSDTO class for my new page. As with PDP - PLP pages when the page is opened, Google vs. I also made the…
1
vote
2 answers

Max field set size exceeded in Spartacus set-up

I'm adding a new field to the ProductWSDTO and making the necessary additions to use this field on the spartacus frontend. But when I want to open PDP, I get the following error. How can I solve this…
1
vote
0 answers

Cart data is available at navbar component but not in Cart component (reactJs commerceJs)

this is the code I am working with. When the cart component is not active the cart data loads perfectly, but when the cart component is active cart data is undefined. import './App.css'; import { commerce } from './lib/commerce'; import {…
1
vote
1 answer

Why getStatickProps return undefine for commerce js?

I am trying Commerce js with NextJS in the commerce.js file everything works well and I have all the return data. But when I import the data from commerce.js file getStaticProps return undefine import { client } from '../utils/commerce' const…
fyardlest
  • 288
  • 4
  • 17
1
vote
1 answer

Having trouble displaying the total price in Cart

So the problem I am currently facing is this. I have a Cart logic located in the CartContext. Everything works except subtotal it should display the price total price of the items, but it is displaying NAN. Here is the REAL link to the CodeSandbox…
mura1
  • 472
  • 5
  • 20
1
vote
1 answer

SAP Commerce Cloud - Attribute values inheritance from Product to Variant Product

we are using SAP Commerce Cloud 2011 and we need to know (if there is a possibility) how inheriting a Product attribute value within its Variant Product Master Data. Our case is the following one: we have a T-shirt (Product) that has the attribute…
Anthony
  • 15
  • 2
1
vote
0 answers

SAP Commerce: Implementation of AutoPick function in 2005

I am currently implementing configurableBundle extension and testing the auto pick functionality. Is see that there is an "isAutoPick" function in configurableBundle addon. But I do not see any usages. In this article…
andyRandy
  • 93
  • 1
  • 3
  • 10
1
vote
1 answer

In Drupal 8 commerce module how to get disounted amount from cart?

I'm looking into commerce module for drupal 8 and using its submodule commerce promotion. So i only want to get discounted price in current user cart. i got coupon code but that doesn't help to get discounted amount. Please help.
Sourabh Bhutani
  • 623
  • 11
  • 21
1
vote
1 answer

hybris - one to many and many to many relationship

In our production sytem, we have an existing relationship which is one to many. We would like to change this relationship to many to many due to business/data reasons. What steps we need to take without loosing data and with no impact to production…
BNR
  • 89
  • 2
  • 13
1 2
3
14 15