Page 39 of 102 FirstFirst ... 2937383940414989 ... LastLast
Results 381 to 390 of 1019
  1. #381
    Join Date
    Apr 2011
    Location
    Australia
    Posts
    16
    Plugin Contributions
    0

    Default Re: Super Orders v3.0 Support Thread

    ....wow! i'm seriously honoured you're using my modifications!

    my apologies to everyone about not sharing the code here i felt that since i'd mucked around so much, i'd lost track of exactly *where* i'd fiddled, and couldn't really give a "replace here to here" kind of submission

    Also, advance apologies for my possible lack of forum-etiquitte...this is the first forum i've ever really comitted to. Complete forum noob here....educate me! corrupt me!

    I don't mind putting in a little work if people find it useful - i'd be happy to have a bit of a hack at the multiple attribute titles issue - who knows if or when i might even need it! In theory it shouldn't be too hard - a bit of a loop around an array that already exists; i just haven't attempted it yet, as i thought this would be in the new version! And i'll make sure to post the mod here once i'm done this time

    I've been continuing my work on this pdf output - i've also added the store logo to the top left, print date to top right, i'm working on a total item/value/packages count at the bottom, but *something* in the product loop keeps resetting the variables...I didn't want to go too far on it, as i thought this pdf output was what was being updated..didn't want to go reinventing the wheel!

    Oh, and shipping method is definitely on of my top mods to work on. I need it. the AustPost shipping module is just making it a bit difficult for me to work with. I've got it displaying the "main" shipping method (for example, Australia Post), but not the 'sub' method (the choice between parcel/express).

    Thanks again for an awesome contrib, i'm lovin' it.


    Quote Originally Posted by DivaVocals View Post
    fo0bar - PLEASE feel free to share your changes here.. This way if you ever slip into the darkness, folks won't be wondering where your cool changes went to..

    As you can understand, I can't incorporate EVERYTHING people ask about here into the codebase.. From my perspective, Super Orders has to serve a WIDE audience.. So I make changes base don that perspective..

    BUT...

    others might be looking for the VERY change YOU are making and so I ENCOURAGE you to share your changes with the community!!

    That said ScriptJunkie shared with me your changes to the "Master Packingslip List" (for those who don't know what this is, part of the PDF Packingslip features includes a master LIST of packing slips.. Think of it as a summarized order picklist)

    My apologies for not understanding that the "Master Packingslip List" is what you were updating as opposed to the PDF Packingslip itself..

    ANYWAY...

    I'm LOVING the checkboxes and other changes you made to the "Master Packingslip List".. The addition of the customer address, and the modifications to the layout are outstanding and a must have IMHO!!! I have merged your changes into the "Master Packingslip List" in new fileset that I plan to submit (hopefully this weekend)

    I am thinking that shipping method would also be something useful to include on the "Master Packingslip List" as well.. Gonna see if I can tackle that at some point for a later release..

    ..................

  2. #382

    Default Re: Super Orders v3.0 Support Thread

    Quote Originally Posted by fo0bar View Post
    my apologies to everyone about not sharing the code here i felt that since i'd mucked around so much, i'd lost track of exactly *where* i'd fiddled, and couldn't really give a "replace here to here" kind of submission
    I can help with that :) I compared the file you gave me with the file that came with SO3. These are the resulting changes:

    1. Add tick/check box in front of each order item
    2. Add spaces between each order item line
    3. Decrease order item font size in order to make room for the addition of customer address
    4. Moved Product ID Number and Order Date to align right
    5. Added customer address (aligned right)

    These changes make the master packing slip pdf (found in batch printing) much easier to read and much more functional! Thanks Fo0bar!

    Here's the code:


    EDIT 1

    At or about Line 219, Find:
    PHP Code:
    $pdf->Cell(1010'''LRTB'); 
    On the next line, Replace This:
    PHP Code:
    $pdf->MultiCell(56612$headingLine); 
    With This:
    PHP Code:
    $pdf->SetFontSize('10');
            
    $pdf->Cell(45012$headingLine,'','0');
        
    $orderRightBox '#' $order->info[id] . '          ' zen_date_short($order->info['date_purchased']) . ' ';
            
    $pdf->MultiCell('180','10',$orderRightBox,'','','R');
            
    $pdf->SetFontSize('6');
            
    $shipTo zen_address_format($order->delivery['format_id'], $order->delivery0''"\n"); 
            if(
    $order->delivery['street_address'] == ''){
                
    $shipTo zen_address_format($order->customer['format_id'], $order->customer0''"\n");    
            } 
        
    $pdf->Cell('580','10',$shipTo,'','','R');   

            
    $pdf->MultiCell(566,2,''); 

    EDIT 2

    At or about Line 226, Find:
    PHP Code:
    if ($orderText != ''){ 
    On the next line, Replace This:
    PHP Code:
    $orderText .= ', '
    With This:
    PHP Code:
    $orderText '';
    //$orderText .= ', '; 

    EDIT 3

    At or about Line 227, Find:
    PHP Code:

    On the next line, Replace This:
    PHP Code:
    $orderText .= '(' $order->products[$i]['qty'] . ') ' $order->products[$i]['name'] . '/' $order->products[$i]['model']; 
    With This:
    PHP Code:
    //This modification displays the attribute title in the line.
                        
    $attribText = (!$order->products[$i]['attributes'][0]['value']) ? '' : (' - ' $order->products[$i]['attributes'][0]['value']) ;
                    
    $orderText .= ' ' $order->products[$i]['qty'] . 'x ' $order->products[$i]['name'] . '/' $order->products[$i]['model'] . $attribText;
                    
    $pdf->Cell(2710'');
                    
    $pdf->Cell(88'''LRTB');
                    
    $pdf->Cell(50'');
                    
    $pdf->SetFontSize('6');
                    
    $pdf->MultiCell(52010$orderText); //display order text 

    EDIT 4

    At or about Line 230, Find:
    PHP Code:
    /* order object doesn't include orderid.  added id to info so we can retrieve it here */ 
    On the next line, Replace This:
    PHP Code:
    $orderText '[#' $order->info[id] . ' ' zen_date_short($order->info['date_purchased']) . '] ' $orderText
                                   
                
    $pdf->Cell(2712''); 
                
    $pdf->MultiCell(54912$orderText); 
    With This:
    PHP Code:
    $pdf->MultiCell(520,8,''); 
    Last edited by ScriptJunkie; 22 Apr 2011 at 07:00 PM. Reason: Added itemized list of changes that the code brings about
    Go that extra mile, you never know what's at the end of the road

    Empowerment Sanctuary

  3. #383
    Join Date
    Sep 2008
    Location
    DownUnder, overlooking South Pole.
    Posts
    976
    Plugin Contributions
    6

    Default Re: Super Orders v3.0 Support Thread

    Brilliant - all of you. Anyone for Cointreau with their coffee.

    Quote Originally Posted by fo0bar View Post
    i'm working on a total item/value/packages count at the bottom, but *something* in the product loop keeps resetting the variables...I didn't want to go too far on it, as i thought this pdf output was what was being updated..didn't want to go reinventing the wheel!
    Have you seen this

    http://www.zen-cart.com/forum/showpo...&postcount=212

    Cheers

  4. #384
    Join Date
    Apr 2011
    Location
    Australia
    Posts
    16
    Plugin Contributions
    0

    Default Re: Super Orders v3.0 Support Thread

    Excellent!

    ...and how far away is the new release? i've nailed the multiple attributes code if you'd like to include it, basically replace the code i mentioned above with the following code:


    PHP Code:
                        $attribCount=(sizeof($order->products[$i]['attributes']));
                        if(
    $attribCount>1){
                            
    //more than one attribute in array
                            
                            
    $aC=0;
                            while(
    $aC $attribCount){
                                
    $attribText .= ' - ' $order->products[$i]['attributes'][$aC]['value'];
                                
    $aC++;
                            }
                        }else{
                            
    $attribText = (!$order->products[$i]['attributes'][0]['value']) ? '' : (' - ' $order->products[$i]['attributes'][0]['value']) ;
                        }
                    
    $orderText .= ' ' $order->products[$i]['qty'] . 'x ' $order->products[$i]['name'] . '/' $order->products[$i]['model'] . $attribText

    hope this helps :)

    Quote Originally Posted by ScriptJunkie View Post
    I can help with that :) I compared the file you gave me with the file that came with SO3. These are the resulting changes:

    1. Add tick/check box in front of each order item
    2. Add spaces between each order item line
    3. Decrease order item font size in order to make room for the addition of customer address
    4. Moved Product ID Number and Order Date to align right
    5. Added customer address (aligned right)

    These changes make the master packing slip pdf (found in batch printing) much easier to read and much more functional! Thanks Fo0bar!

    Here's the code:

    .................

  5. #385
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Re: Super Orders v3.0 Support Thread

    Quote Originally Posted by dw08gm View Post
    Brilliant - all of you. Anyone for Cointreau with their coffee.



    Have you seen this

    http://www.zen-cart.com/forum/showpo...&postcount=212

    Cheers
    Not sure I understand what "Total Qty vs Total Products" means.. A screenprint would help..
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  6. #386
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Re: Super Orders v3.0 Support Thread

    The new release is as far away as the free time I have allows.. Sorry to be vague, but my day job and paid side work will ALWAYS trump free contributions..

    Seriously though.. I hope to have it compiled and testing done this weekend.. All depends on my tester's schedule too.. I don't want to release this until I get feedback from testers.. Gonna try and toss something out tonight to the testers..

    and BTW, I don't mind sharing code with others who will REALLY test and provide feedback.. But be prepared.. asking to test doesn't mean I will send out the code.. I tend to be VERY selective about who I share code with pre-submission because too many times I've had folks who didn't REALLY want to test, they simply wanted to get the "latest & greatest" version of a module.. (hideCategories is one example of where a few folks **ahem** stretched the truth about doing "testing" to scam .. I mean obtain a "pre-release" copy of the mod)


    In the meantime, your multiple attributes code for the Master Packingslip List looks loads simpler than the multiple attributes code being used for the PDF Packingslip. I was planning on trying to incorporate the PDF Packingslip multiple attributes code into the Master Packingslip List, but yours looks MUCH simpler.. (and you say it's working?? hmmmm)
    Quote Originally Posted by fo0bar View Post
    Excellent!

    ...and how far away is the new release? i've nailed the multiple attributes code if you'd like to include it, basically replace the code i mentioned above with the following code:


    PHP Code:
                        $attribCount=(sizeof($order->products[$i]['attributes']));
                        if(
    $attribCount>1){
                            
    //more than one attribute in array
                            
                            
    $aC=0;
                            while(
    $aC $attribCount){
                                
    $attribText .= ' - ' $order->products[$i]['attributes'][$aC]['value'];
                                
    $aC++;
                            }
                        }else{
                            
    $attribText = (!$order->products[$i]['attributes'][0]['value']) ? '' : (' - ' $order->products[$i]['attributes'][0]['value']) ;
                        }
                    
    $orderText .= ' ' $order->products[$i]['qty'] . 'x ' $order->products[$i]['name'] . '/' $order->products[$i]['model'] . $attribText
    hope this helps :)
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  7. #387
    Join Date
    Apr 2011
    Location
    Australia
    Posts
    16
    Plugin Contributions
    0

    Default Re: Super Orders v3.0 Support Thread

    Quote Originally Posted by DivaVocals View Post
    (and you say it's working?? hmmmm)
    i've tested it with 2 attributes (only short term as it was on a live shop.. don't try this at home, kids), and it's working great; the way it's written should work for virtually unlimited attributes - it displays it as:

    [product text]MODELNUMBER - att1 - att2 - att3

    and all the single-attribute products display the same as in my previous mod :)

    i'll be back in 12 hours - it's 4:30am!

    [edit]
    it's actually still running live with that mod; i haven't changed it back 'cause it's working - just removed the item's second attribute

  8. #388
    Join Date
    Sep 2008
    Location
    DownUnder, overlooking South Pole.
    Posts
    976
    Plugin Contributions
    6

    Default Re: Super Orders v3.0 Support Thread

    Quote Originally Posted by DivaVocals View Post
    Not sure I understand what "Total Qty vs Total Products" means.. A screenprint would help..
    I do not have a screenprint to hand however

    Product A x 3
    Product B x 2
    Product C x 4

    Total Products = 3 (A+B+C)
    Total Quantity = 9 (3+2+4)

    Provides extra QA. Useful when like products are bundled prior to final packaging, although can be problematic with products sold by dimension (eg metres/rope) or dollar amounts (eg donations, gift certs).

    Hope this helps.

  9. #389
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Re: Super Orders v3.0 Support Thread

    Quote Originally Posted by fo0bar View Post
    ....wow! i'm seriously honoured you're using my modifications!

    my apologies to everyone about not sharing the code here i felt that since i'd mucked around so much, i'd lost track of exactly *where* i'd fiddled, and couldn't really give a "replace here to here" kind of submission
    It's a good one, and VERY worthy of inclusion!!! Take a bow, you totally deserve it!!

    Quote Originally Posted by fo0bar View Post
    Also, advance apologies for my possible lack of forum-etiquitte...this is the first forum i've ever really comitted to. Complete forum noob here....educate me! corrupt me!
    Ahhhh such a BIG OPENING... **sigh** I won't go there!!!

    Quote Originally Posted by fo0bar View Post
    I don't mind putting in a little work if people find it useful - i'd be happy to have a bit of a hack at the multiple attribute titles issue - who knows if or when i might even need it! In theory it shouldn't be too hard - a bit of a loop around an array that already exists; i just haven't attempted it yet, as i thought this would be in the new version! And i'll make sure to post the mod here once i'm done this time

    I've been continuing my work on this pdf output - i've also added the store logo to the top left, print date to top right, i'm working on a total item/value/packages count at the bottom, but *something* in the product loop keeps resetting the variables...I didn't want to go too far on it, as i thought this pdf output was what was being updated..didn't want to go reinventing the wheel!
    Let me make sure it's clear what code I was planning on submitting..

    What I have is the update to support multiple attributes on the PDF Packinglist, but NOT the PDF Master Packingslip LIST.

    It was an over-sight on my part really not to ask the original contributor of the PDF Packingslip code to update the Master Packingslip List as well as the the PDF Packingslip.

    BUT since you have provided a working version of the multiple attributes code for the Master Packingslip List, I add that and test it too..

    Quote Originally Posted by fo0bar View Post
    Oh, and shipping method is definitely on of my top mods to work on. I need it. the AustPost shipping module is just making it a bit difficult for me to work with. I've got it displaying the "main" shipping method (for example, Australia Post), but not the 'sub' method (the choice between parcel/express).

    Thanks again for an awesome contrib, i'm lovin' it.
    Awesome.. Looking forward to seeing what you come up with.. Just remember that SHARESIES is always a GOOD thing!!
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  10. #390
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Re: Super Orders v3.0 Support Thread

    Quote Originally Posted by fo0bar View Post
    i've tested it with 2 attributes (only short term as it was on a live shop.. don't try this at home, kids), and it's working great; the way it's written should work for virtually unlimited attributes - it displays it as:

    [product text]MODELNUMBER - att1 - att2 - att3

    and all the single-attribute products display the same as in my previous mod :)

    i'll be back in 12 hours - it's 4:30am!

    [edit]
    it's actually still running live with that mod; i haven't changed it back 'cause it's working - just removed the item's second attribute
    Ahhh.. Will have to have a looksee.. So the attributes are lined up horizontally next to the model number??

    The new multiple attributes code i have from the original contributor created arranges the attributes on the PDF Packingslip as follows:

    Product detail line
    att1
    att2
    att3
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

 

 
Page 39 of 102 FirstFirst ... 2937383940414989 ... LastLast

Similar Threads

  1. v150 Edit Orders v4.0 Support Thread
    By DivaVocals in forum Addon Admin Tools
    Replies: 1786
    Last Post: 10 Apr 2024, 03:17 PM
  2. v150 Super Orders v4.0 Support Thread for ZC v1.5.x
    By DivaVocals in forum Addon Admin Tools
    Replies: 797
    Last Post: 23 Mar 2024, 06:51 AM
  3. Edit Orders v3.0 for ZC 1.3.9 [Support Thread]
    By DivaVocals in forum All Other Contributions/Addons
    Replies: 656
    Last Post: 18 Apr 2016, 06:28 PM
  4. OLD Super Orders 2.0 (See v3.0 thread instead)
    By BlindSide in forum All Other Contributions/Addons
    Replies: 2019
    Last Post: 17 Jan 2012, 05:43 AM
  5. RE: Super Orders v3.0 Support Thread
    By Johnnyd in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 22 Jun 2011, 09:28 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR