Modify Mini Cart to Remove Total

  • Posts: 61
  • Thank you received: 2
11 years 9 months ago #58570

Hi:

I am trying to customize the hikashop cart module found here: www.matterhornmodels.com/genuine-bronze-casting/product/cid-2 .

I am using the mini-cart and the client would like for us to hide the total price and only show the number of items. However I cannot find the view to edit that display. I have searched all over the forum for this information and to no avail.

I also have the "show price" turned OFF in my cart module options but it still shows.

Please help me. Is this even possible??

Thanks

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

  • Posts: 127
  • Thank you received: 12
11 years 9 months ago #58584

Edit the view shown in this post...

www.hikashop.com/en/forum/2-general-talk...i-cart-question.html

Make sure you do it for the front end and the right template you are using.

Tony
www.thoth-management.com

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

  • Posts: 61
  • Thank you received: 2
11 years 9 months ago #58611

Hi Tony:

I looked at that file and couldn't find what exactly to remove. I would like a little more help and instruction other than what file to view. I need to know what code I'm looking for.

Thanks

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

  • Posts: 127
  • Thank you received: 12
11 years 9 months ago #58658

OK - so starting at the beginning...

Go to your backend, and select Hikashop component.

Select menu Display/Views

Change the filters to Front End and your frontend template

Find the cart view of the type product.

I've edited my view so not 100% sure but around line 57, you will find the hyperlink you are talking about.

<a class="hikashop_small_cart_checkout_link" href=" www.xxxxxx.com/index.php/view-my-cart ">
<span class="hikashop_small_cart_total_title"><?php echo $text; ?></span>
</a>

Previous to this the $text var is set according to your cart module options.

So if you want to put a pic in there simply add the image with a hyperlink, and remove the hyperlink from the $text var.

I don't know if you know how to do that, so here's a link:

www.htmlgoodies.com/primers/html/article...asic-HTML-Images.htm

But lots more on google search "HTML image link".

Tony
www.thoth-management.com

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

  • Posts: 61
  • Thank you received: 2
11 years 9 months ago #58663

Thanks for the more detailed instructions. However... I don't want to add an image link... I just want to remove the price total. That's all

Last edit: 11 years 9 months ago by bludove30.

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

  • Posts: 61
  • Thank you received: 2
11 years 9 months ago #58664

Ok. I did what you said and I deleted the line

<span class="hikashop_small_cart_total_title"><?php echo $text; ?></span>

Except that it deleted all of the text.

I would like it to show:

Cart image then the # of items without a dollar total.

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

  • Posts: 61
  • Thank you received: 2
11 years 9 months ago #58665

OK. So upon further determination and digging, I figured it out.

Here's what I did for those who may find this thread and need the same thing....

I went to the Configuration > Language > Edit

Searched, Copied and pasted: X_ITEMS_FOR_X="%s items for %s" INTO the OVERRIDE window

Edited it to read: X_ITEMS="%s items"

Saved
THEN

I opened the Display > Cart (for the product view for my template)

Found the "X_ITEMS_FOR_X" and changed it to read "X_ITEMS"

And it worked!! Hopefully this will help someone else with the same issue. B)

Thank you Tony for the initial clues... they helped!

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

  • Posts: 127
  • Thank you received: 12
11 years 9 months ago #58772

Oh sorry about that - I don't know why I read your message as saying that you wanted a pic in there - you were very clear.

I must have been jumping around threads too much :-)

Glad you got sorted.

Tony

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

Time to create page: 0.080 seconds
Powered by Kunena Forum