cancel
Showing results for 
Search instead for 
Did you mean: 

Personalization

former_member658721
Participant
0 Kudos

Hello,

I added "btg" and "btgcockpit" extensions in my localextensions.xml file also added below lines in web.xml to enable the rule evaluation. When I start the server I am getting class not found exception "de.hybris.platform.store.web.servlets.BTGSegmentFilter". Could any one help me which extension has the class so that I can enable. Not able to find that class in the store front.

     <filter-name>BTGSegmentFilter</filter-name>
     <filter-class>de.hybris.platform.store.web.servlets.BTGSegmentFilter</filter-class>
 </filter>
     <filter-mapping>
     <filter-name>BTGSegmentFilter</filter-name>
     <url-pattern>/view/*</url-pattern>
 </filter-mapping>

Accepted Solutions (1)

Accepted Solutions (1)

former_member747843
Active Participant
0 Kudos

It depends which Hybris version you have. Starting with Hybris Commerce Accelerator 6.1, BTG is no longer a default feature. Instead, the b2cbtgaddon AddOn can be used to enable the storefront with BTG functionality.
https://help.hybris.com/6.5.0/hcd/31c94e8303e7440e9b247b8809e6645f.html

former_member658721
Participant
0 Kudos

Hi Kinga,

Thanks for your reply.

(1) I am using version 6.2 and added these in localextensions.xml file..

  <extension name='btg' />
 <extension name='btgcockpit' />
 <extension name='b2cbtgaddon' />    
 <extension name="addonsupport"/>
 <extension name="acceleratorstorefrontcommons"/>

(2) After adding installed this add on ant addoninstall -Daddonnames="b2cbtgaddon" -DaddonStorefront.yacceleratorstorefront="yacceleratorstorefront"

(3) Ran ant clean all

(4) Still not seeing the btg folder under filters in storefront. Not able to find "BTGSegmentFilter.java" in the entire hybris folder ( I searched even the entire folder).

I thought those extensions will generate the filters related to BTG evaluator.

Thanks.

former_member747843
Active Participant
0 Kudos

BTGSegmentFilter.java should be in hybris/bin/ext-addon/b2cbtgaddon/acceleratoraddon/web/src/de/hybris/platform/b2cbtgaddon/filters/btg/BTGSegmentFilter.java
After installaddon and build it should be copied to yacceleratorstorefront

former_member658721
Participant
0 Kudos

Thanks Kinga. I can see the files now in yacceleratorstorefront.

Answers (2)

Answers (2)

former_member658721
Participant
0 Kudos

Thanks for your reply.

(1) I am using version 6.2 and added these in localextensions.xml file..

(2) After adding installed this add on ant addoninstall -Daddonnames="b2cbtgaddon" -DaddonStorefront.yacceleratorstorefront="yacceleratorstorefront"

(3) Ran ant clean all

(4) Still not seeing the btg folder under filters in storefront. Not able to find "BTGSegmentFilter.java" in the entire hybris folder ( I searched even the entire folder).

(5) Performed the update

I thought those extensions will generate the filters related to BTG evaluator. Because there are no BTG evaluator related classes so my rules not working when I define. Any idea why the classes not generated even after adding the extensions in the localextensions.xml file?

Thanks.

Former Member
0 Kudos

Hi , it should be provided as template within the yacceleeratorstorefront:

kr Thorsten

former_member658721
Participant
0 Kudos

Hi Korte,

Thanks for your reply.

(1) I am using version 6.2 and added these in localextensions.xml file..

  <extension name='btg' />
 <extension name='btgcockpit' />
 <extension name='b2cbtgaddon' />    
 <extension name="addonsupport"/>
 <extension name="acceleratorstorefrontcommons"/>

(2) After adding installed this add on ant addoninstall -Daddonnames="b2cbtgaddon" -DaddonStorefront.yacceleratorstorefront="yacceleratorstorefront"

(3) Ran ant clean all

(4) Still not seeing the btg folder under fileters in storefront.