| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Access $product from Static Page | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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!
__________________
X-Cart Gold 4.4.5 |
|||||||
#2
|
|||||||||
|
|||||||||
![]() You will need to query it in pages.php or you won't have access to it.
|
|||||||||
#3
|
|||||||
|
|||||||
![]() how to do then? pls share your code here!
__________________
x-cart gold 4.7.12, www.eyewearuk.com - Eyewear Uk http://www.eyewearcanada.com - Eyewear Canada http://www.australiaglasses.com - Australia Glasses Glasses - How to Buy Eyeglasses Online www.cheapglasses123.com Glassess USA |
|||||||
#4
|
|||||||||
|
|||||||||
![]() 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:
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey XcartGuru X-cart Tutorials | X-cart 5 Tutorials Check out the responsive template for X-cart. |
|||||||||
#5
|
|||||||
|
|||||||
![]() how to add the above code, pls?
__________________
X-Cart Version: 4.7.12 GOLD www.cheapglasses123.com prescription glasses online at discounted prices. prescriptionglassesusa.com www.loupesusa.com X-Cart Version: 4.7.11 GOLD PLUS |
|||||||
|
|||
X-Cart forums © 2001-2020
|