Remove prices from ajax cart

GK User
Tue Mar 17, 2015 5:20 pm
Hi,

we're using the quickstart version and we want to use the shop without prices (people can collect items and submit and we'll create a custom quote). But your custom scripts don't seem to consider the configuration from Virtuemart (show no prices).

So: how can I remove the prices from the cart - see screenshot:

feedback.png


getimo
User avatar
Junior Boarder

GK User
Sat Mar 21, 2015 7:13 am
In file /html/mod_virtuemart_cart/default.php please remove all blocks wrapped into:

Code: Select all
<?php if ($show_price) : ?>
...
<?php endif; ?>


There should be 3 blocks like that.

In the same file please also replace:

Code: Select all
echo $products_amount . ' ' . JText::_('TPL_GK_LANG_ITEMS') . ' - ' . $matches[0];


to:

Code: Select all
echo $products_amount . ' ' . JText::_('TPL_GK_LANG_ITEMS');
User avatar
Administrator

GK User
Mon Mar 23, 2015 12:11 pm
Thank you, but the total price is still there. And how can I change the title "MY CART"?
User avatar
Junior Boarder

GK User
Tue Mar 24, 2015 9:35 am
You're right - you should also remove the following fragment:

Code: Select all
<?php if ($data->totalProduct) : ?>
          <div class="gkTotal"> <?php echo str_replace(array(JText::_('COM_VIRTUEMART_CART_TOTAL').' <strong>', '</strong>', ' '), '', $data->billTotal); ?> </div>
          <?php endif; ?>
User avatar
Administrator

GK User
Tue Mar 24, 2015 10:02 am
Thank you. I still find other things which are not being translated:

- Your Shopping Cart is empty!
- MY CART
- ITEM(S)

Whre can I translate them?

Thanks in advance!
User avatar
Junior Boarder

GK User
Tue Mar 24, 2015 10:09 am
Ok, I've found it in: en-GB.tpl_gk_storefront.ini

TOPIC SOLVED

getimo
User avatar
Junior Boarder


cron