Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add To Cart Functionality #8

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions sfdxsrc/errorHandling/classes/Logger.cls
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
* @description :
* @author : Amit Singh
* @group :
* @last modified on : 03-23-2021
* @last modified by : Amit Singh
* @last modified on : 06-16-2024
* @last modified by : Amit Singh - PantherSchools
* Modifications Log
* Ver Date Author Modification
* 1.0 03-23-2021 Amit Singh Initial Version
Expand Down Expand Up @@ -121,10 +121,20 @@ global without sharing class Logger {

List<String> permissionSets = getPermissionSets();

//logRecord.Permission_Set_Group__c = permissionSets.get(1);
//logRecord.Permission_Set__c = permissionSets.get(0);
logRecord.Permission_Set_Group__c = permissionSets.get(1);
logRecord.Permission_Set__c = permissionSets.get(0);
return logRecord;
}

public static void logAsync(){

}

public static void log(){

}

global class ErrorLog {
@InvocableVariable(required=true)
Expand Down
19 changes: 19 additions & 0 deletions sfdxsrc/unmanaged/main/default/classes/AddToCart.cls
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/**
* @description :
* @author : Amit Singh - PantherSchools
* @group :
* @last modified on : 06-16-2024
* @last modified by : Amit Singh - PantherSchools
**/
public with sharing class AddToCart {

public static void addCart(){

}
public static void fetchActiveCart(){

}
public static void fetchPastCart(){

}
}
5 changes: 5 additions & 0 deletions sfdxsrc/unmanaged/main/default/classes/AddToCart.cls-meta.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>61.0</apiVersion>
<status>Active</status>
</ApexClass>
5 changes: 5 additions & 0 deletions sfdxsrc/unmanaged/main/default/classes/CartDetailService.cls
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
public with sharing class CartDetailService {
public CartDetailService() {

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>61.0</apiVersion>
<status>Active</status>
</ApexClass>
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import { createElement } from 'lwc';
import CartDetailPage from 'c/cartDetailPage';

describe('c-cart-detail-page', () => {
afterEach(() => {
// The jsdom instance is shared across test cases in a single file so reset the DOM
while (document.body.firstChild) {
document.body.removeChild(document.body.firstChild);
}
});

it('TODO: test case generated by CLI command, please fill in test logic', () => {
// Arrange
const element = createElement('c-cart-detail-page', {
is: CartDetailPage
});

// Act
document.body.appendChild(element);

// Assert
// const div = element.shadowRoot.querySelector('div');
expect(1).toBe(1);
});
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<template>

</template>
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { LightningElement } from 'lwc';

export default class CartDetailPage extends LightningElement {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>61.0</apiVersion>
<isExposed>false</isExposed>
</LightningComponentBundle>
Loading