Post by BriteLightLEDs2014 » Wed Jun 01, 2016 6:40 pm

i am using this extension, http://www.opencart.com/index.php?route ... dimensions

the product is 0.003KG ( 3Grams)

How ever it will not display 0.003KG , it will only allow 0.03kg which is incorrect weight (30grams,

how can i solve this?

product link
http://britelightleds.co.uk/fresh/1.5w-high-power

Active Member

Posts

Joined
Wed Aug 20, 2014 3:59 am

Post by victorj » Thu Jun 02, 2016 3:23 am

do you add gram to weight classes under system localisation ?
on your admin productpage you can then select in weight box if you want it in grams or kilo

Koeltechnische deurrubbers eenvoudig online op maat bestellen.
Alle niet stekplichtige onderdelen zoals scharnieren, sloten, randverwarming en verlichting voor alle typen koelingen en vriezers.
https://koelcel-onderdelen.com


User avatar
Expert Member

Posts

Joined
Sat Jun 25, 2011 4:09 am
Location - Alkmaar Holland

Post by BriteLightLEDs2014 » Thu Jun 02, 2016 5:04 am

gram is there in the drop down menu but i wish to use KG , 1000G is 1KG, so i need 0.003 to show 3Gram but it will not display when i enter this

Active Member

Posts

Joined
Wed Aug 20, 2014 3:59 am

Post by victorj » Thu Jun 02, 2016 5:16 am

on product page it only displays 0,00 kg.
might be that in your theme product.tpl is limiting it to 2 decimals

Koeltechnische deurrubbers eenvoudig online op maat bestellen.
Alle niet stekplichtige onderdelen zoals scharnieren, sloten, randverwarming en verlichting voor alle typen koelingen en vriezers.
https://koelcel-onderdelen.com


User avatar
Expert Member

Posts

Joined
Sat Jun 25, 2011 4:09 am
Location - Alkmaar Holland

Post by victorj » Thu Jun 02, 2016 5:23 am

in your posted cml file digits are limited to 2 digits on line 89

Code: Select all

else $digits=2;
change to

Code: Select all

else $digits=3;

Koeltechnische deurrubbers eenvoudig online op maat bestellen.
Alle niet stekplichtige onderdelen zoals scharnieren, sloten, randverwarming en verlichting voor alle typen koelingen en vriezers.
https://koelcel-onderdelen.com


User avatar
Expert Member

Posts

Joined
Sat Jun 25, 2011 4:09 am
Location - Alkmaar Holland

Post by BriteLightLEDs2014 » Thu Jun 02, 2016 6:00 pm

victorj wrote:in your posted cml file digits are limited to 2 digits on line 89

Code: Select all

else $digits=2;
change to

Code: Select all

else $digits=3;
thank you which folder / file name is this

Active Member

Posts

Joined
Wed Aug 20, 2014 3:59 am

Post by BriteLightLEDs2014 » Thu Jun 02, 2016 6:20 pm

victorj wrote:in your posted cml file digits are limited to 2 digits on line 89

Code: Select all

else $digits=2;
change to

Code: Select all

else $digits=3;
line 89 of the vqmod is empty

Active Member

Posts

Joined
Wed Aug 20, 2014 3:59 am

Post by victorj » Fri Jun 03, 2016 3:15 am

You can find this piece off code in file
DimensionsOnScreen1.0.xml located in folder vqmod/xml

Code: Select all

		$this->data['text_dimensions_order'].=")";
		if ($product_info['weight']!=0) {
			if (($product_info['weight']-(int)$product_info['weight'])==0)
				$digits=0;
			else $digits=2;
			$this->data['text_weight_output'].=number_format($product_info['weight'], $digits, $this->language->get('decimal_point'), $this->language->get('thousand_point')) . $w_unit;

			//$this->data['text_weight_output'].=$this->weight->format($product_info['weight'], $product_info['weight_class_id']);
altered module attached

Attachments

altered for 3 digits in weight


Koeltechnische deurrubbers eenvoudig online op maat bestellen.
Alle niet stekplichtige onderdelen zoals scharnieren, sloten, randverwarming en verlichting voor alle typen koelingen en vriezers.
https://koelcel-onderdelen.com


User avatar
Expert Member

Posts

Joined
Sat Jun 25, 2011 4:09 am
Location - Alkmaar Holland

Post by BriteLightLEDs2014 » Mon Jun 06, 2016 2:38 am

uploaded but is not displaying,
0.00300000 is in the product box

Active Member

Posts

Joined
Wed Aug 20, 2014 3:59 am

Post by victorj » Mon Jun 06, 2016 2:43 am

did you unzip it first before uploading to folder vqmod/xml, and after uploading, did you clear vqmod cache ?

Koeltechnische deurrubbers eenvoudig online op maat bestellen.
Alle niet stekplichtige onderdelen zoals scharnieren, sloten, randverwarming en verlichting voor alle typen koelingen en vriezers.
https://koelcel-onderdelen.com


User avatar
Expert Member

Posts

Joined
Sat Jun 25, 2011 4:09 am
Location - Alkmaar Holland

Post by BriteLightLEDs2014 » Mon Jun 06, 2016 2:56 am

just did this cleared catch etc now the extension cannot be seen on product page

Active Member

Posts

Joined
Wed Aug 20, 2014 3:59 am

Post by BriteLightLEDs2014 » Mon Jun 06, 2016 2:58 am

just did this cleared catch etc now the extension cannot be seen on product page

Active Member

Posts

Joined
Wed Aug 20, 2014 3:59 am

Post by victorj » Mon Jun 06, 2016 3:23 am

just tested on a live test site and working great.

https://rc-droneenzo.com/Nitro-Race-Toe ... ctory-Hawk

Koeltechnische deurrubbers eenvoudig online op maat bestellen.
Alle niet stekplichtige onderdelen zoals scharnieren, sloten, randverwarming en verlichting voor alle typen koelingen en vriezers.
https://koelcel-onderdelen.com


User avatar
Expert Member

Posts

Joined
Sat Jun 25, 2011 4:09 am
Location - Alkmaar Holland

Post by BriteLightLEDs2014 » Mon Jun 06, 2016 4:32 am

victorj wrote:just tested on a live test site and working great.

https://rc-droneenzo.com/Nitro-Race-Toe ... ctory-Hawk
at 0.003 KG ? all others show ok but this will not

Active Member

Posts

Joined
Wed Aug 20, 2014 3:59 am

Active Member

Posts

Joined
Wed Aug 20, 2014 3:59 am

Post by victorj » Mon Jun 06, 2016 4:37 am

added working vqmod

Attachments

changed for 3 digits


Koeltechnische deurrubbers eenvoudig online op maat bestellen.
Alle niet stekplichtige onderdelen zoals scharnieren, sloten, randverwarming en verlichting voor alle typen koelingen en vriezers.
https://koelcel-onderdelen.com


User avatar
Expert Member

Posts

Joined
Sat Jun 25, 2011 4:09 am
Location - Alkmaar Holland

Post by BriteLightLEDs2014 » Tue Jun 07, 2016 1:20 am

Nope do not work for me :o ???

Active Member

Posts

Joined
Wed Aug 20, 2014 3:59 am

Post by victorj » Tue Jun 07, 2016 1:43 am

Should work, did you clear vqmod cache, if you use a pagecache did you clear that as well ?
uploaded the copy from working website

Koeltechnische deurrubbers eenvoudig online op maat bestellen.
Alle niet stekplichtige onderdelen zoals scharnieren, sloten, randverwarming en verlichting voor alle typen koelingen en vriezers.
https://koelcel-onderdelen.com


User avatar
Expert Member

Posts

Joined
Sat Jun 25, 2011 4:09 am
Location - Alkmaar Holland

Post by BriteLightLEDs2014 » Thu Jun 30, 2016 9:26 pm

victorj wrote:Should work, did you clear vqmod cache, if you use a pagecache did you clear that as well ?
uploaded the copy from working website
just redone this, working great, thank you

Active Member

Posts

Joined
Wed Aug 20, 2014 3:59 am
Who is online

Users browsing this forum: No registered users and 337 guests