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

#   link to auto add a product to basket

##

- **[daveturner101](/forum/user/13550-daveturner101 "View daveturner101's Profile")**
- [![daveturner101's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/guitar.gif)](/forum/user/13550-daveturner101 "View daveturner101's Profile") Topic Author
- [ Offline](/forum/user/13550-daveturner101)

Less More

- Posts: 72
- Thank you received: 0
-
-

12 years 10 months ago -  12 years 10 months ago [\#138934](#138934) by [daveturner101](/forum/user/13550-daveturner101 "View daveturner101's Profile")  *[link to auto add a product to basket](/forum/27-checkout/864837-link-to-auto-add-a-product-to-basket#138934 "hi,  is it possible for a customer to click a specific product link in an email and be directed straight to our site checkout page with the product automatically added to the basket?  many thanks")* was created by *[daveturner101](/forum/user/13550-daveturner101 "View daveturner101's Profile")*

hi,

is it possible for a customer to click a specific product link in an email and be directed straight to our site checkout page with the product automatically added to the basket?

many thanks

Last edit: 12 years 10 months ago by [daveturner101](/forum/user/13550-daveturner101 "View daveturner101's Profile"). Reason: opened again

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2NDgzNy1saW5rLXRvLWF1dG8tYWRkLWEtcHJvZHVjdC10by1iYXNrZXQ/dG1wbD1tYXJrZG93bg==) 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: 86587
- Thank you received: 14326
-
-

12 years 10 months ago [\#138944](#138944) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[a link to automatically add a product to basket](/forum/27-checkout/864837-link-to-auto-add-a-product-to-basket#138944 "hi,  is it possible for a customer to click a specific product link in an email and be directed straight to our site checkout page with the product automatically added to the basket?  many thanks")*

Hi,

Yes, that's possible. Simply copy/paste the HTML add to cart button of the product in your email and that will do exactly that:
[ www.hikashop.com/support/documentation/i...ct-form.html#toolbar](http://www.hikashop.com/support/documentation/integrated-documentation/19-hikashop-product-form.html#toolbar)

The following user(s) said Thank You: [daveturner101](/forum/user/13550-daveturner101 "View daveturner101's Profile")

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

- **[daveturner101](/forum/user/13550-daveturner101 "View daveturner101's Profile")**
- [![daveturner101's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/guitar.gif)](/forum/user/13550-daveturner101 "View daveturner101's Profile") Topic Author
- [ Offline](/forum/user/13550-daveturner101)

Less More

- Posts: 72
- Thank you received: 0
-
-

12 years 10 months ago -  12 years 10 months ago [\#138956](#138956) by [daveturner101](/forum/user/13550-daveturner101 "View daveturner101's Profile")  Replied by *[daveturner101](/forum/user/13550-daveturner101 "View daveturner101's Profile")* on topic *[a link to automatically add a product to basket](/forum/27-checkout/864837-link-to-auto-add-a-product-to-basket#138956 "hi,  is it possible for a customer to click a specific product link in an email and be directed straight to our site checkout page with the product automatically added to the basket?  many thanks")*

brilliant. thanks.

what if the product has an option attached to it? can the link url be edited to automatically add one of the available options to the product?

Last edit: 12 years 10 months ago by [daveturner101](/forum/user/13550-daveturner101 "View daveturner101's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2NDgzNy1saW5rLXRvLWF1dG8tYWRkLWEtcHJvZHVjdC10by1iYXNrZXQ/dG1wbD1tYXJrZG93bg==) 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: 86587
- Thank you received: 14326
-
-

12 years 10 months ago [\#138959](#138959) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[a link to automatically add a product to basket](/forum/27-checkout/864837-link-to-auto-add-a-product-to-basket#138959 "hi,  is it possible for a customer to click a specific product link in an email and be directed straight to our site checkout page with the product automatically added to the basket?  many thanks")*

Yes, but that's more complex. You need to add an additional parameter for it in the URL like that:
&amp;hikashop_product_option[]=XXX
where XXX is the id of the variant/product of the option.

The following user(s) said Thank You: [daveturner101](/forum/user/13550-daveturner101 "View daveturner101's Profile")

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

- **[daveturner101](/forum/user/13550-daveturner101 "View daveturner101's Profile")**
- [![daveturner101's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/guitar.gif)](/forum/user/13550-daveturner101 "View daveturner101's Profile") Topic Author
- [ Offline](/forum/user/13550-daveturner101)

Less More

- Posts: 72
- Thank you received: 0
-
-

12 years 10 months ago [\#138964](#138964) by [daveturner101](/forum/user/13550-daveturner101 "View daveturner101's Profile")  Replied by *[daveturner101](/forum/user/13550-daveturner101 "View daveturner101's Profile")* on topic *[a link to automatically add a product to basket](/forum/27-checkout/864837-link-to-auto-add-a-product-to-basket#138964 "hi,  is it possible for a customer to click a specific product link in an email and be directed straight to our site checkout page with the product automatically added to the basket?  many thanks")*

that's great, easy enough.

thanks a lot.

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

- **[daveturner101](/forum/user/13550-daveturner101 "View daveturner101's Profile")**
- [![daveturner101's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/guitar.gif)](/forum/user/13550-daveturner101 "View daveturner101's Profile") Topic Author
- [ Offline](/forum/user/13550-daveturner101)

Less More

- Posts: 72
- Thank you received: 0
-
-

12 years 10 months ago [\#139668](#139668) by [daveturner101](/forum/user/13550-daveturner101 "View daveturner101's Profile")  Replied by *[daveturner101](/forum/user/13550-daveturner101 "View daveturner101's Profile")* on topic *[a link to automatically add a product to basket](/forum/27-checkout/864837-link-to-auto-add-a-product-to-basket#139668 "hi,  is it possible for a customer to click a specific product link in an email and be directed straight to our site checkout page with the product automatically added to the basket?  many thanks")*

> nicolas wrote: Yes, but that's more complex. You need to add an additional parameter for it in the URL like that:
> &amp;hikashop\_product\_option\[\]=XXX
> where XXX is the id of the variant/product of the option.

hi again.

what if im not using an 'option' but rather a 'characteristic'?

the characteristic group has an id of '8' and the characteristic that i want to add has an 'id' of '6'

i've tried the following:

/index.php?option=com_hikashop&amp;ctrl=product&amp;task=updatecart&amp;quantity=1&amp;checkout=1&amp;product_id=155**&amp;hikashop\_product\_characteristic\[8\]=6**

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2NDgzNy1saW5rLXRvLWF1dG8tYWRkLWEtcHJvZHVjdC10by1iYXNrZXQ/dG1wbD1tYXJrZG93bg==) 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: 86587
- Thank you received: 14326
-
-

12 years 10 months ago [\#139683](#139683) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[a link to automatically add a product to basket](/forum/27-checkout/864837-link-to-auto-add-a-product-to-basket#139683 "hi,  is it possible for a customer to click a specific product link in an email and be directed straight to our site checkout page with the product automatically added to the basket?  many thanks")*

Hi,

In that case, it's even easier. Simply set your variant in the "product_id" parameter of the URL instead of the id of the main product. There is no additional parameter to add.

The following user(s) said Thank You: [daveturner101](/forum/user/13550-daveturner101 "View daveturner101's Profile")

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

- **[daveturner101](/forum/user/13550-daveturner101 "View daveturner101's Profile")**
- [![daveturner101's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/guitar.gif)](/forum/user/13550-daveturner101 "View daveturner101's Profile") Topic Author
- [ Offline](/forum/user/13550-daveturner101)

Less More

- Posts: 72
- Thank you received: 0
-
-

12 years 10 months ago [\#139705](#139705) by [daveturner101](/forum/user/13550-daveturner101 "View daveturner101's Profile")  Replied by *[daveturner101](/forum/user/13550-daveturner101 "View daveturner101's Profile")* on topic *[a link to automatically add a product to basket](/forum/27-checkout/864837-link-to-auto-add-a-product-to-basket#139705 "hi,  is it possible for a customer to click a specific product link in an email and be directed straight to our site checkout page with the product automatically added to the basket?  many thanks")*

> nicolas wrote: Hi,
>
> In that case, it's even easier. Simply set your variant in the "product\_id" parameter of the URL instead of the id of the main product. There is no additional parameter to add.

i've tried that but i already have products with the id numbers 6 and 8 and it just adds those products to the basket rather than the product characteristic ![:/](/irritated.gif ":/")

/index.php?option=com_hikashop&amp;ctrl=product&amp;task=updatecart&amp;quantity=1&amp;checkout=1&amp;product_id=8

and

/index.php?option=com_hikashop&amp;ctrl=product&amp;task=updatecart&amp;quantity=1&amp;checkout=1&amp;product_id=6

are already products in their own right

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2NDgzNy1saW5rLXRvLWF1dG8tYWRkLWEtcHJvZHVjdC10by1iYXNrZXQ/dG1wbD1tYXJrZG93bg==) 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: 86587
- Thank you received: 14326
-
-

12 years 10 months ago [\#139723](#139723) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[a link to automatically add a product to basket](/forum/27-checkout/864837-link-to-auto-add-a-product-to-basket#139723 "hi,  is it possible for a customer to click a specific product link in an email and be directed straight to our site checkout page with the product automatically added to the basket?  many thanks")*

No. You can't have a variant with the same id as a product since they are stored in the same table each one with a unique id.
So that means that your variant is not 6 or 8 but something else. Click on the "manage variants" button of your product and you'll get the listing of variants of the product with the id of each variant on the right of the listing.

The following user(s) said Thank You: [daveturner101](/forum/user/13550-daveturner101 "View daveturner101's Profile")

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

- **[daveturner101](/forum/user/13550-daveturner101 "View daveturner101's Profile")**
- [![daveturner101's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/guitar.gif)](/forum/user/13550-daveturner101 "View daveturner101's Profile") Topic Author
- [ Offline](/forum/user/13550-daveturner101)

Less More

- Posts: 72
- Thank you received: 0
-
-

12 years 10 months ago [\#139739](#139739) by [daveturner101](/forum/user/13550-daveturner101 "View daveturner101's Profile")  Replied by *[daveturner101](/forum/user/13550-daveturner101 "View daveturner101's Profile")* on topic *[a link to automatically add a product to basket](/forum/27-checkout/864837-link-to-auto-add-a-product-to-basket#139739 "hi,  is it possible for a customer to click a specific product link in an email and be directed straight to our site checkout page with the product automatically added to the basket?  many thanks")*

> nicolas wrote: No. You can't have a variant with the same id as a product since they are stored in the same table each one with a unique id.
> So that means that your variant is not 6 or 8 but something else. Click on the "manage variants" button of your product and you'll get the listing of variants of the product with the id of each variant on the right of the listing.

aahh i see. it works fine now. thanks ![:)](/media/kunena/emoticons/3.png ":)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2NDgzNy1saW5rLXRvLWF1dG8tYWRkLWEtcHJvZHVjdC10by1iYXNrZXQ/dG1wbD1tYXJrZG93bg==) 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.077 seconds

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