![]() |
slighty different layout (done in a table) - looks a little bit neater ..
http://www.cglass.co.uk/forum2.jpg Code:
{* $Id: promotions.tpl,v 1.25 2003/08/13 06:49:08 svowl Exp $ *} |
Unfortunately, my version (3.4.14) doesn't have any value associated with {$catalogs.admin} so each link tries to go to the root of the site instead of staying within the /admin/ directory. Are there any other variables that equal "/xcart/admin/" ?
My version instead of using {$catalog.admin/provider} it uses ../admin/ or ../provider/. But I was wondering if there is a config variable already assigned to these values in 3.4.14? Any help would be appreciated! |
Only 3.5.x has top.inc.php which contains these variables
You could try {assign var=$catalog.admin value="admin"} and {assign var=$catalog.propvider" value="provider"} |
Thanks for your help Boomer. I'm lazy and I'll probably just stick with using ../admin/ and ../provider/ until I upgrade to 3.5.x. Thanks!
|
Another quick question. I am trying to modify the Orders dropdown above so that I can have quick links to "Orders Completed from Last Month". In order to do this, I need to use something like this in order to generate the month value and year value for last month.
Code:
$month = date('m',strtotime ("last Month")); My question is, can I execute this code WITHIN promotions.tpl where this dropdown code is located? Or do I have to add it to home.php? Any help? Thanks! |
Just found it in the smarty doc:
Code:
{php} |
Pertaining to the post above, I used the following code to generate option list items for Last Month orders. Seems to work great in 3.4.14.
This is just the code for the first <option> section: Code:
{php} Just thought I'd share this with anyone interested. |
I took the oportunity to add a few goodies and combine a few things you guys did and make a few adjustments so it would work with 3.5.7 with "Product Configurator" & "Fancy Cat"
Code:
{*** Cart-Lab.com Admin area Quick Dropdown's ***} |
Will this mod work on v4.0.4 ??
|
Quote:
its built in to 4.0.x |
All times are GMT -8. The time now is 03:30 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.