Remove price from product name when checking out

  • Posts: 12
  • Thank you received: 0
12 years 2 weeks ago #73451

Hi all.

I wonder if it's possible to remove the item price from product name when checking out?

/Peter

Attachments:

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

  • Posts: 82818
  • Thank you received: 13361
  • MODERATOR
12 years 2 weeks ago #73627

Hi,

You should be able to do that by adding such CSS on your website:
.hikashop_cart_product_name .hikashop_product_price_full{ display:none; }

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

  • Posts: 12
  • Thank you received: 0
12 years 2 weeks ago #73643

Hi Nicolas.

I pasted the code in frontend_custom.css, but it didn't work.
Any other ideas what to try?

//Peter

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

  • Posts: 82818
  • Thank you received: 13361
  • MODERATOR
12 years 2 weeks ago #73661

That modification works.

Please refresh your browser's cache.

If you don't see it after that, please provide a link to your shop.

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

  • Posts: 12
  • Thank you received: 0
12 years 2 weeks ago #73735

Hi again Nicolas.

Sorry to bother you, i pasted the code in fronted_custom.css. Then i cleaned out my cache in firefox an restarted firefox, that didn't work.
Then i tried to clean out the websites cache, that didn't help either.

Would be nice if you could take a quick look at my site, probably it's a small thing iv'e missed :)

www.matpasen.com

//Peter

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

  • Posts: 82818
  • Thank you received: 13361
  • MODERATOR
12 years 1 week ago #74018

Ok, edit the file "cart" of the view "checkout" via the menu Display->Views and change the line:
if($display_item_price){

to:
if(false){

and that will work.

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

  • Posts: 12
  • Thank you received: 0
12 years 1 week ago #74043

Hi Nicolas.

Is this the right file? /components/com_hikashop/views/checkout/tmpl/cart.php

The current code is:
if($display_item_price){
$this->row=&$row;
$this->unit=true;
echo ' '.strip_tags($this->loadTemplate());
}

I'm not sure what to do.
Even if i delete the hole code noting happens.

//Peter

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

  • Posts: 82818
  • Thank you received: 13361
  • MODERATOR
12 years 1 week ago #74360

If you edit the file directly and that you had previously edited it via the menu Display->Views, you won't see the modification.
You should do the modification via the menu Display->Views.

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

Time to create page: 0.071 seconds
Powered by Kunena Forum