Skip to main content

CASYS MACEDONIA

More
12 years 7 months ago - 12 years 7 months ago #145412 by mkdhost
CASYS MACEDONIA was created by mkdhost
-- 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: 12 years 7 months ago by mkdhost.

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

More
12 years 7 months ago #145420 by nicolas
Replied by nicolas on topic CASYS MACEDONIA
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.

More
12 years 7 months ago - 12 years 7 months ago #145446 by mkdhost
Replied by mkdhost on topic CASYS MACEDONIA
$lang = &JFactory::getLanguage(); give me this warning
Last edit: 12 years 7 months ago by mkdhost.

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

More
12 years 7 months ago #145447 by Jerome
Replied by Jerome on topic CASYS MACEDONIA
Hi,

It should give you a warning, not an error.

Regards,

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

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

More
12 years 7 months ago - 12 years 7 months ago #145448 by mkdhost
Replied by mkdhost on topic CASYS MACEDONIA
n line 123 Fatal error: Cannot access empty property in
$FirstName = $order->cart->$address_type->address_firstname;
Last edit: 12 years 7 months ago by mkdhost.

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

More
12 years 7 months ago #145457 by nicolas
Replied by nicolas on topic CASYS MACEDONIA
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.

More
12 years 7 months ago - 12 years 7 months ago #145458 by mkdhost
Replied by mkdhost on topic CASYS MACEDONIA
what is procedure to add my plugin in hikashop instalation?
Last edit: 12 years 7 months ago by mkdhost.

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

More
12 years 7 months ago #145469 by mkdhost
Replied by mkdhost on topic CASYS MACEDONIA
$Email = $this->user->user_email;
give me blank email?

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

More
12 years 7 months ago #145471 by nicolas
Replied by nicolas on topic CASYS MACEDONIA
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.

More
12 years 7 months ago - 12 years 7 months ago #145473 by mkdhost
Replied by mkdhost on topic CASYS MACEDONIA
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: 12 years 7 months ago by mkdhost.

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

More
12 years 7 months ago #145481 by mkdhost
Replied by mkdhost on topic CASYS MACEDONIA
$user =&JFactory::getUser(); now is ok that.

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

More
12 years 7 months ago #145496 by Mohamed Thelji
Replied by Mohamed Thelji on topic CASYS MACEDONIA
Hi,
Regarding the currency, reading that thread will probably help you :).

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

More
12 years 7 months ago #145978 by mkdhost
Replied by mkdhost on topic CASYS MACEDONIA
how to return_url target in blank page?

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

More
12 years 7 months ago #145992 by nicolas
Replied by nicolas on topic CASYS MACEDONIA
I don't understand your question. Please provide more context.

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

More
12 years 7 months ago #146082 by mkdhost
Replied by mkdhost on topic CASYS MACEDONIA
how to get invoice number
example number G1P51

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

More
12 years 7 months ago - 12 years 7 months ago #146085 by mkdhost
Replied by mkdhost on topic CASYS MACEDONIA
$f=JText::_('INVOICE').': prefix'.@$this->element->order_number;

$Details1 = $f;

But not work.

@$this->element->order_invoice_number;...
Last edit: 12 years 7 months ago by mkdhost.

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

More
12 years 7 months ago #146100 by Eliot
Replied by Eliot on topic CASYS MACEDONIA
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.

More
12 years 7 months ago - 12 years 7 months ago #146141 by mkdhost
Replied by mkdhost on topic CASYS MACEDONIA
$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: 12 years 7 months ago by mkdhost.

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

More
12 years 7 months ago - 12 years 7 months ago #146217 by mkdhost
Replied by mkdhost on topic CASYS MACEDONIA
$this->product->product_name;
give me blank..... help!
Last edit: 12 years 7 months ago by mkdhost.

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

More
12 years 7 months ago #146229 by Xavier
Replied by Xavier on topic CASYS MACEDONIA
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.332 seconds
Powered by Kunena Forum