Item dispatched

This mod will allow you to set item as dispatched and if item is returned mark item as recieved

  1. crookiecookie

    crookiecookie New Member

    Joined:
    Nov 1, 2012
    Messages:
    23
    Likes Received:
    3
    crookiecookie submitted a new resource:

    Item dispatched - Item dispatched

    Read more about this resource...
     
    Last edited by a moderator: Jun 28, 2015
  2. crookiecookie

    crookiecookie New Member

    Joined:
    Nov 1, 2012
    Messages:
    23
    Likes Received:
    3
    Updated mod

    Hi everyone sorry about this mod just went over and noticed a few errors

    Not sure how it happend but i think with ubuntu text document when u have two of the same files open and you copy and paste
    it throws a odd 2 in the paste some where.

    Anyway mod has been updated

    Could some one please try and let us know if it installs OK
     
  3. youngwolfe

    youngwolfe Donor Donor

    Joined:
    Oct 6, 2012
    Messages:
    105
    Likes Received:
    1
    Just a few comments

    Hi crookiecookie

    In these two lines of buying.php the dispatched variable and the returns variable will always be zero. Shouldn,t they be equal to some row values so that the changes in the winners table , will be seen in the buying.tpl file. I can't see how the links in buying.tpl will ever be enabled.

    PHP:
    'DISPATCHED' => ($row['dispatched'] == 0),
                            
    'RETURNS' => ($row['returns'] == 0),  
    Cheers
    youngwolfe
     
  4. crookiecookie

    crookiecookie New Member

    Joined:
    Nov 1, 2012
    Messages:
    23
    Likes Received:
    3
    you alright youngwolfe

    i cant remember why i had to do that

    i think it was conflicting with $bf_paid = 0; and the cron.php

    Why dont you give the code a go
    try it out and you will see it works
     
  5. youngwolfe

    youngwolfe Donor Donor

    Joined:
    Oct 6, 2012
    Messages:
    105
    Likes Received:
    1
    Hey crookiecookie
    will give it a go and let you know


    Cheers
    youngwolfe
     
  6. youngwolfe

    youngwolfe Donor Donor

    Joined:
    Oct 6, 2012
    Messages:
    105
    Likes Received:
    1
    Try This

    Hi crookiecookie

    PHP:
                'DISPATCHED' => $row['dispatched'],
                            
    'RETURNS' => $row['returns'], 
    After doing this, the hyperlinks in buying.tpl should be active as long as dispatched or returns is 1 in the db table.


    youngwolfe
     
  7. crookiecookie

    crookiecookie New Member

    Joined:
    Nov 1, 2012
    Messages:
    23
    Likes Received:
    3
    check your pm

    i will give that code a go
     
  8. nay27uk

    nay27uk Super Moderator Staff Member

    Joined:
    Nov 24, 2009
    Messages:
    5,572
    Likes Received:
    546
    I am going through the mods section of the forums and cleaning stuff out.

    Could I ask that you please supply a DEMO URL it does not need to be your live site just a DEMO even if that is only on a subdomain and installed for DEMO reasons​
     
  9. super_st

    super_st Well-Known Member

    Joined:
    Dec 2, 2012
    Messages:
    634
    Likes Received:
    141
    Anyone tried this with 1.1.1 and can confirm if works or not :D
     
  10. super_st

    super_st Well-Known Member

    Joined:
    Dec 2, 2012
    Messages:
    634
    Likes Received:
    141
    Have answered my own question. Seems to work, just had to fine tune the code as its not exact anymore

    But seems to work ok. Will keep an eye on it and get back if theres an issue
     
    Appl Pglng likes this.
  11. Andrej

    Andrej Donor Donor

    Joined:
    Jan 8, 2016
    Messages:
    2
    Likes Received:
    0
    I try on 1.1.2P2 and receive message when you go to <winners details>:
    Parse error: syntax error, unexpected '}' in /homepages/***/includes/template.php(165) : eval()'d code on line 46
    I do step by step, delete twice, and again same error. Any suggestions?
     
  12. Andrej

    Andrej Donor Donor

    Joined:
    Jan 8, 2016
    Messages:
    2
    Likes Received:
    0
    WORKING :)))

    I have been changed at selling.tpl as follow:


    <!-- IF a.w.B_PAID -->
    <span class="btn btn-success btn-xs">{L_898}</span>
    <!-- ELSE -->
    <a class="btn btn-warning btn-xs" href="{SITEURL}selling.php?paid={a.w.ID}{AUCID}">{L_899}</a>
    <!-- ENDIF -->

    </form>

    </div>
    </div>
    </div>
    <td width="16%" nowrap="nowrap"><!-- IF a.w.DISPATCHED -->
    {L_898_A}
    <!-- ELSE -->
    <a href="{SITEURL}selling.php?dispatched={a.w.ID}{AUCID}">{L_899_A}</a>
    <!-- ENDIF --></td>
    <td width="16%" nowrap="nowrap">
    <!-- IF a.w.RETURNS -->
    {L_899_C}
    <!-- ELSE -->
    <a href="{SITEURL}selling.php?returns={a.w.ID}{AUCID}">{L_898_C}</a>
    <!-- ENDIF -->
    </td>
    <!-- END w -->
    <!-- END a -->
     
  13. rgx121s

    rgx121s New Member

    Joined:
    Mar 2, 2016
    Messages:
    25
    Likes Received:
    0
    hello andrej,
    i also had an error on 1.1.2P2 and your fix didn't help.
    maybe i've made a mistake somewhere.
    what theme have you installed? would you be so nice to share your edited files?
    would be great to get this mod working!
     

Share This Page