[Skip to main content](#vessel-content)

#   Checkout customization

##

- **[mypetfly](/forum/user/39734-mypetfly "View mypetfly's Profile")**
- [![mypetfly's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/39734-mypetfly "View mypetfly's Profile") Topic Author
- [ Offline](/forum/user/39734-mypetfly)

Less More

- Posts: 73
- Thank you received: 2
-
-

10 years 4 weeks ago -  10 years 4 weeks ago [\#253730](#253730) by [mypetfly](/forum/user/39734-mypetfly "View mypetfly's Profile")  *[Checkout customization](/forum/27-checkout/887174-checkout-customization#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 &quot;add to cart button&quot; 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?")* was created by *[mypetfly](/forum/user/39734-mypetfly "View mypetfly's Profile")*

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: 10 years 4 weeks ago by [mypetfly](/forum/user/39734-mypetfly "View mypetfly's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4NzE3NC1jaGVja291dC1jdXN0b21pemF0aW9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

10 years 4 weeks ago [\#253740](#253740) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Checkout customization](/forum/27-checkout/887174-checkout-customization#253740 "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 &quot;add to cart button&quot; 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?")*

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](https://www.hikashop.com/forum/2-general-talk-about-hikashop/16216-add-to-cart-link-and-custom-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](https://www.hikashop.com/support/documentation/76-hikashop-geolocation.html)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4NzE3NC1jaGVja291dC1jdXN0b21pemF0aW9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[mypetfly](/forum/user/39734-mypetfly "View mypetfly's Profile")**
- [![mypetfly's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/39734-mypetfly "View mypetfly's Profile") Topic Author
- [ Offline](/forum/user/39734-mypetfly)

Less More

- Posts: 73
- Thank you received: 2
-
-

10 years 4 weeks ago -  10 years 4 weeks ago [\#253884](#253884) by [mypetfly](/forum/user/39734-mypetfly "View mypetfly's Profile")  Replied by *[mypetfly](/forum/user/39734-mypetfly "View mypetfly's Profile")* on topic *[Checkout customization](/forum/27-checkout/887174-checkout-customization#253884 "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 &quot;add to cart button&quot; 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?")*

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

&gt;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: 10 years 4 weeks ago by [mypetfly](/forum/user/39734-mypetfly "View mypetfly's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4NzE3NC1jaGVja291dC1jdXN0b21pemF0aW9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

10 years 4 weeks ago [\#253904](#253904) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Checkout customization](/forum/27-checkout/887174-checkout-customization#253904 "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 &quot;add to cart button&quot; 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?")*

Hi,

Yes. If you add such code: Code:

if(!empty($_SERVER["HTTP_CF_IPCOUNTRY"])){ $geoClass = hikashop_get('inc.geoplugin'); $geoClass-&gt;countryCode = $_SERVER["HTTP_CF_IPCOUNTRY"]; if(!empty($geoClass-&gt;countryCode) &amp;&amp; $geoClass-&gt;countryCode =='UK'){ $geoClass-&gt;countryCode='GB'; } }

after the line:
$this-&gt;params = new HikaParameter( $plugin-&gt;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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4NzE3NC1jaGVja291dC1jdXN0b21pemF0aW9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.058 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
