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

#   &lt;table&gt; to &lt;div&gt; change

##

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

Less More

- Posts: 3
- Thank you received: 0
-
-

13 years 7 months ago [\#93843](#93843) by [marcel](/forum/user/14214-marcel "View marcel's Profile")  *[&lt;table&gt; to &lt;div&gt; change](/forum/4-how-to/79159-table-to-div-change#93843 "I would like to change  to  layout in quantity field. Please, look at the attached file. I can't find file where is located table layout. Help, please ;)")* was created by *[marcel](/forum/user/14214-marcel "View marcel's Profile")*

I would like to change &lt;table&gt; to &lt;div&gt; layout in quantity field. Please, look at the attached file.
I can't find file where is located table layout. Help, please ![;)](/media/kunena/emoticons/24.png ";)")

- [ ![tabletodiv.jpg](/forum/attachment/9035) ](/forum/attachment/9035 "tabletodiv.jpg") [ ](/forum/attachment/9035?download=1 "tabletodiv.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc5MTU5LXRhYmxlLXRvLWRpdi1jaGFuZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

13 years 7 months ago [\#93853](#93853) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[&lt;table&gt; to &lt;div&gt; change](/forum/4-how-to/79159-table-to-div-change#93853 "I would like to change  to  layout in quantity field. Please, look at the attached file. I can't find file where is located table layout. Help, please ;)")*

Hi,

It requires to create a template override for the button "add to cart" like explain in this documentation:
[ www.hikashop.com/en/support/documentatio...tation.html#override](http://www.hikashop.com/en/support/documentation/62-hikashop-developer-documentation.html#override)

> **For the buttons:**
> You need to create the file templates/YOUR\_TEMPLATE/html/hikashop\_button.php. We invite you to look at the file administrator/components/com\_hikashop/helpers/cart.php for the default code of the function you will define in it. In that file, you will be able to define the function:
> hikashop\_button\_render($map,$name,$ajax,$options,$url) =&gt; The $map variable contains the name of the button, the $name variable contains the value of the button (what the user see). The $ajax variable can contains additional attributes for the HTML element of your button as well as the $options attribute. The $url variable can contain a URL where to redirect when the button is used as a link. You need to return the whole HTML of your buttons at the end of your function.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc5MTU5LXRhYmxlLXRvLWRpdi1jaGFuZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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.100 seconds

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