Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Need Little Help Rate Topic   - - - - -

 
  • Darius
  • Douchebag
  • Members
  • Join Date: 20-Apr 08
  • 3157 posts

Posted 17 April 2018 - 01:21 PM #1

Hello,

 

I noticed admin product details page something like

/admin.php?dispatch=orders.details&order_id=97

 

contains a product that is deleted. Product name instead of being greyed out text like in demo, mine is a link that points to 404 page backend. Can someone tell me where to look for a problem?



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 17599 posts

Posted 18 April 2018 - 06:38 AM #2

Check fn_get_order_info function (app/functions/fn.cart.php). Check by deleted_product, it should be true


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • Darius
  • Douchebag
  • Members
  • Join Date: 20-Apr 08
  • 3157 posts

Posted 18 April 2018 - 07:05 AM #3

            foreach ($order['products'] as $k => $v) {
                //Check for product existance
                if (empty($v['product'])) {
                    $order['products'][$k]['deleted_product'] = true;
                } else {
                    $order['products'][$k]['deleted_product'] = false;
                }

                $order['products'][$k]['discount'] = 0;

                $v['extra'] = @unserialize($v['extra']);
                if ($order['products'][$k]['deleted_product'] == true && !empty($v['extra']['product'])) {
                    $order['products'][$k]['product'] = $v['extra']['product'];
                } else {
                    $order['products'][$k]['product'] = fn_get_product_name($v['product_id'], $lang_code);
                }

got this