| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
common if/then modifications I make to x-cart... | ||||
|
|
Thread Tools | Search this Thread |
#31
|
|||||||
|
|||||||
Not that I know of Mike.
If we can't work it out I'll go to xcart for the solution and post it here. I want to mainly use it for a Club /Premium member menu only to show for them. Cheers Chris |
|||||||
#32
|
|||||||
|
|||||||
lol, alright, let's get serious about this
So - we can assign variables for sure - that shouldn't be a problem - here is what we should be working with from what I can tell - and I'd like to put this into your auth.php file. Code:
Now, this really should do the trick I would think - may need some slight tweaking though so lemme know. You can pretty much stick this at the end of the file... Then your if/then tag would look like: Code:
Cheers!
__________________
Instinctual 8,000 feet up in the Rocky Mountains of Colorado X-Cart Versions 3.5.x - 4.0.x IF you xcart, THEN you prosper, ELSE you fail. ELSEIF xcart fails, THEN you fix it, all the WHILE {loop}\'ing {section}\'s to feed your $smarty mind. |
|||||||
#33
|
|||||||
|
|||||||
Hi Instinctual
Added to home.tpl Code:
Added the code to auth.php Code:
No joy yet. FYI this is the site I am working on, though that won't help of course. Only one product so far of course as I test and build. www.seriouslygourmet.com.au/index.php Logging in with peter piper Who is a Premium member Cheers 4.016 |
|||||||
#34
|
|||||||
|
|||||||
Make sure you're adding this after the very last "}" in auth.php - (sorry, not sure what your smarty/php experience is). Or you can add it above the $pages_menu func query if you like as well.
Nice site btw - really good layout - most people don't do the expanding/contracting design, I likey ;o)
__________________
Instinctual 8,000 feet up in the Rocky Mountains of Colorado X-Cart Versions 3.5.x - 4.0.x IF you xcart, THEN you prosper, ELSE you fail. ELSEIF xcart fails, THEN you fix it, all the WHILE {loop}\'ing {section}\'s to feed your $smarty mind. |
|||||||
#35
|
|||||||
|
|||||||
Hey Instinctual
It's where I put it in auth.php that was the problem. It works like a treat now! So for others who read this - the solution at Posted: Thu Oct 27, 2005 9:03 am is the crroect one. Check where you place it in auth. I really appreciate you sticking with this one. Others will surely benefit Cheers Chris |
|||||||
#36
|
|||||||
|
|||||||
Further to this - This will work a treat with a small mod I had x-cart do with my embedded static pages.
I can make a page but select it so that it does not display in the standard help menu but is still available. This way I can make up a new menu for only members and load it with static page urls I have created. Then with what Instinctual has worked through I can now make this menu only show when a person logs in as a Member. Cheers Chris 4.016 |
|||||||
#37
|
|||||||
|
|||||||
Cheers!
I will be sure to hoot and holler as I'm ripping through some singletrack on my motox bike tomorrow I'll edit my previous posts to all point to the correct one for the solution ;o) You may want to do the same.
__________________
Instinctual 8,000 feet up in the Rocky Mountains of Colorado X-Cart Versions 3.5.x - 4.0.x IF you xcart, THEN you prosper, ELSE you fail. ELSEIF xcart fails, THEN you fix it, all the WHILE {loop}\'ing {section}\'s to feed your $smarty mind. |
|||||||
#38
|
|||||||
|
|||||||
My future son-in-law would love to join you 8000' in the Rockies - pity he is in Australia. He has a WR450 Yamaha trail bike.
I'll look at my posts also. Cheers Chris |
|||||||
#39
|
|||||||
|
|||||||
lol, I'm headin' upto 13k tomorrow - will be the last ride of the season that high, but what a great time of the year for it ;o)
Takin' the YZ250F - should be some good times, woot!
__________________
Instinctual 8,000 feet up in the Rocky Mountains of Colorado X-Cart Versions 3.5.x - 4.0.x IF you xcart, THEN you prosper, ELSE you fail. ELSEIF xcart fails, THEN you fix it, all the WHILE {loop}\'ing {section}\'s to feed your $smarty mind. |
|||||||
#40
|
|||||||
|
|||||||
Quote:
Can this be altered so that people who are unregistered can see a specific membership level. I want the unregistered users to see the Retail products and registered users to see the products based on their membership level.
__________________
Dan XCart 4.1.6 Pro XCart 4.1.6 Gold Redhat 7.2 Perl 5.006001 PHP 4.1.2 |
|||||||
|
|||
X-Cart forums © 2001-2020
|