broadleaf-commerce

Broadleaf can i upload same image in Media asset and override images

守給你的承諾、 提交于 2020-01-25 06:50:10
问题 When I upload a media asset in admin side by same name image (like x.png) this image will create with new name (x-1.png). I want to replace this image with new image. How can I do that? 回答1: Delete the original image first, and then upload the new asset with the same name. 回答2: you need disable cache first by set: blPU.hibernate.cache.use_second_level_cache=false blPU.hibernate.cache.use_query_cache=false blCMSStorage.hibernate.cache.use_query_cache=false blCMSStorage.hibernate.cache.use

solr query in broadleaf

为君一笑 提交于 2020-01-02 23:00:17
问题 I am new to Solr and Broadleaf. I am working in Broadleaf, in that they using the solr search. that's perfectly fine and working condition. Product table has category field and broadleaf searches by category right now As per requirement i extend the Product table and make new table with company id, so in my ExtendedProduct table there are two fields companyId and productId(fk with product table) Now i want to get product list by companyId also. our schema.xml file looks below <?xml version="1

Spring Boot / JPA: Why would war conversion break functionality and/or JPA searches?

泪湿孤枕 提交于 2019-12-30 11:21:39
问题 I am running a application based on the Community version of Broadleaf Commerce demo site (hot sauce). To experiment with CI and deployment options, we have converted the stock spring boot packaging (jar) to war following the broadleaf and spring documentation. After conversion, the application will start normally, but it seems that some database (JPA) interactions have been broken (errors on search and DB updates). I have a few related questions: Is there additional configuration or

Spring Boot / JPA: Why would war conversion break functionality and/or JPA searches?

*爱你&永不变心* 提交于 2019-12-30 11:21:05
问题 I am running a application based on the Community version of Broadleaf Commerce demo site (hot sauce). To experiment with CI and deployment options, we have converted the stock spring boot packaging (jar) to war following the broadleaf and spring documentation. After conversion, the application will start normally, but it seems that some database (JPA) interactions have been broken (errors on search and DB updates). I have a few related questions: Is there additional configuration or

Getting error while Giving Request to MyCompany in Broadleaf Commerce

无人久伴 提交于 2019-12-25 16:50:14
问题 We are using BroadLeafCommerce Framework 3.1.0 for our application, After doing all the changes, If we'll give a request to Admin , All are good. But, If we give request to mycompany, we are getting the following stacktrace. Help me on this. Thanks --SKC java.lang.NullPointerException at org.broadleafcommerce.common.web.BroadleafRequestCustomerResolverImpl.setCustomer(BroadleafRequestCustomerResolverImpl.java:62) at org.broadleafcommerce.profile.web.core.CustomerState.setCustomer

Broadleaf: extending product entity failed

佐手、 提交于 2019-12-24 08:49:28
问题 Hi I Have extended the Broadleaf Product Entity and added a new attribute to that Entity and added the admin presentation annotation to display on the admin side Here Is My Code to Extend the entity: @AdminPresentationMergeOverrides({@AdminPresentationMergeOverride(name = "ExtendProductImpl.productWarranty", mergeEntries = {@AdminPresentationMergeEntry(propertyType = PropertyType.AdminPresentation.EXCLUDED, booleanOverrideValue=false)})}) public class ExtendProductImpl extends ProductImpl

How to override the @AdminPresentation for existing attributes [Broadleaf Commerce]

假装没事ソ 提交于 2019-12-22 18:47:24
问题 I am trying to override the @AdminPresentation of the following attribute defined in ProductImpl : @Column(name = "DISPLAY_TEMPLATE") @AdminPresentation(friendlyName = "ProductImpl_Product_Display_Template", group = GroupName.Advanced) protected String displayTemplate; Currently, it is displayed as a text field by default as there is no fieldType attribute provided. But I want to display a dropdown select menu with predefined values such as Product and Plan . Here is what I've tried so far: I

How to get a static instance of entityManager in broadleaf?

大城市里の小女人 提交于 2019-12-22 08:16:43
问题 This question is specific to broadleaf commerce. I have to load an entity in a static method. Since injecting entityManager would not help (as i cannot access it in a static method), i am not able to load the entity. I tried using Persistence.createEntityManagerFactory, but it does not help. Here is my sample code. Query query = Persistence.createEntityManagerFactory("blPU").createEntityManager().createQuery("some query"); List results = query.getResultList(); The error i am getting:- javax

How to use “map.get(key)” in Thymeleaf - Broadleaf Ecom

懵懂的女人 提交于 2019-12-17 18:20:05
问题 I have a Hashmap (String, List<Offers>) , passed to a Thymeleaf page. I am getting this map on the page and I can access it. How can I do map.get(key) with Thymeleaf? I just need to fetch the values based on a certain key and then parse and print that value, which I know and have the logic for. I am running a Broadleaf application and Thymeleaf is the UI engine for it. 回答1: You can simply use ${map.get('key')} 回答2: Using ${map.get(key)} (where key is a variable) works for me. ${map['key']}

Broadleaf Commerce admin controller not working

你。 提交于 2019-12-12 06:05:02
问题 I am adding a custom section in admin panel in broadleaf commerce referring this tutorial http://www.broadleafcommerce.com/docs/core/current/broadleaf-concepts/admin/admin-custom-controllers This is my controller class @Controller // @RequestMapping("/" + NewAdminSection.SECTION_KEY) @Secured("PERMISSION_OTHER_DEFAULT") public class NewAdminSection extends AdminAbstractController { protected static final String SECTION_KEY = "test"; @RequestMapping(value = "/test", method = RequestMethod.GET)