Display Icon with counter instead of Text in shopping cart module

  • Maximilian Lück
  • Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 11 months ago #142780 by Maximilian Lück
Hey there,

I tried to change the layout of the shopping cart module.
Therefore I put the mini.php file in mytemplate/html/com_eshop/cart but changes doesn't take effect.

Instead of the text which is displayed I only want to show an icon and a little count how many products are in the cart.
Something like this:

[img


Is there any way how I can achieve this?

Thank you very much in advance and have a great day!

Best regards,
hanSojay
Attachments:

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

More
3 years 9 months ago #144270 by Nemis
I am trying to achieve the same. Any solutions?

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

  • Giang Dinh Truong
  • Offline
  • Administrator
  • Administrator
More
3 years 9 months ago #144337 by Giang Dinh Truong
Hello Maximilian Lück and Nemis,

To change the layout of cart module, you need to overwrite to the layout of module from the template. The file that you need to overwrite is:

modules/mod_eshop_cart/tmpl/default.php

Also, you need to overwrite the mini cart layout of EShop component:

components/com_eshop/themes/default/views/cart/mini.php

You can read about how to overwrite the layouts of EShop component and modules here: eshopdocs.joomservices.com/developer-gui...uts#customize-layout

I hope this is useful.

Sincerely, Giang

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

Moderators: Giang Dinh Truong