VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: fanny0 on August 21, 2018, 00:12:43 AM

Title: I do not see the total amount of the purchase in the cart
Post by: fanny0 on August 21, 2018, 00:12:43 AM
Hi,

I do not see the total amount of the purchase in the cart

http://www.rosasonline.cl/cart.html

rosasonline.cl

thanks!

(https://www.joomlart.com/forums/assets/files/2018-08-19/1534711672-76374-captura5.png)
Title: Re: I do not see the total amount of the purchase in the cart
Post by: jenkinhill on August 21, 2018, 10:44:04 AM
Console sjhows JavaScript error:
TypeError: document.getElementById(...) is null
Title: Re: I do not see the total amount of the purchase in the cart
Post by: GJC Web Design on August 21, 2018, 11:08:36 AM
its your template

error on

   var counter = jQuery('<i id="gkCartCounter"></i>');
                       counter.appendTo(btn);
                       var gkCartDataRequest = function() {
                           jQuery.ajax({
                               url: $GK_URL + 'index.php?tmpl=json&lang=' + jQuery('html').attr('lang').split('-')[0],
                               cache: false,
                               dataType: 'text',
                               success: function(data) {
                                   document.getElementById('gkCartCounter').innerHTML = '(' + data + ')';
                               }
                           });
                       }

###############

Uncaught TypeError: Cannot set property 'innerHTML' of null

Talk to gavick
Title: Re: I do not see the total amount of the purchase in the cart
Post by: fanny0 on August 21, 2018, 16:19:11 PM
hi,

Gavick tell me that it is a virtuemart error, why or if not solved by changing the template by default, and that does not happen

please tell me what I have to do to fix it

thanks!
Title: Re: I do not see the total amount of the purchase in the cart
Post by: Jörgen on August 21, 2018, 16:52:12 PM
Then You have to turn on prices under configuration/prices

I can not tell You what to set, You have to try, it depends on how Your template works.

If You can not figure it out, tick boxes and see what happens.

regards

Jörgen @ Kreativ Fotografi
Title: Re: I do not see the total amount of the purchase in the cart
Post by: GJC Web Design on August 21, 2018, 17:05:09 PM
????
Title: Re: I do not see the total amount of the purchase in the cart
Post by: fanny0 on August 22, 2018, 03:30:28 AM
Hi, my problem, I had to put the configuration in this other way and the price disappeared in the home, view of category

mine
(https://www.joomlart.com/forums/assets/files/2018-08-22/1534901231-362385-captura7.png)

My site desapear price $44.900
(https://www.joomlart.com/forums/assets/files/2018-08-22/1534901250-34190-captura6.png)

thanks!
Title: Re: I do not see the total amount of the purchase in the cart
Post by: Jörgen on August 22, 2018, 05:51:22 AM
Then it boils down to a theme issue. One of the settings you changed to unticked must be ticked to make this work. You had the category view working. Correct setting makes it work again. Compare with your old settings and change the right one back.
Jörgen @ Kreativ Fotografi
Title: Re: I do not see the total amount of the purchase in the cart
Post by: fanny0 on August 22, 2018, 18:39:50 PM
hi,

it's not like that, I used to have only marked "total final salesprice"

and it appeared to me, now it does not

thanks!
Title: Re: I do not see the total amount of the purchase in the cart
Post by: Jörgen on August 23, 2018, 00:08:31 AM
This IS a template issue, try this link
http://www.rosasonline.cl/?template=protostar (http://www.rosasonline.cl/?template=protostar)

regards

Jörgen @ Kreativ Fotografi