Re: Subscription Status If/Then
I suspect that you are trying to do a simple if-then on variables that do not exist without a mod of the php file.
When you say you think you have the right variable - what variable would that be? Post the code with the variable you are using and we can check your syntax.
Let me try and explain the tip provided a little better.
The debug window that comes up displaying all the variables shows you everything that is available in smarty for that page. If it is not there - it is not available. You would see the variable for subscription that you seek and what it is set to. You would not need to try a bunch of different ones - you would see exactly what you expect.
If it is not there, To make it available - you need to update the php to query the database to make the variables available to you. If you are not familiar with php or writing queries to get the information out of the database - this may be one for you to post in the professional requests forum, if you don't get response here. But you would need to be clearer in what you are doing to get better help.
It is unclear what subscriptions you are referring to - product subscriptions? Newsletter subscriptions? A mod that you had done to your shop?
For newsletter subscriptions - someone would have to be logged in. In the php - you would have to query the database to see if that person is subscribed to a newsletter, then set a variable in smarty to indicate which newslist, then you could do an if-than based on that variable. If the person is not logged in - you don't have a good way of knowing who they are.
For purchased subscriptions - I am not very familiar, but it might be something like this: Again - they would need to be logged in. In the php, you would have to query the database to see if that person has purchased one of the subscriptions and set a variable, which you could use in smarty to do an if/than.
__________________
X-CART (4.1.9,12/4.2.2-3/4.3.1-2/4.4.1-5)-Gold
(CDSEO, Altered-Cart On Sale, BCSE Preorder Backorder, QuickOrder, X-Payments, BCSE DPM Module)
|