Add a button on the chechkout page

  • Posts: 34
  • Thank you received: 0
8 years 1 month ago #251113

-- url of the page with the problem -- : tecnosystempanama.com
-- HikaShop version -- : 2.6.3
-- Joomla version -- : 2.5.28
-- PHP version -- : 5.5
-- Browser(s) name and version -- : chrome
-- Error-message(debug-mod must be tuned on) -- : Add a button on the chechkout page (example in the attchment)

Hi,

Add a button on the checkout page (example in the attachment), to redirect to another web page.

I'm already working in the view->checkout->step but i can't find the line to put the button.

The payment method is Bank Transfer

Thanks in advance for your soon reply.

Attachments:

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
8 years 1 month ago #251131

Hi,

You can edit the file "end" of the view "checkout" via the menu Display>Views. There put it at the top or bottom.

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

  • Posts: 34
  • Thank you received: 0
8 years 1 month ago #251200

Hi, Is it posible to make the invoice and after the invoince if the client wants to pay, login to select the payment method?

For example after the image in the attachment, the client can login to make the payment?

Thanks in advance for your soon reply

Attachments:

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
8 years 1 month ago #251237

Hi,

Please see HikaShop order settings :
www.hikashop.com/support/documentation/5...nfig.html#main_order

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: 34
  • Thank you received: 0
8 years 1 month ago #251408

Hi, I coud add the buttons that i need,thank you!

but also I need this:

1 - The client can create the invoice without login in, only with his/her email(step1)

2- If the client wants to pay the invoince he can login or sing up if is not registered(step2)

3- After the client singed up and for a future vitis, the client can create another invoice without login in and if he wanst to pay he can just login (step3)

Is that possible?

Thanks in advance for your soon reply

Attachments:

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
8 years 1 month ago #251429

Hi,

1. Then set the "registration" setting of the HikaShop configuration to "guest" and the user won't have to register/login during the checkout, only enter his email address.

2. and 3. If you set the "Display method for registration" setting to "switcher" you can select both the registration and guest in the "registration" setting and with the "login" option turned on, you can let the customer choose between login/register/guest checkout.

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

  • Posts: 34
  • Thank you received: 0
8 years 1 month ago #251492

Hi Nicolas, I did what you told me but when I try to use a email that is already registered I can not continue as a guest and that is exactly what I want to do. If the client wants to make the invoice without login he must have the option, but if the client wants to login to change the payment option it must be possible.

Thanks in advance for your soon reply

Attachments:

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

  • Posts: 34
  • Thank you received: 0
8 years 1 month ago #251501

Hi,

I manage to put the button at the checkout in the payment method check, exactly in check_end.php (hika1.png)

But now i need data that i must put on the payment button as address, telephone, name etc, (hika2.png)

could you hep me with the name of varibles: (hika3.png)

sid' value='1303908' />
card_holder_name' value='Checkout Shopper' />
street_address' value='123 Test Address' />
street_address2' value='Suite 200' />
'city' value='Columbus' />
'state' value=
'zip' value
'country' value
'ship_name' value>
ship_street_address' value
ship_street_address2' value
'ship_city' value
ship_state' value
'ship_zip' value
country' value
email' value
'phone' value


For example

$this->amount is ammount of the invoice
$this->order_number. is the number of the invoice

that i can use here:

<input type='hidden' name='li_0_name' value='invoice123' />
<input type='hidden' name='li_0_price' value='25.99' />

Thanks in advance for your soon repy

Attachments:

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
8 years 1 month ago #251529

Hi,

In check_end, you can use that code in order to get the order data:

$order_id = JRequest::getInt('order_id');
		if(empty($order_id)){
			$app = JFactory::getApplication();
			$order_id = $app->getUserState('com_hikashop.order_id');
		}
		$order =null;
		if(!empty($order_id)){
			$orderClass = hikashop_get('class.order');
			$order = $orderClass->loadFullOrder($order_id,false,false);
		}
you can see here the content of that variable in order to retrieve what you need:
www.hikashop.com/support/documentation/6...ntation.html#objects
For example, the email will be in $order->customer->user_email

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

  • Posts: 34
  • Thank you received: 0
8 years 1 month ago #251597

Hi,

thanks for the code that you send me, that helped me to get the email but I need this other variables:

id of the USER as passport
name and the lastname of the user
street_address
street_address2 //if theres any
city
state
zip code
country
phone

Thanks in advance for your soon reply

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

  • Posts: 34
  • Thank you received: 0
8 years 1 month ago #251598

Hi Nicolas, I did what you told me but when I try to use a email that is already registered I can not continue as a guest and that is exactly what I want to do. If the client wants to make the invoice without login he must have the option, but if the client wants to login to change the payment option it must be possible.

Thanks in advance for your soon reply

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
8 years 1 month ago #251628

Hi,

1. I gave you all the information to get all the information of the user. As I said the information you need is in $order. I gave you a link which lists all the information available in there, and an example of how to retrieve one of them. So you just have to piece it together for the other variables.For example, for the city of the customer it's $order->billing_address->address_city

2. That's how the system works. You cannot guest checkout with an email address for which you already have a user account. In that case, you need to login in order to proceed or use another email address.
There is no option to do that differently. You would have to change the code in administrator/components/com_hikashop/classes/user.php but if you do, anyone with the email address of someone would be able to place orders for the account of someone else. That would be a security issue which is why we can't allow that.

PS: please create different threads for different questions.

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

  • Posts: 34
  • Thank you received: 0
7 years 10 months ago #258898

Hi,

I the last step of the checkout, the "thanks_for_your_purchase" part, I need the variables with the order number and the total amount in guest mode,
Thanks in advance for your soon reply.

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
7 years 10 months ago #258900

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

Time to create page: 0.087 seconds
Powered by Kunena Forum