Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Virtuemart Dropdown Shopping Cart(SKU# FLEX-00001)

TOPIC: COM_VIRTUEMART_ORDER_PRINT_SUBTOTAL

COM_VIRTUEMART_ORDER_PRINT_SUB​TOTAL 10 years 7 months ago #6132

Hi,

I just notest that I get COM_VIRTUEMART_ORDER_PRINT_SUBTOTAL when I have a product in the dropdown shoppingcart
Any Idea why this is happening
I thought it could be a translation glitch but
1. I have created an override
2. when I am on the orders browse page the text is shown ok

Any ideas ?

Kind Regards
The topic has been locked.

COM_VIRTUEMART_ORDER_PRINT_SUB​TOTAL 10 years 7 months ago #6154

Hi,

This problem occurs if you update your virtuemart form VM2.0.20 -> VM2.0.22

Because COM_VIRTUEMART_ORDER_PRINT_SUBTOTAL language prefix is not being used anymore in the VM2.0.22, it has replaced with: COM_VIRTUEMART_CART_SUBTOTAL

To fix it, open this PHP file:
/modules/mod_flexible_cart/tmpl/default.php

Look for this line:
<div class="sub_total"> <?php echo JText::_('COM_VIRTUEMART_ORDER_PRINT_SUBTOTAL'); ?>: <?php echo $data->billTotal; ?> </div>

replace it with this:
<div class="sub_total"> <?php echo JText::_('COM_VIRTUEMART_CART_SUBTOTAL'); ?>: <?php echo $data->billTotal; ?> </div>

The problem will be gone.

Regards.
Support & Development
The topic has been locked.

COM_VIRTUEMART_ORDER_PRINT_SUB​TOTAL 10 years 7 months ago #6395

Hi Support
I don't appear to have a folder "/modules/mod_flexible_cart/" but I do have a folder "/modules/mod_virtuemart_cart/" and also "/modules/mod_vm2cart/" do I change the file in one of these instead? (see image)

Thanks
Attachments:
The topic has been locked.

COM_VIRTUEMART_ORDER_PRINT_SUB​TOTAL 10 years 7 months ago #6427

Yes, open that file instead.

After opening the PHP file, look for this:
COM_VIRTUEMART_ORDER_PRINT_SUBTOTAL

and replace it with this:
COM_VIRTUEMART_CART_SUBTOTAL

The problem will be gone.

Regards.
Last Edit: 10 years 7 months ago by Support.
The topic has been locked.

COM_VIRTUEMART_ORDER_PRINT_SUB​TOTAL 10 years 7 months ago #6454

Hi Support
The only file I could find with these details was "/modules/mod_vm2cart/tmpl/default.php". The full code was changed as instructed to:
<div class="sub_total"> <?php echo JText::_('COM_VIRTUEMART_CART_SUBTOTAL'); ?>: <?php echo $data->billTotal; ?> </div>

but it hasn't solved the problem. I have cleared cache, tried a different browser and tried a different PC just to be sure. (see attached)

Am I doing something wrong?

Thanks
Attachments:
The topic has been locked.

COM_VIRTUEMART_ORDER_PRINT_SUB​TOTAL 10 years 7 months ago #6456

Just noticed another couple of variations of this, (see attached)
Attachments:
The topic has been locked.

COM_VIRTUEMART_ORDER_PRINT_SUB​TOTAL 10 years 7 months ago #6465

Hi,

Can you please check if this PHP file below is exist in your server?

/templates/flexible_darkmart/html/mod_vm2cart/default.php

If this file is exist, then it means you are using template overriding for the shopping cart module. Open this PHP file instead, and do the same change in this file as well. That time it will work.

Regards.
Support & Development
The topic has been locked.

COM_VIRTUEMART_ORDER_PRINT_SUB​TOTAL 10 years 7 months ago #6472

Hi
Yes this file exists and have changed the code. It has fixed the drop down cart view but it hasn't fixed the checkout page as shown in above image "cart2.jpg", how do I fix it?

Why would I be using template overriding, I installed the package provided? Does this cause a problem and do I need to update?

Thank you
The topic has been locked.

COM_VIRTUEMART_ORDER_PRINT_SUB​TOTAL 10 years 6 months ago #6490

Ohh sorry. I didn't noticed that 2nd screenshot.
To fix them, this time open this PHP file:

/templates/YOUR_TEMPLATE/html/com_virtuemart/cart/default_pricelist.php

and look for these language TEXT (i am not going to copy the entire line, but you know how to make change..)

1- Find:
COM_VIRTUEMART_USER_FORM_BILLTO_INFORMATION
replace with:
COM_VIRTUEMART_USER_FORM_BILLTO_LBL

2- Find:
COM_VIRTUEMART_ORDER_PRINT_SHIPPING_LBL
Replace with:
COM_VIRTUEMART_USER_FORM_SHIPTO_LBL

3- Find:
COM_VIRTUEMART_ORDER_PRINT_SKU
Replace with:
COM_VIRTUEMART_CART_SKU


Then everything will be good to go.

Regards.
Support & Development
Last Edit: 10 years 6 months ago by Support.
The topic has been locked.

COM_VIRTUEMART_ORDER_PRINT_SUB​TOTAL 10 years 6 months ago #6567

Hi Support
This has worked great thanks, just one more still needs slight adjustment I think, if you can help please. See image attached.

Thanks again
Attachments:
Last Edit: 10 years 6 months ago by CJW.
The topic has been locked.

COM_VIRTUEMART_ORDER_PRINT_SUB​TOTAL 10 years 6 months ago #6578

Hi,

The same idea applies here too, just the PHP file is different.

open this PHP file:

/templates/YOUR_TEMPLATE/html/com_virtuemart/cart/default_pricelist.php

find this label:
COM_VIRTUEMART_ORDER_INFO

and replace it with:
COM_VIRTUEMART_CART_OVERVIEW

Regards.
The topic has been locked.

COM_VIRTUEMART_ORDER_PRINT_SUB​TOTAL 10 years 6 months ago #6605

Hi Support
Great work, all sorted now.

Thanks a lot
CJW
The topic has been locked.

COM_VIRTUEMART_ORDER_PRINT_SUB​TOTAL 10 years 6 months ago #6622

Sure, I am glad everything works out just fine.

Case solved. Topic is closed.

Regards
Support & Development
The topic has been locked.
Time to create page: 0.129 seconds

MaterialMart

for Virtuemart 3

Google's Material Design has finally arrived to Virtuemart

Virtumart Template - MaterialMart Virtumart Template - CleanMart Virtumart Template - CleanMart Virtumart Template - CleanMart

Fully responsive!

Buy Now   |   Live Demo