Jump to content

I can't find variables names


Recommended Posts

Hi!

 

Im kinda new using PrestaShop, and i can't find info about this online.

 

I need to find the name of the variables of a product combination, per example the weight. I found out that i can use $product.weight for a simple product, but i didn't found the way to show up the impact weight of a product combination on a tpl.

 

How could i do this? Ty in advice

 

PS Version:  1.7.6.8

Captura.PNG

Link to comment
Share on other sites

1 minute ago, endriu107 said:

You can find a list in google just type "smarty global variables".

I figured that out, but nothing about combination variables, just general use variables.

 

Where i could find specific variables as the $product ones? That's what i need rn

Link to comment
Share on other sites

36 minutes ago, endriu107 said:

You need to dump $product or $combinatons and checks what it's return, not all files have access to same data.

You are LITERALLY GOD man.

Now i have to figure out array syntaxis on Smarty since i come from javascript, but his is a completly different topic.

 

Thank you!

 

 

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