Condition of item for auction

WordPress Business Themes Forums Responsive Themes Auction Theme Condition of item for auction Reply To: Condition of item for auction

WordPress Business Themes Forums Responsive Themes Auction Theme Condition of item for auction Reply To: Condition of item for auction

  • JamesD
    JamesD
    Super Guru 1,290 points

    Hello Roy,

    The only way I’m seeing is to at least make a few changes in the /AT/framework/class/default_auction.php. I’m not sure how in depth you would need to go, but changes there may be enough.

    Note: The bold is what I’ve changed/added.

    Around line #1905 you would need to add the additional option(s). In the examples I’ve added the condition Other.
    Original code:
    "condition" => array("label" => "Condition", "values" => array("1" => "New", "2" => "Used") ),

    After change:
    "condition" => array("label" => "Condition", "values" => array("1" => "New", "2" => "Used", "3" => "Other") ),

    Around line #2607 you add the condition word.
    Original code:
    "91" => __("Condition","premiumpress"),
    "92" => __("New","premiumpress"),
    "93" => __("Used","premiumpress"),
    "94" => __("available","premiumpress"),
    "95" => __("Buy Now Quantity","premiumpress"),
    "96" => __("Enter the number of items available for sale.","premiumpress"),
    "97" => __("Bids","premiumpress"),
    "98" => __("Won","premiumpress"),
    "99" => __("Messages","premiumpress"),
    "193" => __("Other","premiumpress"),
    );

    After change:
    "91" => __("Condition","premiumpress"),
    "92" => __("New","premiumpress"),
    "93" => __("Used","premiumpress"),
    "94" => __("available","premiumpress"),
    "95" => __("Buy Now Quantity","premiumpress"),
    "96" => __("Enter the number of items available for sale.","premiumpress"),
    "97" => __("Bids","premiumpress"),
    "98" => __("Won","premiumpress"),
    "99" => __("Messages","premiumpress"),
    "200" => __("Other","premiumpress"),
    );

    Note: I used 200 to keep distance from other PP language refs to avoid conflict.

    Around line #2152 need to add the condition(s) to display the new “condition” options:
    Original code:
    if($condition == 1){ echo $CORE->_e(array('auction','92')); }else{ echo $CORE->_e(array('auction','93')); }

    After change:
    if($condition == 1){ echo $CORE->_e(array('auction','92')); } else if ($condition==2){ echo $CORE->_e(array('auction','93')); } else { echo $CORE->_e(array('auction','200')); }

    I’ve attached the file with the changes, so can get a better idea and play with it.

    Attachments:
    You must be logged in to view attached files.
    September 20, 2018 at 10:57 pm
  • Didn't find what you were after?

    Chat with us now

    or contact our support team