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

#   Include a small bit of text and buy now button

##

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

Less More

- Posts: 110
- Thank you received: 0
-
-

15 years 8 months ago [\#8964](#8964) by [deborahharrison](/forum/user/1040-deborahharrison "View deborahharrison's Profile")  Replied by *[deborahharrison](/forum/user/1040-deborahharrison "View deborahharrison's Profile")* on topic *[Re: Include a small bit of text and buy now button](/forum/4-how-to/7438-include-a-small-bit-of-text-and-buy-now-button?start=20#8964 "Hi  At the moment, I have my products listed under category as just the image and the title. Is it possible I could include a small bit of text  Basically we sell books and we would like to list in the following layout:  Image - then Title. Author Name Save 20% off RRP save £... Add to cart button  Can that be done?  Please advise how I can go about that.")*

I've got that, thanks for that.

I am trying to create a separate field for Author. So using [ 212.113.133.235/~englishr/index.php?opti...=childrens&amp;Itemid=53](http://212.113.133.235/~englishr/index.php?option=com_hikashop&ctrl=category&task=listing&cid=10&name=childrens&Itemid=53) as an example, The listing would read The Nursery Alice and then Author: Lewis Caroll.

I have created the custom field author but how can I add it to the listing?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc0MzgtaW5jbHVkZS1hLXNtYWxsLWJpdC1vZi10ZXh0LWFuZC1idXktbm93LWJ1dHRvbj9zdGFydD0yMCZ0bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86283
- Thank you received: 14263
-
-

15 years 8 months ago [\#8972](#8972) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Include a small bit of text and buy now button](/forum/4-how-to/7438-include-a-small-bit-of-text-and-buy-now-button?start=20#8972 "Hi  At the moment, I have my products listed under category as just the image and the title. Is it possible I could include a small bit of text  Basically we sell books and we would like to list in the following layout:  Image - then Title. Author Name Save 20% off RRP save £... Add to cart button  Can that be done?  Please advise how I can go about that.")*

You have to edit one of the view files of the view product and add a line of PHP to display it in the listing.

something like that:
echo $this-&gt;row-&gt;COLUMN_NAME;

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

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

Less More

- Posts: 110
- Thank you received: 0
-
-

15 years 8 months ago [\#8976](#8976) by [deborahharrison](/forum/user/1040-deborahharrison "View deborahharrison's Profile")  Replied by *[deborahharrison](/forum/user/1040-deborahharrison "View deborahharrison's Profile")* on topic *[Re: Include a small bit of text and buy now button](/forum/4-how-to/7438-include-a-small-bit-of-text-and-buy-now-button?start=20#8976 "Hi  At the moment, I have my products listed under category as just the image and the title. Is it possible I could include a small bit of text  Basically we sell books and we would like to list in the following layout:  Image - then Title. Author Name Save 20% off RRP save £... Add to cart button  Can that be done?  Please advise how I can go about that.")*

I have to the product listing_img_title (I have labelled it Author: to show you what happens) and I get [ 212.113.133.235/~englishr/index.php?opti...=childrens&amp;Itemid=53](http://212.113.133.235/~englishr/index.php?option=com_hikashop&ctrl=category&task=listing&cid=10&name=childrens&Itemid=53)

Is a custom field just for what a client completes when they register or can it be an additional field when someone adds a product? Please advise.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc0MzgtaW5jbHVkZS1hLXNtYWxsLWJpdC1vZi10ZXh0LWFuZC1idXktbm93LWJ1dHRvbj9zdGFydD0yMCZ0bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86283
- Thank you received: 14263
-
-

15 years 8 months ago [\#8984](#8984) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Include a small bit of text and buy now button](/forum/4-how-to/7438-include-a-small-bit-of-text-and-buy-now-button?start=20#8984 "Hi  At the moment, I have my products listed under category as just the image and the title. Is it possible I could include a small bit of text  Basically we sell books and we would like to list in the following layout:  Image - then Title. Author Name Save 20% off RRP save £... Add to cart button  Can that be done?  Please advise how I can go about that.")*

Are you sure that you have the good column name ?

There are several types of custom fields. Custom product fields can be used to set options on the back end. Custom item fields can be used to ask information to the user on the product page. Custom order fields can be used to ask information to the user on the checkout, etc.

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

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

Less More

- Posts: 110
- Thank you received: 0
-
-

15 years 8 months ago [\#8994](#8994) by [deborahharrison](/forum/user/1040-deborahharrison "View deborahharrison's Profile")  Replied by *[deborahharrison](/forum/user/1040-deborahharrison "View deborahharrison's Profile")* on topic *[Re: Include a small bit of text and buy now button](/forum/4-how-to/7438-include-a-small-bit-of-text-and-buy-now-button?start=20#8994 "Hi  At the moment, I have my products listed under category as just the image and the title. Is it possible I could include a small bit of text  Basically we sell books and we would like to list in the following layout:  Image - then Title. Author Name Save 20% off RRP save £... Add to cart button  Can that be done?  Please advise how I can go about that.")*

I have completed it as the following:

Column name: author
Label: Author
Field Type: Text
Table: Address (but I can't change that).

My Php line that I introduced was:

> &lt;p&gt;&lt;b&gt;Author:&lt;/b&gt;&lt;?php echo $this-&gt;row-&gt;author; ?&gt;&lt;/p&gt;

I have no idea if what I've done is right!! :blink:

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc0MzgtaW5jbHVkZS1hLXNtYWxsLWJpdC1vZi10ZXh0LWFuZC1idXktbm93LWJ1dHRvbj9zdGFydD0yMCZ0bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86283
- Thank you received: 14263
-
-

15 years 8 months ago [\#8995](#8995) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Include a small bit of text and buy now button](/forum/4-how-to/7438-include-a-small-bit-of-text-and-buy-now-button?start=20#8995 "Hi  At the moment, I have my products listed under category as just the image and the title. Is it possible I could include a small bit of text  Basically we sell books and we would like to list in the following layout:  Image - then Title. Author Name Save 20% off RRP save £... Add to cart button  Can that be done?  Please advise how I can go about that.")*

Address custom fields are only for the address of customers. They are not related to products.

If you want to have a custom product field called author, you should first delete this one and create a new one for the table product. Then, in the product options, you will be able to set the author and use the code I provided to display it on the listing.
Note that custom product fields are only available in commercial versions of HikaShop.

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

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

Less More

- Posts: 110
- Thank you received: 0
-
-

15 years 8 months ago [\#8997](#8997) by [deborahharrison](/forum/user/1040-deborahharrison "View deborahharrison's Profile")  Replied by *[deborahharrison](/forum/user/1040-deborahharrison "View deborahharrison's Profile")* on topic *[Re: Include a small bit of text and buy now button](/forum/4-how-to/7438-include-a-small-bit-of-text-and-buy-now-button?start=20#8997 "Hi  At the moment, I have my products listed under category as just the image and the title. Is it possible I could include a small bit of text  Basically we sell books and we would like to list in the following layout:  Image - then Title. Author Name Save 20% off RRP save £... Add to cart button  Can that be done?  Please advise how I can go about that.")*

Ok no problem. How can I add an add to cart button on this listing? [ 212.113.133.235/~englishr/index.php?opti...=childrens&amp;Itemid=53](http://212.113.133.235/~englishr/index.php?option=com_hikashop&ctrl=category&task=listing&cid=10&name=childrens&Itemid=53)

The buttons are on the general product pages. Can I add the same button to the listings?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc0MzgtaW5jbHVkZS1hLXNtYWxsLWJpdC1vZi10ZXh0LWFuZC1idXktbm93LWJ1dHRvbj9zdGFydD0yMCZ0bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86283
- Thank you received: 14263
-
-

15 years 8 months ago [\#9000](#9000) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Include a small bit of text and buy now button](/forum/4-how-to/7438-include-a-small-bit-of-text-and-buy-now-button?start=20#9000 "Hi  At the moment, I have my products listed under category as just the image and the title. Is it possible I could include a small bit of text  Basically we sell books and we would like to list in the following layout:  Image - then Title. Author Name Save 20% off RRP save £... Add to cart button  Can that be done?  Please advise how I can go about that.")*

Goin the menu Display-&gt;Content modules and edit the module with the id 53. There you will have an option to activate the add to cart button.

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

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

Less More

- Posts: 110
- Thank you received: 0
-
-

15 years 7 months ago [\#9011](#9011) by [deborahharrison](/forum/user/1040-deborahharrison "View deborahharrison's Profile")  Replied by *[deborahharrison](/forum/user/1040-deborahharrison "View deborahharrison's Profile")* on topic *[Re: Include a small bit of text and buy now button](/forum/4-how-to/7438-include-a-small-bit-of-text-and-buy-now-button?start=20#9011 "Hi  At the moment, I have my products listed under category as just the image and the title. Is it possible I could include a small bit of text  Basically we sell books and we would like to list in the following layout:  Image - then Title. Author Name Save 20% off RRP save £... Add to cart button  Can that be done?  Please advise how I can go about that.")*

Ok That works. So to clarify - if we wanted a separate author field in the product listing and a 20% calculation (using [ www.bookdepository.co.uk/category/2455/Childrens-Books](http://www.bookdepository.co.uk/category/2455/Childrens-Books) as an example), it is achievable but we would have to pay for the Business version of HikaShop.

I just need to know this so I can relay it to my client. :kiss:

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc0MzgtaW5jbHVkZS1hLXNtYWxsLWJpdC1vZi10ZXh0LWFuZC1idXktbm93LWJ1dHRvbj9zdGFydD0yMCZ0bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86283
- Thank you received: 14263
-
-

15 years 7 months ago [\#9036](#9036) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Include a small bit of text and buy now button](/forum/4-how-to/7438-include-a-small-bit-of-text-and-buy-now-button?start=20#9036 "Hi  At the moment, I have my products listed under category as just the image and the title. Is it possible I could include a small bit of text  Basically we sell books and we would like to list in the following layout:  Image - then Title. Author Name Save 20% off RRP save £... Add to cart button  Can that be done?  Please advise how I can go about that.")*

Yes

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

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

[](#top)
