hi,
I am trying to add button image at the header. Use store_logo.php as a template and modify the files and codes.
Having 2 problems need to get help.
#1.
INSERT INTO `configuration` (`configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`,
`use_function`, `set_function`)
VALUES
('Rental button', 'RENTAL_BUTTON', 'button_rental.png', 'This is the filename of your Rental Button. This should be updated at admin > configuration > Rental Button', 6, 1000, NULL, NOW(), NULL, NULL)
;
run the SQL but there is no Rental button show up on the configuration area. How to change it to make it work?
#2
<label class="custom-file-label" for="inputRentalButton"><?= TEXT_BUTTON_RENTAL_IMAGE; ?></label>
<script>$(document).on('change', '#inputRentalButton', function (event) { $(this).next('.custom-file-label').html(event.target.files[0].name); });</script>
try to update new image but it doesn't work. How to change the code to make it work?
https://imgur.com/a/gm7U4p5
thanks!
Logo image -> button image
-
- VIP Member
- Posts: 2030
- Joined: Mon Oct 07, 2019 4:39 am
- : Buy Me A Beverage
- Has thanked: 28 times
- Been thanked: 187 times
Re: Logo image -> button image
Many ways of doing things but think it would be simpler to just create a header content module to show the image/link and just upload the image to server with FTP.