Jump to content

Samsung Outlet

Members
  • Posts

    3
  • Joined

  • Last visited

Profile Information

  • First Name
    Rashid
  • Last Name
    Saeed

Samsung Outlet's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Please Help i wanted to change order reference to numeric value in prestashop, i followed these steps by someone Copy the file /classes/PaymentModule.php to /override/classes/PaymentModule.php. Edit the file /override/classes/PaymentModule.php as follows. At lines 337-341 is a code block that should read like this: if (!result) { PrestaShopLogger::addLog('PaymentModule::validateOrder - Order cannot be created', 3, null, 'Cart', (int)$id_cart, true); throw new PrestaShopException('Can\'t save Order'); } Immediately after that code block, insert the following two lines of code: $order->reference = str_pad($order->id, 9, '0', STR_PAD_LEFT); $order->update(); Delete the file /cache/class_index.php so that Prestashop automatically re-creates this file taking into account the new override file. after these steps, when i try to add product to cart, this error comes "Impossible to add the product to the cart. textStatus: 'error' errorThrown: '' responseText:?]" i tried disabling ajax cart, then i cant delete product from cart, also cant change quantity of ordered product in cart.
  2. i wanted to change order reference to numeric value in prestashop, i followed these steps by someone Copy the file /classes/PaymentModule.php to /override/classes/PaymentModule.php. Edit the file /override/classes/PaymentModule.php as follows. At lines 337-341 is a code block that should read like this: if (!result) { PrestaShopLogger::addLog('PaymentModule::validateOrder - Order cannot be created', 3, null, 'Cart', (int)$id_cart, true); throw new PrestaShopException('Can\'t save Order'); } Immediately after that code block, insert the following two lines of code: $order->reference = str_pad($order->id, 9, '0', STR_PAD_LEFT); $order->update(); Delete the file /cache/class_index.php so that Prestashop automatically re-creates this file taking into account the new override file. after these steps, when i try to add product to cart, this error comes "Impossible to add the product to the cart. textStatus: 'error' errorThrown: '' responseText:?]" i tried disabling ajax cart, then i cant delete product from cart, also cant change quantity of ordered product in cart.
  3. I got the same problem after updating modules. Now i reset the theme configurator & its working again
×
×
  • Create New...