Hello,
I have added custom field named visibility in quote item to show or hide the quote item when the status is not equal to Approved.
I achieved almost everything, But when i edit quote and save it, the quote item gets duplicated x 2 (Time 2 of the total quote item in DB).
To show or hide the quote item on https://domain.com#QuoteItem when quote status is not equal to approved.
I have added this line in base.php
public function createSelectQuery($entityName, array $params = array(), $deleted = false)
{
$whereClause = $whereClause + array('visibility' => 1); // this works when it display the quote item in both quote page and in the quote item page.
}
When edit and save the quote item or any other field value in quote page, the quote item gets duplicated .
Please guide me to fix this.. Thanks.
I have added custom field named visibility in quote item to show or hide the quote item when the status is not equal to Approved.
I achieved almost everything, But when i edit quote and save it, the quote item gets duplicated x 2 (Time 2 of the total quote item in DB).
To show or hide the quote item on https://domain.com#QuoteItem when quote status is not equal to approved.
I have added this line in base.php
public function createSelectQuery($entityName, array $params = array(), $deleted = false)
{
$whereClause = $whereClause + array('visibility' => 1); // this works when it display the quote item in both quote page and in the quote item page.
}
When edit and save the quote item or any other field value in quote page, the quote item gets duplicated .
Please guide me to fix this.. Thanks.
Comment