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

#   Add to cart link for variable products?

##

- **[josflachs](/forum/user/42532-josflachs "View josflachs's Profile")**
- [![josflachs's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar42532.jpg)](/forum/user/42532-josflachs "View josflachs's Profile") Topic Author
- [ Offline](/forum/user/42532-josflachs)

Less More

- Posts: 22
- Thank you received: 0
-
-

6 years 11 months ago -  6 years 11 months ago [\#314005](#314005) by [josflachs](/forum/user/42532-josflachs "View josflachs's Profile")  *[Add to cart link for variable products?](/forum/25-install-update/898855-add-to-cart-link-for-variable-products#314005 "-- url of the page with the problem -- : localhost -- HikaShop version -- : 4.2.2 starter -- Joomla version -- : 3.9.13 -- PHP version -- : 7.2.9 -- Error-message(debug-mod must be tuned on) -- : none  Gents, I want to build a site that sells virtual variable products. Each product has a large description, for which I want to use Joomla articles. In each article I place the 'add to cart HTML link, to link it to the shopping cart. I have 3 variations for each product: free, small, large. The variation 'small' is the default variation for the product.  I notice that the 'add to cart link' links to only one variation, the free one. Once you hit the add to cart link, you automatically go to the registration page.  1- Can I create links that link to their respective variation? 2- Can I set it to the add to cart instead of to the registration page?  Out of the box (free version) I have not enough options on the product listing: An image, the price, the name and choose options. It would help me a lot if I can add a description to it. (and link it to an article with a longer description). Also I like to change the text in the button 'choose options' to 'choose version'. How do I do that?  At this moment I'm building with the starter on localhost. If what I need can be done with the commercial version, I'm more than happy to upgrade to the essential or business package.")* was created by *[josflachs](/forum/user/42532-josflachs "View josflachs's Profile")*

-- url of the page with the problem -- : localhost
-- HikaShop version -- : 4.2.2 starter
-- Joomla version -- : 3.9.13
-- PHP version -- : 7.2.9
-- Error-message(debug-mod must be tuned on) -- : none

Gents, I want to build a site that sells virtual variable products. Each product has a large description, for which I want to use Joomla articles. In each article I place the 'add to cart HTML link, to link it to the shopping cart. I have 3 variations for each product: free, small, large. The variation 'small' is the default variation for the product.

I notice that the 'add to cart link' links to only one variation, the free one. Once you hit the add to cart link, you automatically go to the registration page.

1- Can I create links that link to their respective variation?
2- Can I set it to the add to cart instead of to the registration page?

Out of the box (free version) I have not enough options on the product listing: An image, the price, the name and choose options. It would help me a lot if I can add a description to it. (and link it to an article with a longer description). Also I like to change the text in the button 'choose options' to 'choose version'. How do I do that?

At this moment I'm building with the starter on localhost. If what I need can be done with the commercial version, I'm more than happy to upgrade to the essential or business package.

Last edit: 6 years 11 months ago by [josflachs](/forum/user/42532-josflachs "View josflachs's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg5ODg1NS1hZGQtdG8tY2FydC1saW5rLWZvci12YXJpYWJsZS1wcm9kdWN0cz90bXBsPW1hcmtkb3du) 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
-
-

6 years 11 months ago [\#314010](#314010) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Add to cart link for variable products?](/forum/25-install-update/898855-add-to-cart-link-for-variable-products#314010 "-- url of the page with the problem -- : localhost -- HikaShop version -- : 4.2.2 starter -- Joomla version -- : 3.9.13 -- PHP version -- : 7.2.9 -- Error-message(debug-mod must be tuned on) -- : none  Gents, I want to build a site that sells virtual variable products. Each product has a large description, for which I want to use Joomla articles. In each article I place the 'add to cart HTML link, to link it to the shopping cart. I have 3 variations for each product: free, small, large. The variation 'small' is the default variation for the product.  I notice that the 'add to cart link' links to only one variation, the free one. Once you hit the add to cart link, you automatically go to the registration page.  1- Can I create links that link to their respective variation? 2- Can I set it to the add to cart instead of to the registration page?  Out of the box (free version) I have not enough options on the product listing: An image, the price, the name and choose options. It would help me a lot if I can add a description to it. (and link it to an article with a longer description). Also I like to change the text in the button 'choose options' to 'choose version'. How do I do that?  At this moment I'm building with the starter on localhost. If what I need can be done with the commercial version, I'm more than happy to upgrade to the essential or business package.")*

Hi,

1. Yes. In the URL of the add to cart link, just change the product_id to the id of the corresponding variant (you can see the id of the variants with the right column of the variants listing under the "variants" tab when you edit the product:
[ monosnap.com/file/a3zFSaPY9piiYGST2veW4VeNeZNJZ0](https://monosnap.com/file/a3zFSaPY9piiYGST2veW4VeNeZNJZ0)

2. I suppose you mean "cart" and not "add to cart". You'll want to configure your checkout workflow under the "checkout" tab of the HikaShop configuration in order to have the cart view on the first step of the checkout and the registration/login on the second one.

3. When you edit a products listing menu item via the Joomla menu manager, under the "products options" tab, you can select the item box layout. By default it's "image and title". If you select "image and description", you'll get the image, the name, the price the description and the choose options button. So you could do it like that, or you could use any other item box layout and edit its code via the menu Display&gt;Views to add the description where you want it:
[ www.hikashop.com/forum/product-category-...-listing.html#180832](https://www.hikashop.com/forum/product-category-display/873066-description-in-product-listing.html#180832)

4. The text of the button can be changed with a translation override:
[ www.hikashop.com/download/languages.html#modify](https://www.hikashop.com/download/languages.html#modify)

5. All of what I described can be done with any edition of HikaShop, including the Starter edition.

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

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