Is there any way for recently viewed products list?
Page 1 of 1
Recently viewed products
#2
Posted 16 January 2012 - 10:19 AM
Yes, by creating a custom module which keeps track of the customer and the X recently viewed products. You would need to extend the customer model with a list of products. On the product page, push the current $product to the front of the list, and slice off the extra products after the total desired.
http://lemonstandapp...nstand_modules/
http://lemonstandapp...onstand_events/
http://lemonstandapp...nstand_modules/
http://lemonstandapp...onstand_events/
#3
Posted 17 January 2012 - 03:31 AM
Eric, on 16 January 2012 - 10:19 AM, said:
Yes, by creating a custom module which keeps track of the customer and the X recently viewed products. You would need to extend the customer model with a list of products. On the product page, push the current $product to the front of the list, and slice off the extra products after the total desired.
http://lemonstandapp...nstand_modules/
http://lemonstandapp...onstand_events/
http://lemonstandapp...nstand_modules/
http://lemonstandapp...onstand_events/
Thanks for the some suggestions but still I am not so clear,
Yes I know that I have to create a custom module for it but I dont know which event should be more proper for it?
its valid - shop:onDisplayProductList event...?
we required the product detail page load event with current customer Id ... how can I achieve this?
Thanks in Advance
#4
Posted 19 January 2012 - 03:55 AM
not the solution looking for but a simple option is to do it client side and save lemonstand the overheads.
Make use of HTML5's localstorage and incorporate it into your templates so that a javascript storage method is executed on each product detail page.. .. create a function to retrieve the list... job done. Not all browsers support localstorage but you can detect with Modernizr and use cookies as backup or leave it as a feature for those priveliged enough to have a recent enough browser.
Make use of HTML5's localstorage and incorporate it into your templates so that a javascript storage method is executed on each product detail page.. .. create a function to retrieve the list... job done. Not all browsers support localstorage but you can detect with Modernizr and use cookies as backup or leave it as a feature for those priveliged enough to have a recent enough browser.
#5
Posted 19 January 2012 - 10:15 AM
Urvi, on 17 January 2012 - 03:31 AM, said:
Thanks for the some suggestions but still I am not so clear,
Yes I know that I have to create a custom module for it but I dont know which event should be more proper for it?
its valid - shop:onDisplayProductList event...?
we required the product detail page load event with current customer Id ... how can I achieve this?
Thanks in Advance
Yes I know that I have to create a custom module for it but I dont know which event should be more proper for it?
its valid - shop:onDisplayProductList event...?
we required the product detail page load event with current customer Id ... how can I achieve this?
Thanks in Advance
Well, definitely these two:
- shop:onExtendCustomerModel event - allows to extend customer model. You can add new fields to the customer model in the event handler.
- shop:onExtendCustomerForm event - allows to add new fields to the Create/Edit Customer form in the Administration Area.
You can see here how a customer model is extended with wish lists. In your case it would be customer model and product lists.
Share this topic:
Page 1 of 1

Help













