![]() |
Access $product from Static Page
Hello,
What do I need to import to be able to access $product from a static page? More specifically, I'm trying to access the smarty tag variable {$product.productcode}... Thanks! |
Re: Access $product from Static Page
You will need to query it in pages.php or you won't have access to it.
|
Re: Access $product from Static Page
how to do then? pls share your code here!
|
Re: Access $product from Static Page
To pull in a product array, I typically use the function func_search_products
Here is an example from a module I am building for a client, it refernces some non-standard x-cart tables so won;t work for you, but it should get the juices flowing and point you in th right direction: PHP Code:
|
Re: Access $product from Static Page
how to add the above code, pls?
|
All times are GMT -8. The time now is 05:37 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.