![]() |
|
#21
|
||||
|
||||
|
Quote:
PHP Code:
Again, if there are codes which should appear and aren't, then I don't know what's happening there. Tony
__________________
Easy New Shop A work in progress |
|
#22
|
|||
|
|||
|
me neither mate?
will just have to enter those few in automatically for the time being ![]() thanks again for all your time and assistance, really appreciate it, if you do find a solution as to why some are not appearing in the api please let me know ![]() cheers mate Luke |
|
#23
|
|||
|
|||
|
currentstyle, this code is great but...now you knew there would be a but didn't you..is there a way to get the merchant id automatically? At the moment, using your code you have to assign the $singlemerchantwithcodes value manually. Is there a way of getting this value from the $oProduct->iMerchantId variable, which is present in the product_display.tpl file? Then the code could get the relevant vouchers for that merchant.
I've tried all ways of getting this done but am new to smarty. I figured in anyone knew how you may. |
|
#24
|
||||
|
||||
|
Hi vhound, unfortunately, I have no time to play with smarty, nor the will to do so either, whatever I post is relevant to the API not the Client software.
__________________
Easy New Shop A work in progress |
|
#25
|
|||
|
|||
|
I got my vouchers to display but have noticed that if the result is just voucher to show then it doesn't. If there are more than 1 voucher then they will display as expected. I have tried changing this line from this:
Code:
if ($sUrl<>'' and $key<7) {
Code:
if ($sUrl<>'') {
|
|
#26
|
|||
|
|||
|
I am embarrased to even ask this LOL
Where exactly does this code go please Claire x |
![]() |
| Thread Tools | |
| Display Modes | |
|
|