reseller to customer
This commit is contained in:
@@ -42,7 +42,7 @@ export const fetchPackageDetails = (params) => {
|
||||
return dispatch => {
|
||||
dispatch(requestPackageDetails());
|
||||
return client.fetch({
|
||||
url: `${API_SERVER}/wp-json/wc/v2/products/${params.idPackage}`,
|
||||
url: `${API_SERVER}/wp-json/wc/v2/products/${params.idPackage}?cl_id=${params.shopId}`,
|
||||
method: 'get'
|
||||
})
|
||||
.then(response => {
|
||||
@@ -127,7 +127,8 @@ export const addToCart = (addParams) => {
|
||||
'package_id': addParams.selectedPackage.id,
|
||||
'price_id': addParams.selectedAgreement.idPrice,
|
||||
'addons_ids': result.additionalPackages,
|
||||
'options_ids': result.optionPackages
|
||||
'options_ids': result.optionPackages,
|
||||
'cl_id': addParams.shopId,
|
||||
},
|
||||
})
|
||||
.then(response => {
|
||||
|
||||
Reference in New Issue
Block a user