ZORROwned Posted April 28, 2021 Share Posted April 28, 2021 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 Link to comment Share on other sites More sharing options...
endriu107 Posted April 28, 2021 Share Posted April 28, 2021 You can find a list in google just type "smarty global variables". Link to comment Share on other sites More sharing options...
ZORROwned Posted April 28, 2021 Author Share Posted April 28, 2021 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 More sharing options...
endriu107 Posted April 28, 2021 Share Posted April 28, 2021 You need to dump $product or $combinatons and checks what it's return, not all files have access to same data. Link to comment Share on other sites More sharing options...
ZORROwned Posted April 28, 2021 Author Share Posted April 28, 2021 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now