Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

OrderHistory Component E-Commerce

Avatar

Avatar
Validate 25
Level 3
vdhim23
Level 3

Like

1 like

Total Posts

135 posts

Correct Reply

9 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Ignite 5
Ignite 3
View profile

Avatar
Validate 25
Level 3
vdhim23
Level 3

Like

1 like

Total Posts

135 posts

Correct Reply

9 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Ignite 5
Ignite 3
View profile
vdhim23
Level 3

15-10-2015

Hi, 

I have the requirement to implement the functionality similar like orderhistory component of Commerce component-group. Under Geomatrixx-outdoors, under My Account there are two options Open Orders & Order History. Order History is to show last 12 months orders. But its not in actual if i see as below :[img]orderhistory.png[/img]

When i looked into i found inside component script some code is written as : 

//Removed CodeQ1 : At line 4, the session.getPlacedOrders(predicate, 0, 0, null);  fetches the orders. Here predicate is the property with value openOrders in case of Open Orders page but not for Order History. I dropped the same component again in Open Order page, node gets create for component but predicate property not set even if i use the same values as other. So no idea from where its coming.

Q2 : Show Order History is shows more that 1 yrs old record. When i de-compiled the e-commerce library i found the below snippet :

//Removed Code

Where  getPredicate always return null. Any Idea how can we get the records of 12 months old using the same apis. From here it seems there is no use of predicate that we are passing.

Thanks

View Entire Topic

Avatar

Avatar
Boost 5
Employee
kalyanar
Employee

Likes

5 likes

Total Posts

182 posts

Correct Reply

78 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Affirm 50
Affirm 5
View profile

Avatar
Boost 5
Employee
kalyanar
Employee

Likes

5 likes

Total Posts

182 posts

Correct Reply

78 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Affirm 50
Affirm 5
View profile
kalyanar
Employee

15-10-2015

The actual impl class which extends from this will implement this. So dont mind the null returns in the abstract class