customize the cart page
- pulsarinformatique
-
Topic Author
- Offline
Less
More
6 years 2 months ago #323772
by pulsarinformatique
customize the cart page was created by pulsarinformatique
-- HikaShop version -- : 4.3.0 buisiness
-- Joomla version -- : 3.9.19
-- PHP version -- : 7.3
-- Browser(s) name and version -- : Chrome
Hi
We need to customize the cart page to
* add a "continue shoping " button
* remove 3 existing buttons
please look at the attached screenshot:
We didn't find the answer on www.hikashop.com/support/documentation/1...ize-the-display.html
--> which file should be edited without blocking further hikashop updates ?
We already dounf a somehow similar question but without answer on:
www.hikashop.com/forum/checkout/899170-s...shopping-button.html
Thanks
-- Joomla version -- : 3.9.19
-- PHP version -- : 7.3
-- Browser(s) name and version -- : Chrome
Hi
We need to customize the cart page to
* add a "continue shoping " button
* remove 3 existing buttons
please look at the attached screenshot:
We didn't find the answer on www.hikashop.com/support/documentation/1...ize-the-display.html
--> which file should be edited without blocking further hikashop updates ?
We already dounf a somehow similar question but without answer on:
www.hikashop.com/forum/checkout/899170-s...shopping-button.html
Thanks
Please Log in or Create an account to join the conversation.
6 years 2 months ago #323775
by nicolas
Replied by nicolas on topic customize the cart page
Hi,
The documentation link you provide in your message indicates that you should activate the "Display view files" setting of the HikaShop configuration.
If you do, you'll see that this page is displayed by the cart / show.php view file. So that's the one you want to edit via the menu Display>Views.
There, at the beginning, you can add/remove things to the $this->toolbar array to add/remove buttons to the toolbar like you want to do.
The documentation link you provide in your message indicates that you should activate the "Display view files" setting of the HikaShop configuration.
If you do, you'll see that this page is displayed by the cart / show.php view file. So that's the one you want to edit via the menu Display>Views.
There, at the beginning, you can add/remove things to the $this->toolbar array to add/remove buttons to the toolbar like you want to do.
The following user(s) said Thank You: pulsarinformatique
Please Log in or Create an account to join the conversation.
- pulsarinformatique
-
Topic Author
- Offline
6 years 2 months ago - 6 years 2 months ago #323827
by pulsarinformatique
Replied by pulsarinformatique on topic customize the cart page
Hello Nicolas,
Thank you very much for your answer,
I had read this page of the documentation however, but I did not understand how to display the filenames of each view .... it's super convenient
So, I did create an override of the "toolbar\default.php" file in my template, but on the other hand I don't see how to modify (remove / add) buttons ??
In this file the different links are not displayed in Html, but are called by a loop ....
foreach($this->data as $key => $tool) {
Does this file not fetch the values defined in the parameters of Hikashop?
I mean: is the display or not of these buttons not defined in the settings of hikashop? I looked several times, and I can not find.
to add the button "Continue shopping", I added it in Html, following the html structure of the other buttons:
But to target the 3 buttons I want to remove.......
Please help me make this work,
Agathe.
Thank you very much for your answer,
I had read this page of the documentation however, but I did not understand how to display the filenames of each view .... it's super convenient
The documentation link you provide in your message indicates that you should activate the "Display view files" setting of the HikaShop configuration.
So, I did create an override of the "toolbar\default.php" file in my template, but on the other hand I don't see how to modify (remove / add) buttons ??
In this file the different links are not displayed in Html, but are called by a loop ....
foreach($this->data as $key => $tool) {
Does this file not fetch the values defined in the parameters of Hikashop?
I mean: is the display or not of these buttons not defined in the settings of hikashop? I looked several times, and I can not find.
to add the button "Continue shopping", I added it in Html, following the html structure of the other buttons:
But to target the 3 buttons I want to remove.......
Please help me make this work,
Agathe.
Last edit: 6 years 2 months ago by pulsarinformatique.
Please Log in or Create an account to join the conversation.
6 years 2 months ago - 6 years 2 months ago #323831
by Philip
Replied by Philip on topic customize the cart page
Hello,
We didn't understand why you start from the "toolbar\default.php" view as Nicolas told you to create an override from the "cart/show.php" view, and to simply modify the content of the array in $this->toolbar.
In details, do like this will allow you to add/remove elements (meaning here, buttons) to fit your needs.
Hope this will help you to progress on your subject.
Regards
We didn't understand why you start from the "toolbar\default.php" view as Nicolas told you to create an override from the "cart/show.php" view, and to simply modify the content of the array in $this->toolbar.
In details, do like this will allow you to add/remove elements (meaning here, buttons) to fit your needs.
Hope this will help you to progress on your subject.
Regards
Last edit: 6 years 2 months ago by Philip.
Please Log in or Create an account to join the conversation.
Time to create page: 0.064 seconds