X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   A few questions - Wholesale, PHP and Smarty (https://forum.x-cart.com/showthread.php?t=57484)

adam.fearn 01-12-2011 02:18 AM

A few questions - Wholesale, PHP and Smarty
 
Good morning,

I have been searching the forums, and although I have seen one or two posts similar to my problem, none have provided a solution.

The main issue is that I am trying to get the lowest wholesale price to appear on the Products List page in place of the taxed Price, I have tried a few different ways of making this work, both with PHP and Smarty code, but have not met with any success. Can anyone provide me with a method that would work?

Also, I have noticed while editing the products.php located in the root, that echo doesn't seem to work - each time I would try to echo something for testing purposes, it wouldn't appear at all, although print_r() did. Same happened when working within {php} tags in skin/common_files/customer/main/products_list.tpl, is there a reason for this?

Lastly, I am assuming that $smarty->assign() will make a smarty variable from a PHP variable, I've used this once or twice but it hasn't seemed to work very well. Could someone explain its proper use? And if there's a way to change a smarty variable into a PHP variable?

Thank you for your time.

Regards,

- Adam.


All times are GMT -8. The time now is 07:47 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.