Post by straightlight » Fri Jan 27, 2012 11:21 pm


Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by ikhlief » Sat Jan 28, 2012 12:18 am

The same result :(

Active Member

Posts

Joined
Wed Nov 24, 2010 9:15 pm

Post by straightlight » Sat Jan 28, 2012 12:19 am

Which OC version are you using ?

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by ikhlief » Sat Jan 28, 2012 12:25 am

V1.5.1.3

Active Member

Posts

Joined
Wed Nov 24, 2010 9:15 pm

Post by straightlight » Sat Jan 28, 2012 12:28 am

I have now updated the XML file.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by ikhlief » Sat Jan 28, 2012 12:37 am

I think you removed adding it to product.tpl by mistake :)

Active Member

Posts

Joined
Wed Nov 24, 2010 9:15 pm

Post by straightlight » Sat Jan 28, 2012 12:40 am

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.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by ikhlief » Sat Jan 28, 2012 12:42 am

I didn't add the code at all to product.tpl and I got the error, can you give me again the full file

Active Member

Posts

Joined
Wed Nov 24, 2010 9:15 pm

Post by straightlight » Sat Jan 28, 2012 12:45 am

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 ?

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by ikhlief » Sat Jan 28, 2012 1:11 am

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) :)

Active Member

Posts

Joined
Wed Nov 24, 2010 9:15 pm

Post by straightlight » Sat Jan 28, 2012 1:31 am

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.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by ikhlief » Sat Jan 28, 2012 4:00 am

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?

Active Member

Posts

Joined
Wed Nov 24, 2010 9:15 pm

Post by ikhlief » Sat Jan 28, 2012 8:25 pm

Dear straightlight, can you give me XML file with modifications to porduct.tpl included?
Thanks

Active Member

Posts

Joined
Wed Nov 24, 2010 9:15 pm

Post by straightlight » Sat Jan 28, 2012 10:15 pm

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; ?>

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by ikhlief » Sat Jan 28, 2012 11:32 pm

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

Active Member

Posts

Joined
Wed Nov 24, 2010 9:15 pm

Post by straightlight » Sat Jan 28, 2012 11:40 pm

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. ;)

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by ikhlief » Sun Jan 29, 2012 1:59 pm

Ok here is my product.tpl file.

Thanks

Active Member

Posts

Joined
Wed Nov 24, 2010 9:15 pm

Post by straightlight » Sun Jan 29, 2012 10:39 pm

A simple way would be like this. Simply edit it the way you like.

Attachments


Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by ikhlief » Mon Jan 30, 2012 12:32 am

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.

Active Member

Posts

Joined
Wed Nov 24, 2010 9:15 pm

Post by sayx » Mon Mar 12, 2012 1:56 am

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

Newbie

Posts

Joined
Thu Aug 25, 2011 9:02 pm
Who is online

Users browsing this forum: No registered users and 13 guests