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

TOPIC: count in module

count in module 3 years 11 months ago #13240

I have problems with updating the number of items in the cart module. the problem I see in your demo site too. when I put the first products to Cart, number disappear. When I add a second commodity, the last correct number. When I edit items in the cart detail, the number will not change. That's probably due to Ajax plugin VM One Page Checkout?

Look here: 111834.w34.wedos.ws
The topic has been locked.

count in module 3 years 11 months ago #13241

ok. i try it on second websites. i have the same problem. if in cart first (one) product, cart show number 0. If i add to cart more product, count show all right. So . . . . if i go to cart, update all product for only one, cart again show nubre zero :(

heeeelp :)


Attachment 1.png not found



Attachment 2.png not found

Last Edit: 3 years 11 months ago by Martin Richta.
The topic has been locked.

count in module 3 years 11 months ago #13249

Hi,

Looks like there is something wrong with the number 1. I will be glad you help you to resolve this problem. Actually; this looks like a simple problem to resolve, though.

Are you sure you didn't touch any of the JavaScript lines within the Dropdown Shopping Cart Module's files?

Regards
The topic has been locked.

count in module 3 years 11 months ago #13266

i can give u admin login to webpage? this probelm i ahve on another page :(
The topic has been locked.

count in module 3 years 10 months ago #13275

Hi,

Try these patches, they will probably work.

1- Open this PHP file:
/modules/mod_flexible_vm3_cart/tmpl/default.php

2- find these lines:
<?php 
	if (preg_match('/[0-9]/', $data->totalProductTxt)) { 
		echo preg_replace("/[^0-9]/","",$data->totalProduct);
	} else { 
		echo "0";
	}
?>

3- Replace those lines with the line below:
<?php 
  echo $data->totalProduct;
?>


4- then open this PHP file:
/modules/mod_flexible_vm3_cart/mod_flexible_vm3_cart.php

5- find this line:
mod.find(".flexibleNumber").html(number);

6- and replace it with this:
mod.find(".flexibleNumber").html(datas.totalProduct);


7- that's all

These 2 coding patches might fix the problem you are having with the quantity numbers.

Regards.
Support
The topic has been locked.

count in module 3 years 10 months ago #13283

thx. it is work :)
The topic has been locked.

count in module 3 years 10 months ago #13287

I am glad it works. Hope this patch will be useful to others.

Case solved, topic is closed.

Regards.
The topic has been locked.
Time to create page: 0.144 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