Jump to content

dinorondic

Members
  • Posts

    2
  • Joined

  • Last visited

Profile Information

  • Location
    Serbia
  • Activity
    Developer

dinorondic's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. When i try to add new virtual product to prestashop, i get some error, which i dont know how to fix. Error code: Fatal error: Uncaught exception 'UnexpectedValueException' with message 'RecursiveDirectoryIterator::__construct(/home/relectne/relect.net/html/shop/cache/smarty/cache/blocknewproducts/20141018): failed to open dir: Permission denied' in /home/relectne/relect.net/html/shop/tools/smarty/sysplugins/smarty_internal_cacheresource_file.php:196 Stack trace: #0 [internal function]: RecursiveDirectoryIterator->__construct('/home/relectne/...', 0) #1 /home/relectne/relect.net/html/shop/tools/smarty/sysplugins/smarty_internal_cacheresource_file.php(196): RecursiveDirectoryIterator->getChildren() #2 /home/relectne/relect.net/html/shop/tools/smarty/Smarty.class.php(837): Smarty_Internal_CacheResource_File->clear(Object(Smarty), '/home/relectne/...', 'blocknewproduct...', NULL, NULL) #3 /home/relectne/relect.net/html/shop/classes/Tools.php(2596): Smarty->clearCache('/home/relectne/...', 'blocknewproduct...', NULL) #4 /home/relectne/relect.net/html/shop/classes/module/Module.php(2118): ToolsCore::clearCache(Object(Smarty), '/home/relec in /home/relectne/relect.net/html/shop/tools/smarty/sysplugins/smarty_internal_cacheresource_file.php on line 196 Anyone knows how to repair this?
  2. I have a problem with implementing tracking pixel from paydot. On the paydot website i got following information: Add the following code in the OrderConfirmationController.php: class OrderConfirmationController extends OrderConfirmationControllerCore { public function displayContent() { global $cart; self::$smarty->assign('shippingCost', $cart->getOrderShippingCost()); self::$smarty->assign('orderTotal', $cart->getOrderTotal()); parent::displayContent(); } } This should pass the order details to the order confirmation/thank you page. With this working, you should now be able to insert variables in to our tracking code to send us all the required infoormation. Here is the tracking code example: <img src="https://track.paydot.com/sale.php?value={$orderTotal}&oid={$id_order}&sid=%%SITEID%%&pid=DEFAULT" width="1" height="1"> I dont know how to implement the second part, that is, i dont know where to place: <img src="https://track.paydot.com/sale.php?value={$orderTotal}&oid={$id_order}&sid=%%SITEID%%&pid=DEFAULT" width="1" height="1"> i tried to place this code to themes/your_theme/order-confirmation.tpl but i can not pass verification test on paydot. Does anyone have some explanation on this? Thanks in advance
×
×
  • Create New...