Page 1 of 1
how to do changes in product.java in broadleaf-framework-2.2
Posted: Mon Jul 29, 2013 8:16 am
by Anky
How can i do some changes in the product.java ?
I want to add some more general description for product.
like
1) I want to add product installation specification.
2) which version of software it supports.
Likes this many more..
Thanks in advance.
Re: how to do changes in product.java in broadleaf-framework-2.2
Posted: Mon Jul 29, 2013 9:44 am
by phillipuniverse
Re: how to do changes in product.java in broadleaf-framework-2.2
Posted: Wed Jul 31, 2013 1:29 am
by Anky
Thanks,
But where I have to define this class file?
in controller folder ? if in controller folder then where it will come?
Re: how to do changes in product.java in broadleaf-framework-2.2
Posted: Wed Jul 31, 2013 3:02 am
by Anky
I have did all the changes as per this link:-
http://docs.broadleafcommerce.org/core/ ... g-entities then after doing all this changes I am getting this below error:-
HTTP ERROR: 503
Problem accessing /. Reason:
Service Unavailable
Powered by Jetty://
Re: how to do changes in product.java in broadleaf-framework-2.2
Posted: Wed Jul 31, 2013 3:33 am
by Anky
<bean id="org.broadleafcommerce.core.order.domain.Order" class="com.mycompany.order.domain.MyOrderImpl" scope="prototype"/>
can you plz explain me this folder
com.mycompany.order.domain.MyOrderImpl
do I need to make new folder order and then one more domain folder under that I need to pass MyorderImpl.java file
and one more question what will order contains?
currently I am having folder layout like this:-
com.marketplace.controller
Re: how to do changes in product.java in broadleaf-framework-2.2
Posted: Wed Jul 31, 2013 3:33 am
by Anky
<bean id="org.broadleafcommerce.core.order.domain.Order" class="com.mycompany.order.domain.MyOrderImpl" scope="prototype"/>
can you plz explain me this folder
com.mycompany.order.domain.MyOrderImpl
do I need to make new folder order and then one more domain folder under that I need to pass MyorderImpl.java file
and one more question what will order contains?
currently I am having folder layout like this:-
com.marketplace.controller
Re: how to do changes in product.java in broadleaf-framework-2.2
Posted: Wed Jul 31, 2013 4:16 am
by Anky
If possible please explain me the steps to extend my productImpl class.
and where I need to create a new folder under com>marketplace>controller?
and what all changes I have to .xml files..
Re: how to do changes in product.java in broadleaf-framework-2.2
Posted: Wed Jul 31, 2013 5:28 am
by noblegraves
try out these i had seen this in a java book:
package org.broadleafcommerce.core.order.service;
import org.broadleafcommerce.core.offer.domain.OfferCode;
import org.broadleafcommerce.core.offer.service.exception.OfferMaxUseExceededException;
import org.broadleafcommerce.core.order.domain.Order;
import org.broadleafcommerce.core.order.domain.OrderItem;
import org.broadleafcommerce.core.order.service.call.GiftWrapOrderItemRequest;
import org.broadleafcommerce.core.order.service.call.OrderItemRequestDTO;
import org.broadleafcommerce.core.order.service.exception.AddToCartException;
import org.broadleafcommerce.core.order.service.exception.RemoveFromCartException;
import org.broadleafcommerce.core.order.service.exception.UpdateCartException;
import org.broadleafcommerce.core.order.service.type.OrderStatus;
import org.broadleafcommerce.core.payment.domain.PaymentInfo;
import org.broadleafcommerce.core.payment.domain.Referenced;
import org.broadleafcommerce.core.payment.service.type.PaymentInfoType;
import org.broadleafcommerce.core.pricing.service.exception.PricingException;
import org.broadleafcommerce.core.workflow.WorkflowException;
import org.broadleafcommerce.profile.core.domain.Customer;
import java.util.List;
Re: how to do changes in product.java in broadleaf-framework-2.2
Posted: Wed Jul 31, 2013 7:50 am
by Anky
Thanks for reply.
But I want to do changes in productimpl.class not in order.class..