Replace Add to Cart with View Item

  • Posts: 75
  • Thank you received: 7
  • Hikashop Business
3 years 2 months ago #330020

-- 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.

  • Posts: 4510
  • Thank you received: 611
  • MODERATOR
3 years 1 month ago #330033

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: 3 years 1 month ago by Philip.
The following user(s) said Thank You: nicolas

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

  • Posts: 75
  • Thank you received: 7
  • Hikashop Business
3 years 1 month ago #330048

Worked like a charm, Philip. Thanks!

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

Time to create page: 0.060 seconds
Powered by Kunena Forum