In the book module it's possible to export a book to various formats. In Drupal 9 (and I guess 8) this is done through BookController::bookExport($type, NodeInterface $node) which requests the contents of the book from the method BookExport::bookExport{$type}($node), where $type and $node are passed from the URL.
I need Commerce Postal Code Filter module in Drupal 8 version.
my issue when user fill specific postal code then only shipping pf product are available.
example: country: India, state: Maharashtra, city: Mumbai, postal code: 400060 then if user type postal code: 400069 then shipping are not available.
list of postal code available:
400060
400001
400002
400056
apart from this postal code then shipping are not available for Product.
I am trying to make a custom sort in my query like the following:
$available_sources_text = db_query("SELECT * FROM `heritage_source_info`WHERE text_id = :textid AND format = :format ORDER BY FIELD(type,'moolam','translation','commentary')", [':textid' => $textid, ':format' => 'text'])->fetchAll();
This throws a syntax error. Please let me know what is the correct syntax for ordering?