Skip to main content

Replace Add to Cart with View Item

More
5 years 7 months ago #330020 by wildweststudios
-- HikaShop version -- : 4.4.0
-- Joomla version -- : 3.9.24
-- PHP version -- : 7.3.26
-- Browser(s) name and version -- : Firefox 86.0

Hi all,

I updated from 4.2.2 to 4.4.0, and I see all my "View Item" buttons, which took me to the product page have reverted back to "Add to Cart" buttons, which of course do not show the product page.

This might be the result of some override or something I did earlier, as I've been away awhile and need to re-familiarize myself with this site.

Regardless, what's the best way to remove the 'Add to Cart' and quantity buttons and replace them with 'View Item' buttons which take the customer to the product page?

Thanks!

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

More
5 years 7 months ago - 5 years 7 months ago #330033 by Philip
Hello,

First I invite you to have a look on this documentation to learn how to use the override system.

From what you describe previously, there are good chance that you make some custom code directly in view file.
That could explain why some custom code can be erased while an update, on the other hand the override view will always be kept.

Now, in order to achieved what you need follow me step by step :
1. Go to your Item Menu settings (Menus => Main Menu)
2. Click to edit the Item Menu
3. In Product options tab, reproduce this configuration red bordered elements.


4. Then process an override, for your button and his link you have to use the code that add the dynamic url within the product image (to go to product page)

Hope this will help you to achieved what you need.
Regards
Last edit: 5 years 7 months ago by Philip.
The following user(s) said Thank You: nicolas

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

More
5 years 7 months ago #330048 by wildweststudios
Worked like a charm, Philip. Thanks!

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

Time to create page: 0.183 seconds
Powered by Kunena Forum