CASYS MACEDONIA

  • Posts: 30
  • Thank you received: 0
10 years 9 months ago #145412

-- url of the page with the problem -- : mkdhost.com/dd
-- HikaShop version -- : x.x.x
-- Joomla version -- : x.x
-- PHP version -- : x.x.x
-- Browser(s) name and version -- : XXXXX x.x.x
-- Error-message(debug-mod must be tuned on) -- : Error_message

I have problem with payment when click finish give me blank page.

$AmountToPay = round($order->cart->full_total->prices[0]->price_value_with_tax);
//$order->order_full_price*100;
$PayToMerchant = $method->payment_params->merchantid;
$MerchantName = 'xxxx';
$AmountCurrency = 'MKD';
$Details1 = '00'.$order->order_id;
$Details2 = $method->payment_params->merchantid;
$PaymentOKURL = $method->payment_params->return_url;
$PaymentFailURL = $method->payment_params->cancel_url;
$FirstName = @$order->cart->$address_type->address_firstname;
$LastName = @$order->cart->$address_type->address_lastname;
$Address = @$order->cart->$address_type->address_street;
$City = @$order->cart->$address_type->address_city;
$Zip = @$order->cart->$address_type->address_post_code;
$Country = @$order->cart->$address_type->address_country->zone_code_3='MKD';
$Telephone = @$order->cart->$address_type->address_telephone;
$Email = $this->user->user_email;

I think that is ok?

Last edit: 10 years 9 months ago by mkdhost.

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
10 years 9 months ago #145420

Hi,

Turn on the debug mode and error reporting options of the joomla configuration and try again. It will display an error message on your blank page telling you why it doesn't work.

Please Log in or Create an account to join the conversation.

  • Posts: 30
  • Thank you received: 0
10 years 9 months ago #145446

$lang = &JFactory::getLanguage(); give me this warning

Last edit: 10 years 9 months ago by mkdhost.

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
10 years 9 months ago #145447

Hi,

It should give you a warning, not an error.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 30
  • Thank you received: 0
10 years 9 months ago #145448

n line 123 Fatal error: Cannot access empty property in
$FirstName = $order->cart->$address_type->address_firstname;

Last edit: 10 years 9 months ago by mkdhost.

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
10 years 9 months ago #145457

Yes, you need to add a line before to define $address_type like that:

$address_type = "billing_address";

The following user(s) said Thank You: mkdhost

Please Log in or Create an account to join the conversation.

  • Posts: 30
  • Thank you received: 0
10 years 9 months ago #145458

what is procedure to add my plugin in hikashop instalation?

Last edit: 10 years 9 months ago by mkdhost.

Please Log in or Create an account to join the conversation.

  • Posts: 30
  • Thank you received: 0
10 years 9 months ago #145469

$Email = $this->user->user_email;
give me blank email?

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
10 years 9 months ago #145471

That's normal. This variable doesn't exist here. You should do instead something like that:
$user = JFactory:getUser();
$Email = $user->email;

The following user(s) said Thank You: mkdhost

Please Log in or Create an account to join the conversation.

  • Posts: 30
  • Thank you received: 0
10 years 9 months ago #145473

and how to get currency euro price?
round($order->cart->full_total->prices[0]->price_value_with_tax,(int)$this->currency->currency_locale)


$user = JFactory:getUser();
give me error//

Last edit: 10 years 9 months ago by mkdhost.

Please Log in or Create an account to join the conversation.

  • Posts: 30
  • Thank you received: 0
10 years 9 months ago #145481

$user =&JFactory::getUser(); now is ok that.

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
10 years 9 months ago #145496

Hi,
Regarding the currency, reading that thread will probably help you :).

Please Log in or Create an account to join the conversation.

  • Posts: 30
  • Thank you received: 0
10 years 9 months ago #145978

how to return_url target in blank page?

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
10 years 9 months ago #145992

I don't understand your question. Please provide more context.

Please Log in or Create an account to join the conversation.

  • Posts: 30
  • Thank you received: 0
10 years 8 months ago #146082

how to get invoice number
example number G1P51

Please Log in or Create an account to join the conversation.

  • Posts: 30
  • Thank you received: 0
10 years 8 months ago #146085

$f=JText::_('INVOICE').': prefix'.@$this->element->order_number;

$Details1 = $f;

But not work.

@$this->element->order_invoice_number;...

Last edit: 10 years 8 months ago by mkdhost.

Please Log in or Create an account to join the conversation.

  • Posts: 2334
  • Thank you received: 403
10 years 8 months ago #146100

So is it ok?
You can use var_dump($̂this->element); to visualize the available informations.

Please Log in or Create an account to join the conversation.

  • Posts: 30
  • Thank you received: 0
10 years 8 months ago #146141

$Details2 = $order->order_id; post order id

i want to get this G1P51
$Details1=->G1P51
Detalis 1 i want to post invoice number

Last edit: 10 years 8 months ago by mkdhost.

Please Log in or Create an account to join the conversation.

  • Posts: 30
  • Thank you received: 0
10 years 8 months ago #146217

$this->product->product_name;
give me blank..... help!

Last edit: 10 years 8 months ago by mkdhost.

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
10 years 8 months ago #146229

Hi,

Thanks to give more informations, in which view / email do you need to have these values ?
What are the values you need to get ?

As Eliot said, you can use the var_dump() function to see what is present in an object.

Please Log in or Create an account to join the conversation.

Time to create page: 0.144 seconds
Powered by Kunena Forum