Jump to content

knopfler

Members
  • Content count

    2
  • Joined

  • Last visited

Profile Information

  1. Hey everyone! I'm trying to write a module for Direcpay payment gateway, (www.direcpay.com) and I need help. Essentially, I need to pass all the information as a single variable "requestparameter" with pipe-separated values when "Confirm Order" is clicked: requestparameter = merchantownerid|opmode|country|currency|amount|merchorderno|otherdtls|succURL|fa il ureURL|collaboratorid I have the following in my process_button() function, which I've figured takes care of sending the information to the gateway. function process_button() { global $requestparameter, $order, $currencies,$customer_id, $MerchantId, $Amount, $OrderId, $Url, $WorkingKey,$Checksum, $opmode, $succURL, $failureURL, $collaboratorid, $country, $otherdtls ; $MerchantId = MODULE_PAYMENT_DIRECPAY_MERCHANT_ID; $Amount = $order->info['total']; $OrderId = $customer_id . date('Ymdhis'); $succURL = "http://www.xyz.com/checkout_success.php"; $failureURL = "http://www.xyz.com/checkout_failure.php"; $otherdtls = "notrequired"; $opmode = "DOM"; $collaboratorid = "TOML"; $currencies = "INR"; $country = "IND"; $process_button_string = tep_draw_hidden_field('merchantownerID', $MerchantId ). tep_draw_hidden_field('opmode', $opmode ) . tep_draw_hidden_field('country', $country ) . tep_draw_hidden_field('currency',$currencies) . tep_draw_hidden_field('amount', $Amount) . tep_draw_hidden_field('merchantorderno', $OrderId). tep_draw_hidden_field('otherdtls', $otherdtls) . tep_draw_hidden_field('succUrl',$succURL) . tep_draw_hidden_field('failureURL',$failureURL) . tep_draw_hidden_field('collaborator',$collaborator); return $process_button_string; Two questions: 1. How can I ensure that the information is sent under the variable "requestparameter" when "Confirm Order" is clicked? 2. How can I ensure that the values are pipe separated? Please help me out so that I can finish this module and make it available to the community.
  2. knopfler

    cDynamic Meta Tags

    Excellent contribution, especially for large stores. I got it up and running without any trouble. Thank you very much! I have one question - Is it possible to use the category descriptions (creloaded) to create the meta description tag for category pages, similar to how the meta description tag for products pages uses the product description? On my site, I have included detailed category descriptions and this content is important for my SEO. I'd like the first two sentences in my category descriptions to show up in the meta description tag. Any help would be appreciated...
×