Hi,

The module seems to work fine except that the access callback always return FALSE while viewing/downloading PDF (case "validate") of order. When I've checked the code it was taking order ID from URL with following code which is wrong

<?php
  $arg2 = arg(2);
?>

Where as the menu callback has only "order2pdf/%" i.e. arg(0) and arg(1).

Also I didn't understand how can the HASH (of order ID and Order created) and Order Id can match with each other. Can some one please help me understand this or I'm correct that this will never match?

Yogesh

Comments

yogeshchaugule8’s picture

Status: Active » Closed (works as designed)

Found it. The module adds a link using views field, where it adds hash to verify.