Skip to Content
0
Mar 27, 2019 at 09:14 AM

when i enable product bundling cart not working

46 Views

i am unable to add products to cart its showing error while adding products to cart. i have added configurablebundleaddon and added a sample impex for my store

INSERT_UPDATE BundleTemplateStatus;id[unique=true];status(code)[default='approved'];$catalogVersion ;Status_Bundle

Add BundleTemplate and BundleTemplateStatus as rootTypes to the synchronization

PDATE CatalogVersionSyncJob;code[unique=true];roottypes(code)[mode=append]; ;$syncJobCode;BundleTemplate,BundleTemplateStatus;

Photography Starter and Photography Professional packages

NSERT_UPDATE BundleTemplate;id[unique=true];parentTemplate(id, version[default=1.0], $catalogVersion);status(id, $catalogVersion)[default='Status_Bundle'];version[default=1.0][unique=true];$catalogVersion ;PhotoBundlePackage ;StarterHardwareComponent;PhotoBundlePackage ;StareterSoftwareComponent;PhotoBundlePackage ;StarterServiceComponent;PhotoBundlePackage

Set the child templates again to make sure that the sequence of child templates is correct

PDATE BundleTemplate;id[unique=true];version[default=1.0][unique=true];childTemplates(id,version[default=1.0],$catalogVersion);$catalogVersion ;PhotoBundlePackage;;StarterHardwareComponent,StareterSoftwareComponent,StarterServiceComponent

UPDATE BundleTemplate;id[unique=true];products(code, $catalogVersion);version[default=1.0][unique=true];$catalogVersion ;StarterHardwareComponent;server1 ;StareterSoftwareComponent;software1,software4 ;StarterServiceComponent;silver

INSERT_UPDATE PickNToMBundleSelectionCriteria;id[unique=true];n;m;starter;$catalogVersion ;StarterHardwareComponent_Pick1to2;1;2;true ;StareterSoftwareComponent_Pick1to2;1;2

UPDATE BundleTemplate;id[unique=true];bundleSelectionCriteria(id, $catalogVersion);version[default=1.0];$catalogVersion ;StarterHardwareComponent;StarterHardwareComponent_Pick1to2 ;StareterSoftwareComponent;StareterSoftwareComponent_Pick1to2

Add Disable rules

EMOVE DisableProductBundleRule;id[unique=true];$catalogVersion;bundleTemplate(id,version[default=1.0],$catalogVersion);conditionalProducts(code,$catalogVersion);targetProducts(code,$catalogVersion);$ruleType #;DisableProductRule_PhotoBundlePackage_1;;StareterSoftwareComponent;software1,software4;server1 #;DisableProductRule_PhotoBundlePackage_2;;StarterHardwareComponent;server1;software1,software4

Personalized Photography Starter Package - configurable (complex) products

Add configurable product to bundle

INSERT_UPDATE BundleTemplate;id[unique=true];parentTemplate(id, version[default=1.0], $catalogVersion);status(id, $catalogVersion)[default='Status_Bundle'];version[default=1.0][unique=true];$catalogVersion ;BundlePackageEngraving ;StarterHardwareComponentEngraving;BundlePackageEngraving ;StareterSoftwareComponentEngraving;BundlePackageEngraving ;StarterServiceComponentEngraving;BundlePackageEngraving

Set the child templates again to make sure that the sequence of child templates is correct

PDATE BundleTemplate;id[unique=true];version[default=1.0][unique=true];childTemplates(id,version[default=1.0],$catalogVersion);$catalogVersion ;BundlePackageEngraving;;StarterHardwareComponentEngraving,StareterSoftwareComponentEngraving,StarterServiceComponentEngraving

UPDATE BundleTemplate;id[unique=true];products(code, $catalogVersion);version[default=1.0][unique=true];$catalogVersion ;StarterHardwareComponentEngraving;server1 ;StareterSoftwareComponentEngraving;software1,software4 ;StarterServiceComponentEngraving;silver

INSERT_UPDATE PickNToMBundleSelectionCriteria;id[unique=true];n;m;starter;$catalogVersion ;StarterHardwareComponent_Pick1to2Engraving;1;2;true ;StareterSoftwareComponent_Pick1to2Engraving;1;2

UPDATE BundleTemplate;id[unique=true];bundleSelectionCriteria(id, $catalogVersion);version[default=1.0];$catalogVersion ;StarterHardwareComponentEngraving;StarterHardwareComponent_Pick1to2Engraving ;StareterSoftwareComponentEngraving;StareterSoftwareComponent_Pick1to2Engraving

Thanks in Advance