Jump to content

Get values from database query in product page


vvaahhiidd

Recommended Posts

Hi,

I'm newbie to smarty and php.

My situation is that my product_reference is unique bu product_ean13 is similar in some products which are like each other. What I need is to have product_id of those products in one of them product page. I mean when visitors open a product page I want to show Image of those products which have the same ean13. Showing the images and HTML, CSS is ok for me, my problem is in PHP,SMARTY which should pass the value from PHP file to TPL file.

I guess I should write a function in Product.php file and pass array values to product.tpl file. But I couldn't. 

Would you please help me?

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