• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

Is it possible to hide the price in shoping cart module?

New Here ,
Sep 25, 2012 Sep 25, 2012

Copy link to clipboard

Copied

My client is using the shop module only for quotes porpouses and so without any prices, but shoping cart show 1 item(s),Total 0,00€, and an image that i use with css

I would like to remove the price [Total 0,00€]o directly the full text and only show the icon.

Is it possible?

Thanks in advance

TOPICS
eCommerce

Views

1.1K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Sep 25, 2012 Sep 25, 2012

Copy link to clipboard

Copied

Hello ANA_ITC,

To remove the text and leave the "View Cart" btn is pretty easy:

http://jsfiddle.net/chaddidthis/hyN9G/

But to remove just the "total 0.00" is a touch harder, but could be done with a split:

http://jsfiddle.net/chaddidthis/hyN9G/2/

Hope this helps,

Chad Smith | http://bcgurus.com/Business-Catalyst-Templates for only $7

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 26, 2012 Sep 26, 2012

Copy link to clipboard

Copied

Thanks Chad,

Unfortunately I´m not an expert and not sure where can i find the argument to change.

I´ll try to learn more about scripts

Best regards

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
May 29, 2013 May 29, 2013

Copy link to clipboard

Copied

Chad,

I am trying to change this for Euro and it doesn't work. Each time I save the scrip it converst the €0.00 to €0.00

What to do about that?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
May 29, 2013 May 29, 2013

Copy link to clipboard

Copied

Can be done easy with CSS, you don't even need to split it as chad suggested, just use Jquery and the CCS selector to get to the data you need.

Example:

http://jsfiddle.net/BEwQF/1/

I forked chad's example but directly accessed the data in the table cell.

now with correct URL 🙂

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
May 30, 2013 May 30, 2013

Copy link to clipboard

Copied

Well done TheBCMan!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
May 30, 2013 May 30, 2013

Copy link to clipboard

Copied

This still doesn't resolve my issue due to HTML conversion of to €

Your script assumes the value is ex'actly Total 0.00.

Unless I am doing something wrong! I placed the code below at the bottom of my template used for eCommerce

<script type="text/javascript">

var el='.cartSummaryTable tr td.cartSummaryItem:eq(0)'; // the element we need

var searchfor='[Total &euro;0.00]'; // what we plan to replace

var replacewith=''; // replace with

var txt = $(el).html();  // get the current text

$(el).html(txt.replace(searchfor,replacewith));  // and replace it

</script>

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
May 30, 2013 May 30, 2013

Copy link to clipboard

Copied

LATEST

That should work, did you include the Jquery lib on the page?

I see the problem:

http://jsfiddle.net/tfkLU/1/

Javascript works on rendered HTML therefore you need to use the euro symbol itself in the JS

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines