Skip to main content

<table> to <div> change

More
13 years 6 months ago #93843 by marcel
I would like to change <table> to <div> layout in quantity field. Please, look at the attached file.
I can't find file where is located table layout. Help, please ;)

Please Log in or Create an account to join the conversation.

More
13 years 6 months ago #93853 by Jerome
Replied by Jerome on topic <table> to <div> change
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

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) => 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 & HikaSerial developer / HikaShop core dev team.

Please Log in or Create an account to join the conversation.

Time to create page: 0.172 seconds
Powered by Kunena Forum