Jump to content

Block ps_viewedproduct not shown Prestashop 1.7.1.1


xrdm

Recommended Posts

Hi,

I've installed module recent viewed products (ps_viewedproduct) on Prestashop 1.7.1.1 and hooked to "displayLeftColumn" and "displayFooterProduct" but it doesn't appear.
How can i fix it?

 

Thank you

Link to comment
Share on other sites

  • 2 weeks later...
  • 1 month later...
  • 3 weeks later...
  • 3 weeks later...
  • 4 months later...

viewedproducts

https://github.com/PrestaShop/ps_viewedproduct/issues/2
https://github.com/PrestaShop/ps_viewedproduct/pull/3#issuecomment-346645049

We tested it. Solution is for viewedproducts only and second solution (link 2) worked for us too. Just copying the last code part from idem84 plus add the two lines from Quetzacoalt91 into getWidgetVariables. After those changes it'll work on 1.7.2.4..

 

$id_product = isset($configuration['product']['id_product']) ? $configuration['product']['id_product'] : false;
$products = $this->getViewedProducts($id_product);

 

crossselling

Re crossselling we figured out that there's no data available if you test on the same account where you buy products, meaning if you delete the line 'AND od.product_id NOT IN ('.$list_product_ids.')' in function 'protected function getOrderProducts(array $productIds = array())' it will come visible. Question is what developer or shop owner wanted. After this changes it'll work on 1.7.2.4.

Kind regards,

Edited by Kunsthelden (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...