Checkout customization

  • Posts: 73
  • Thank you received: 2
8 years 1 month ago #253730

Hello, thank you for the great extension.

I have a few questions and need any help or hints for them.

1.l have the only product and don't want the user make clicking "add to cart button" in order to purchase the product. I have a website where users are creating logotypes (JS-based application) and then can purchase the logo in vector (I am going to use hikashop as membership extension and place the user in a special user group after the payment, but this is not the question). So, after the user created a logo and clicked download button in a js-based application, I need him to be redirected to the checkout page (without clicking additional add to cart button on the main Joomla-based website). Is that possible to start checkout right by redirecting the user to a certain URL?

2. I need to implement 1-click user registration during checkout. I want guest user to enter email only - all other things like joomla user name and name must being created from user email, password must be generated automatically and emailed to the user. I know there is possibility to do something like this using paypal express plugin, but I also need this for credit cards (not sure which plugin will be used for credit card, I think there will be a several services like pagseguro, 2checkout, etc.). Is that possible to implement 1-click registration at checkout?

3. I need to set different currency for the product depending on user country (country will be detected by IP). Is that possible?

Last edit: 8 years 1 month ago by mypetfly.

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

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
8 years 1 month ago #253740

Hi,

1. Yes, you want to use the URL you can find when you click on the "HTML add to cart button" button of your product when you edit it in the backend. That URL will automatically add the product to the cart and redirect the customer to the checkout.
You can even add parameters to custom item fields as explained here:
www.hikashop.com/forum/2-general-talk-ab...-product-fields.html
So that you can fill in the data from the js based app to the product custom item fields and that will appear in the invoice, the order, etc.

2. Yes. Change the "registration" setting of the HikaShop configuration to "simplified registration" and you'll only have the email field.
The address fields can be deactivated on the registration field with the "Ask address on registration" setting below.
And you probably want to turn off the user account validation setting of the Joomla user manager.

3. Yes. You can use the geolocation plugin for that:
www.hikashop.com/support/documentation/7...hop-geolocation.html

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

  • Posts: 73
  • Thank you received: 2
8 years 4 weeks ago #253884

Thanks you very much for the helpful information, I will try this in a few days and probably come back with some additional questions.

>Yes. You can use the geolocation plugin for that:

3. I'm using cloudflare which has very precise geolocation function based on paid maxmind's database. Currently I am getting country code using the following php code:

$country_code = $_SERVER["HTTP_CF_IPCOUNTRY"];

Is that possible to make this plugin using such a way for geolocation?

Last edit: 8 years 4 weeks ago by mypetfly.

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

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
8 years 4 weeks ago #253904

Hi,

Yes. If you add such code:

if(!empty($_SERVER["HTTP_CF_IPCOUNTRY"])){
			$geoClass = hikashop_get('inc.geoplugin');
			$geoClass->countryCode = $_SERVER["HTTP_CF_IPCOUNTRY"];
			if(!empty($geoClass->countryCode) && $geoClass->countryCode =='UK'){
				$geoClass->countryCode='GB';
			}
		}
after the line:
$this->params = new HikaParameter( $plugin->params );
in administrator/components/com_hikashop/classes/geolocation.php
it will be compatible with that.
Note that you still need to configure one of the two services in the geolocation plugin for when cloudflare doesn't return a coutnry code (if their geolocation system is down, or cloudflare itself is down, etc).

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

Time to create page: 0.057 seconds
Powered by Kunena Forum