Disable "Add to Cart Button"

  • Posts: 6
  • Thank you received: 0
  • Hikashop Business
8 years 6 months ago #215668

-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.4.3

Hello,

I am running Hikashop Business in Catalogue mode and have configured the system so that only wishlists are used for registered users.
There still remains an "Add to Cart" button in the wishlists that I don't want to be displayed.

Can you please indicate how to remove it? via CSS? via PHP file?

See attachment


and link to site for your use.

Attachments:

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

  • Posts: 13201
  • Thank you received: 2322
8 years 6 months ago #215679

Hi,

You can edit the view "cart / showcart" and remove the line:

				echo $this->cart->displayButton($addText, 'wishlist', $this->params,hikashop_completeLink('cart&task=convert&cart_type=cart&cart_id='.$cart_id.$url_itemid), 'document.getElementById(\'task\').value = \'addtocart\'; document.forms[\'hikashop_show_cart_form\'].submit(); return false;');
in that view.

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

  • Posts: 6
  • Thank you received: 0
  • Hikashop Business
8 years 6 months ago #215955

Hi,

I have removed the line as instructed, but there is no change. The button still shows up.

Any further modifications?

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

  • Posts: 26000
  • Thank you received: 4004
  • MODERATOR
8 years 6 months ago #215956

Hi,

Are you sure that you are editing the view for the right template ?

www.hikashop.com/support/support/documen...ize-the-display.html

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 6
  • Thank you received: 0
  • Hikashop Business
8 years 6 months ago #216072

Thank you for your guidance. I was editing the right showcart.php but the wrong template.
Many thanks. Issue solved!

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

Time to create page: 0.069 seconds
Powered by Kunena Forum