![]() |
|
Home | Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]() Is it possible to query coupon end date similar to the function for "Sale Price (if exists)" within product tags when editing a view in the factory?
Where exactly can one find this information to create their own php based arguments? Thanks |
#2
|
||||
|
||||
![]() Hi
Right now, there is no support for conditionals for coupon information. We plan on adding that in version 3.4. Eric
__________________
![]() ![]() ![]() ![]() |
#3
|
|||
|
|||
![]() Looking forward to it. Thanks for the super fast reply Eric.
|
#4
|
|||
|
|||
![]() Alright. So how do i do it now
![]() |
#5
|
||||
|
||||
![]() Hi
You have access to the following variables within a Product detail or Product list module: PHP Code:
You can use those values in your own PHP conditionals. Eric
__________________
![]() ![]() ![]() ![]() |
#6
|
|||
|
|||
![]() Great. Thanks!
|
#7
|
|||
|
|||
![]() Hi Eric,
I think I found the right thread for what i'm trying to do, but don't know very much php to implement it. I'd like to ONLY show the "Coupon Code:" if the cell is greater than NULL? If this is possible how would this look and where would we put it? Thanks. |
#8
|
||||
|
||||
![]() Hi
You can do something like this: PHP Code:
__________________
![]() ![]() ![]() ![]() |
#9
|
|||
|
|||
![]() Thanks, Where should I put this?
|
#10
|
||||
|
||||
![]() Wherever you want the code to appear in your Views.
__________________
![]() ![]() ![]() ![]() |
#11
|
|||
|
|||
![]() Worked like a charm! Thanks for your help.
|
#12
|
|||
|
|||
![]() Is it possible to modify this code in the following way?
Only show the "Coupon Code" unless the value is Null, if the value is Null then display the "Coupon End Date", if this value is also Null then display nothing. Thanks |
#13
|
||||
|
||||
![]() Sure, just extend the if() statement:
PHP Code:
__________________
![]() ![]() ![]() ![]() |
#14
|
|||
|
|||
![]() Ohh, is it also possible to change the format of the end date? Ex: 06-01-2012
|
#15
|
|||
|
|||
![]() Nice, I just started a PHP class so I can figure this stuff out myself lol. Appreciate your help!
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Coupon Widget | winsh | Questions | 1 | March 17th, 2011 11:39 AM |