1-click order button through Ask a Question about

  • Posts: 47
  • Thank you received: 4
9 years 8 months ago #226029

-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.4.8
-- Browser(s) name and version -- : Chrome

Good day to you,
I`m trying to create 1-click order button through "Ask a Question about this product" .
There`s only one problem: all fields (name,email and additional information) are mandatory, if user leaves at least one field empty - request won`t be sent.
How to make them all optional?
Moreover, after user has sent request, I`d like to have him redirected to other page. Now nothing happens, user don`t even know, whether message was sent or not.

Thx in advance for your help

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

  • Posts: 13201
  • Thank you received: 2322
9 years 8 months ago #226102

Hi,

Via the menu Display > Custom fields you can change the mandatory state of a custom field.
But be careful, missing informations on an order is not a good thing.

How are you handling this one click order ? You added custom product fields and you replicate these fields values into user custom fields (name, email...) in order to have a correct order created ?

The following user(s) said Thank You: amigo

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

  • Posts: 47
  • Thank you received: 4
9 years 8 months ago #226121

Thx for fast response,
I checked Display > Custom fields, it has no fields for contact form, except the one, that was created by me for telephone numbers.

Am I missing something? You can check attached image, I was asking about "name", "email" and "additional information" fields in contact form.

How are you handling this one click order ?

No, I simply use provided by client information to create the order manually afterwards. It` not ideal solution, but it is mandatory, because some customers can`t make order at all through our website.

Attachments:
Last edit: 9 years 8 months ago by amigo.

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

  • Posts: 13201
  • Thank you received: 2322
9 years 8 months ago #226155

Hi,

Ok I understand your situation, I don't think that using the product contact form is the best solution and the easiest one.

For me the best way is to let a common checkout, so add to cart buttons, a checkout, etc.
But, in Configuration > Checkout, remove the "shipping" step and add the "check" payment method and edit it to rename it as "create an order", change the text description to explain that it is not and order, and in the return url option set the desired url. And job is done. Like that there will only be "created" orders and no payments from the customer. And it is managing all the customer informations automatically.

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

  • Posts: 47
  • Thank you received: 4
9 years 8 months ago #226259

For me the best way is to let a common checkout, so add to cart buttons, a checkout, etc....And job is done


I already have it all. People can make order, using "add to cart" button.
1-click order is an additional button, that I`d like to offer for lazy clients or for those, who by some strange reason can`t make an order, using standard method.
Or I misunderstood you?
You can check it all here: leza-shaving.com/en/straight-razors/thie...le-petit-francais-en
(don`t be afraid to make an order for testing purposes)

Last edit: 9 years 8 months ago by amigo.

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

  • Posts: 12953
  • Thank you received: 1778
9 years 8 months ago #226322

Hello,

I just tested your checkout workflow and it worked fine, also if you want a quick ordering system, the solution can be to put all your checkout actions on ONE step through your checkout workflow via "Hikashop->System->Configuration->Checkout".
Note that using the "HikaShop Paypal Express Checkout payment plugin" payment method will enable your customer to pay their order by only using 1 click.

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

  • Posts: 47
  • Thank you received: 4
9 years 8 months ago #226370

Yes, I saw your order. Problem is, that not all customers are so lucky, from time to time I see messages from those buyers, who couldn`t complete their order.
I like my order system, but I also want to have separate, auxiliary solution for lazy customers: 1 click order, just like I described in my first message.
Is it so hard to delete 2 fields from contact form? :(

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

  • Posts: 84306
  • Thank you received: 13701
  • MODERATOR
9 years 8 months ago #226380

It's not that hard. You just have to adapt the function "send_email" of the file components/com_hikashop/controllers/product.php and remove the checks there:

if($element->email && !JMailHelper::isEmailAddress($element->email)){
			$app->enqueueMessage(JText::_('EMAIL_INVALID'), 'error');
			$send = false;
		}

		if(empty($element->name)) {
			$app->enqueueMessage(JText::_('SPECIFY_A_NAME'), 'error');
			$send = false;
		}

		if(empty($element->altbody)) {
			$app->enqueueMessage(JText::_('PLEASE_FILL_ADDITIONAL_INFO'), 'error');
			$send = false;
		}

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

Time to create page: 0.090 seconds
Powered by Kunena Forum