| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Change link based on member type | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Forgive me if someone has asked this already but I wasn't sure what to search for but hopefully someone can help. Here's what I want to do:
I want to post a link (to our catalog pdf) on the shopping cart which is easy, however when the customer logs in with a different membership type (non-profit) I want the link to download the non-profit version of the pdf rather than the retail. Is this possible? Thanks for any help in advance.
__________________
Brad Thompson Group Imaging X-Cart Gold Version 4.1.8 |
|||||||
#2
|
|||||||||
|
|||||||||
![]() couldnt you just do something like this?
Code:
depending on what your membership names are, and where you're files are you'll have to edit it how you want it.
__________________
X-Cart Gold v4.2.0 [Linux] Add-On: X-Magnifier Altered Cart Add-On: One Page Checkout |
|||||||||
#3
|
|||||||
|
|||||||
![]() Thanks for the starting point, here is what I ended up with:
I found an old post by B00MER that mentioned having to add the following line of code into include/check_useraccount.php. Code:
and then for the actual line that changes directories/files I used: Code:
__________________
Brad Thompson Group Imaging X-Cart Gold Version 4.1.8 |
|||||||
#4
|
|||||||||
|
|||||||||
![]() I'm not sure if you had to add a new variable... I think that xcart already has one that checks membership type, but I'm glad to hear that you have it working now.
__________________
X-Cart Gold v4.2.0 [Linux] Add-On: X-Magnifier Altered Cart Add-On: One Page Checkout |
|||||||||
|
|||
X-Cart forums © 2001-2020
|