intershop

Intershop 7.10. - fetching payment configuration

若如初见. 提交于 2021-02-10 03:17:55
问题 We would like to fetch the payment configuration from Order in Java class (OrderBO extension). So far we have managed to fetch the service like this: final OrderBOPaymentExtension<OrderBO> paymentExtension = getExtendedObject().getExtension(OrderBOPaymentExtension.EXTENSION_ID); final PaymentBO paymentBO = paymentExtension.getPaymentBOs().stream().findFirst().orElse(null); PaymentServiceBO paymentServiceBO = paymentBO.getPaymentServiceBO(); Now we need to fetch the configuration, so we can

Intershop 7.10. - fetching payment configuration

混江龙づ霸主 提交于 2021-02-10 03:15:46
问题 We would like to fetch the payment configuration from Order in Java class (OrderBO extension). So far we have managed to fetch the service like this: final OrderBOPaymentExtension<OrderBO> paymentExtension = getExtendedObject().getExtension(OrderBOPaymentExtension.EXTENSION_ID); final PaymentBO paymentBO = paymentExtension.getPaymentBOs().stream().findFirst().orElse(null); PaymentServiceBO paymentServiceBO = paymentBO.getPaymentServiceBO(); Now we need to fetch the configuration, so we can

Setup Intershop 7.10 Development environment

元气小坏坏 提交于 2020-01-24 19:34:27
问题 Folks, Can you please help me with below error coming when executing gradlew clean eHCR publish FAILURE: Build failed with an exception. Where: Build file 'D:\Projects\xxx\xxx_project\xxx_assembly\build.gradle' line: 15 What went wrong: A problem occurred evaluating project ':xxx_assembly'. Could not resolve all dependencies for configuration ':xxx_assembly:com.intershop.assembly:commerce_management_b2x'. Could not find com.intershop.assembly:commerce_management_b2x:7.10.3.1. Required by: com

How to register ORMObjectListener in Intershop7

倾然丶 夕夏残阳落幕 提交于 2020-01-15 06:02:16
问题 We have implemented several custom ORM objects in our webshop implementation that have references (dependencies) to Intershop Product system object. When a user tries to delete a certain product in back-office, it causes problems because references to that product may still exist in our custom objects. Naturally, deleting a product that is referenced from one of our custom objects generates an exception like this: java.sql.SQLTransactionRollbackException: ORA-02091: transaction rolled back

intershop ORMException could not update - refresh ORMObject

十年热恋 提交于 2019-12-31 05:19:12
问题 In a clustered intershop environment, we see a lot of error messages. I'm suspecting the communication between the application servers is not reliable. Caused by: com.intershop.beehive.orm.capi.common.ORMException: Could not UPDATE object: com.intershop.beehive.bts.internal.orderprocess.basket.BasketPO Is there safe way to for the local application server, to load the latest instance. BasketPO basket = null; try{ BasketPOFactory factory = (BasketPOFactory) NamingMgr.getInstance()

intershop get date in .isml template

陌路散爱 提交于 2019-12-11 06:35:30
问题 I need to check the condition: <isif condition="#not ((Product:QLC_Enable EQ 'true') AND (Product:QLC_ValidTo > NOW) AND (Product:QLC_Quantity < 1))#"> <span class="items-in-stock align-left"> <isinclude template="product/inc/CC_StockStatus"/> </span> </isif> But it seems that it is incorrect to use this segment: Product:QLC_ValidTo > NOW Particularly the problem is the syntax for 'NOW'. I have no idea how it should be set and cannot find out in their documentation. Can anybody help? 回答1: I

Mixing REST API usage and Standard Responsive Checkout

こ雲淡風輕ζ 提交于 2019-12-11 05:07:41
问题 I want to build a native mobile app the adds products to the cart using Intershop's REST API. That part is easy. However, for the checkout I would like to use the standard responsive web application. Any suggestions how these two approaches can be mixed elegantly? 回答1: I solved it now by writing a little pipelet, that attaches the basket created via REST API to the current session. public class AttachBasketToSession extends Pipelet { @Inject CurrentApplicationBOProvider

How to call custom methods from CalculationResultView class

末鹿安然 提交于 2019-12-11 04:47:05
问题 We implemented custom calculation view class with custom methods e.g. "getMonthlyDiscount", "getMonthlyPrice", etc. and registered it with component framework to BasketBOCalculationResultViewExtensionFactory. The problem is we are unable to find information of how to call those methods to get calculated results. By calling "basketbo.getExtension(BasketBOCalculationResultViewExtension.class)" we get "BasketBOCalculationResultViewExtensionImpl", so only methods defined in

intershop ORMException could not update - refresh ORMObject

雨燕双飞 提交于 2019-12-02 09:40:47
In a clustered intershop environment, we see a lot of error messages. I'm suspecting the communication between the application servers is not reliable. Caused by: com.intershop.beehive.orm.capi.common.ORMException: Could not UPDATE object: com.intershop.beehive.bts.internal.orderprocess.basket.BasketPO Is there safe way to for the local application server, to load the latest instance. BasketPO basket = null; try{ BasketPOFactory factory = (BasketPOFactory) NamingMgr.getInstance().lookupFactory(BasketPOFactory.FACTORY_NAME); try(ORMObjectCollection<BasketPO>baskets = factory