Jump to content

Shop id in prestashop 1.7


ican

Recommended Posts

3 hours ago, tantan199 said:

This could also work.


$this->context->shop->id

 

 

I want to put it here.

$attributeGroups = $this
->getDoctrine()
->getManager()
->getRepository('PrestaShopBundle:Attribute')
->findByLangAndShop((int)$languages[0]['id_lang'], 1);

at the last instead of 1. It's not working.

Link to comment
Share on other sites

54 minutes ago, ican said:

 

I want to put it here.


$attributeGroups = $this
->getDoctrine()
->getManager()
->getRepository('PrestaShopBundle:Attribute')
->findByLangAndShop((int)$languages[0]['id_lang'], 1);

at the last instead of 1. It's not working.

 

 

In which file you are making these changes means module file, class file, controller file, vendor file etc?

 

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...