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
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
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
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?
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:
I forked chad's example but directly accessed the data in the table cell.
now with correct URL 🙂
Copy link to clipboard
Copied
Well done TheBCMan!
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 €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>
Copy link to clipboard
Copied
That should work, did you include the Jquery lib on the page?
I see the problem:
Javascript works on rendered HTML therefore you need to use the euro symbol itself in the JS