Change destination "Add to cart"

  • Posts: 28
  • Thank you received: 0
10 years 2 weeks ago #212507

-- HikaShop version -- : 2.5.0
-- Joomla version -- : Joomla! 3.4.3 Stable
-- PHP version -- : 5.4.41-0+deb7u1
-- Browser(s) name and version -- : -

Hello,

I want to change the destination of the "Add to cart" button.
I know how to unable the button but I won't to keep the button (with a different title, no problem) but A DIFFERENT DESTINATION.
For the moment people will not be able to buy something, just inform about the products, and by clicking oh the picture of the product I want that they will be forwarded to the product information and not to the check out..

Thanks

Last edit: 10 years 2 weeks ago by nicolas. Reason: no admin access in forum posts...for your own good.

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

  • Posts: 84305
  • Thank you received: 13700
  • MODERATOR
10 years 2 weeks ago #212517

Hi,

Then, you should remove the add to cart button.
Instead, edit the file "listing_img_title" of the view "product" via the menu Display>Views and add such code near the end where it suits you:

<input type="button" onlick="window.location='<?php echo $link; ?>';return false;" value="my button text" />

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

  • Posts: 28
  • Thank you received: 0
10 years 2 weeks ago #212626

Hello,
I added the code. OK
But now I have a new button, but I want to change the destination of the "button" which appears when you do a mous-over the product.
(see attachment)

Thanks

Attachments:

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

  • Posts: 84305
  • Thank you received: 13700
  • MODERATOR
10 years 2 weeks ago #212633

Hi,

There is no such button by default in HikaShop. please contact your template provider for help with this one as this is something coming from their customization of the listing page and thus we don't know how to change it.

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

Time to create page: 0.062 seconds
Powered by Kunena Forum