Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2010
    Posts
    153
    Plugin Contributions
    0

    Default need help with editing a file for a contributed module

    ok not sure if this is in the right place in the forums so please feel free to move it mods if in wrong place :s

    i have installed the max mind reduce card fraud module thatis in the downloads section this involves overwriting the order.php in includes/classes

    only problem is I have a module installed which would be rendered useless if i was to overwrite this which was custom built so i need to add the following lines to it....

    //start coderXO mod
    $xboxcodes = array();
    $xboxcodehtml = "";
    if($this->products[$i]['model'] != "" && $this->info['order_status'] != DEFAULT_ORDERS_STATUS_ID)
    {

    $xboxcodes = getXboxcode($this->products[$i]['model'],$this->products[$i]['qty'],$zf_insert_id);
    if(!empty($xboxcodes))
    foreach($xboxcodes as $xcode)
    $xboxcodehtml .= "\r\n[Xbox Code: ".$xcode. "]";


    }
    // end coderXO mod


    // build output for email notification
    $this->products_ordered .= $this->products[$i]['qty'] . ' x ' . $this->products[$i]['name'] . ($this->products[$i]['model'] != '' ? ' (' . $this->products[$i]['model'] . ') ' : '') . ' = ' .
    $currencies->display_price($this->products[$i]['final_price'], $this->products[$i]['tax'], $this->products[$i]['qty']) .
    //start coderXO mod
    $xboxcodehtml.
    // end coderXO mod

    where exactly would i put this?? I have asked in the relevant thread but as the thread was last commented on 2 years ago i hold no hope of a reply there

    also i have the following modules that may also be affected but not sure....
    better together with admin panel for it
    reward points module

    I am runing it on zc 1.3.8a

    I have attached the order.php within the zip file itself for reference

    wouldn't normally ask like this but i cannot resume trading until this is resolved as the fraud risks in my buisness are too much
    Attached Files Attached Files
    Last edited by Xbox Memberships; 27 Mar 2010 at 03:38 AM. Reason: hadn't attached file lol

  2. #2
    Join Date
    Jan 2010
    Posts
    153
    Plugin Contributions
    0

    Default Re: need help with editing a file for a contributed module

    just tried it myself and boom! grey screen instead of checkout step 2 of 3

 

 

Similar Threads

  1. v150 Help Please - need help with .htaccess file
    By timb22 in forum General Questions
    Replies: 14
    Last Post: 6 Apr 2015, 08:21 PM
  2. Help w/ language file for paypal IPN module
    By TheHYPO in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 10 Oct 2008, 03:24 PM
  3. Need help with module configuration--enable certain payment module for certain items
    By maxus in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 10 Mar 2008, 04:24 PM
  4. Need Help with editing
    By gibsonshop in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 2 Aug 2007, 09:59 PM

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