Page 4 of 6
Re: Product Dimensions (L x W x H)
Posted: Fri Jan 27, 2012 11:21 pm
by straightlight
Re: Product Dimensions (L x W x H)
Posted: Sat Jan 28, 2012 12:18 am
by ikhlief
The same result

Re: Product Dimensions (L x W x H)
Posted: Sat Jan 28, 2012 12:19 am
by straightlight
Which OC version are you using ?
Re: Product Dimensions (L x W x H)
Posted: Sat Jan 28, 2012 12:25 am
by ikhlief
V1.5.1.3
Re: Product Dimensions (L x W x H)
Posted: Sat Jan 28, 2012 12:28 am
by straightlight
I have now updated the XML file.
Re: Product Dimensions (L x W x H)
Posted: Sat Jan 28, 2012 12:37 am
by ikhlief
I think you removed adding it to product.tpl by mistake

Re: Product Dimensions (L x W x H)
Posted: Sat Jan 28, 2012 12:40 am
by straightlight
That is correct. It is not a mistake, though. I simply removed this instruction from XML since users are already added this part of code into the original product.tpl file anyhow.
Re: Product Dimensions (L x W x H)
Posted: Sat Jan 28, 2012 12:42 am
by ikhlief
I didn't add the code at all to product.tpl and I got the error, can you give me again the full file
Re: Product Dimensions (L x W x H)
Posted: Sat Jan 28, 2012 12:45 am
by straightlight
ikhlief wrote:I didn't add the code at all to product.tpl and I got the error, can you give me again the full file
ikhlief wrote:The same result

You did mentioned this though which means that you did tried the exact steps as previous users tried on this topic. Correct ?
Re: Product Dimensions (L x W x H)
Posted: Sat Jan 28, 2012 1:11 am
by ikhlief
The same result was when I asked for latest version to make sure that I am putting the right file, and you gave me the link for the XML, I tried this file and the same result (I still get the error)

Re: Product Dimensions (L x W x H)
Posted: Sat Jan 28, 2012 1:31 am
by straightlight
Better clarification could of been posted there so to have a better understanding regarding the results.
However, screen shots were posted with the XML file which means that the results that I see are the ones from the XML. I cannot reproduce any error message based on this demonstration.
What is the error message displaying in your case ? Looks like an XML conflict issue.
Re: Product Dimensions (L x W x H)
Posted: Sat Jan 28, 2012 4:00 am
by ikhlief
The product dimensiions are also shown instead of product tags also I don't know why
Sorry for not making things clear but I am trying my best, please can you send me the old XML which includes modifications to product.tpl?
Re: Product Dimensions (L x W x H)
Posted: Sat Jan 28, 2012 8:25 pm
by ikhlief
Dear straightlight, can you give me XML file with modifications to porduct.tpl included?
Thanks
Re: Product Dimensions (L x W x H)
Posted: Sat Jan 28, 2012 10:15 pm
by straightlight
Since it was stated previously by others in this topic that manually adding the variables into product.tpl file would work even from VQMod, simply use the followings:
Code: Select all
<?php echo $weight; ?>
<?php echo $length; ?>
<?php echo $width; ?>
<?php echo $height; ?>
Re: Product Dimensions (L x W x H)
Posted: Sat Jan 28, 2012 11:32 pm
by ikhlief
Dear straightlight, I don't know much about coding, is it hard to give me the original vqmod file before you took from it addition to product.tpl in this step??
http://forum.opencart.com/posting.php?m ... 0#pr244649
Many thanks
Re: Product Dimensions (L x W x H)
Posted: Sat Jan 28, 2012 11:40 pm
by straightlight
The problem as explained earlier is that I can't publicize multiple versions at the same time since this forum only allows three attachment files to be posted at the time unfortunately. However, since others did mentioned the implementation does work within the template even by using this XML file, can you rather upload your product.tpl file ? I could always implement it between the lines if it's also the case for you stated by others if it really works the way they describe it does.

Re: Product Dimensions (L x W x H)
Posted: Sun Jan 29, 2012 1:59 pm
by ikhlief
Ok here is my product.tpl file.
Thanks
Re: Product Dimensions (L x W x H)
Posted: Sun Jan 29, 2012 10:39 pm
by straightlight
A simple way would be like this. Simply edit it the way you like.
Re: Product Dimensions (L x W x H)
Posted: Mon Jan 30, 2012 12:32 am
by ikhlief
Many thanks to you, but I don't know how to change this very much, can you send me the old XML using PM?? it looked nicer than this.
Sorry for this and thanks for your great help.
Re: Product Dimensions (L x W x H)
Posted: Mon Mar 12, 2012 1:56 am
by sayx
I have been using this thread for help adding the weigth to my product page, I'm not getting any errors but nothing is showing. v1.5.3
catalog\view\theme\default\template\product\product.tpl
Code: Select all
<br><span><?php echo text_dimension_weight . " "; ?></span><?php echo $product_info['weight']; ?><br />
\catalog\language\english\product\product.php
Code: Select all
$_['text_dimension_weight'] = 'Weight:';
\catalog\controller\product\product.php
Code: Select all
if ($product_info['weight']) { $this->data['weight'] = sprintf($this->language->get('text_dimension_weight'), $this->weight->format($product_info['weight'], $product_info['weight_class_id'])); } else { $this->data['weight'] = ''; }
Thanks