Page 2 of 2
Re: [MOD] - Show Additional Fields on Product Page
Posted: Tue Oct 19, 2010 9:21 pm
by The Alchemist
Q, I am using your shipping per item mod and Im trying to add in the shipping field for this. When I enter in the coding above, it comes up fine, but instead of shipping actually being the 20 dollars it should be or whatever it is, it comes up as "1" for everything.
Re: [MOD] - Show Additional Fields on Product Page
Posted: Thu Oct 21, 2010 10:02 pm
by Qphoria
just add
Code: Select all
<?php echo $this->currency->format($product_info['shipping_by_product']); ?>
Re: [MOD] - Show Additional Fields on Product Page
Posted: Thu Oct 21, 2010 10:42 pm
by The Alchemist
Curious. I got errors using that. Where does that code go. Into the catalog/controller/product/product.php
Or does it go into the catalog/view/theme/default/product/product.tpl file?
Re: [MOD] - Show Additional Fields on Product Page
Posted: Fri Oct 22, 2010 12:01 am
by Qphoria
tpl
Re: [MOD] - Show Additional Fields on Product Page
Posted: Fri Oct 22, 2010 10:45 pm
by The Alchemist
Just as I thought, its not working. This is the coding I have inserted into the page and this is the code I get.
Code: Select all
Parse error: syntax error, unexpected '[' in /home/content/a/x/i/axidworks/html/catalog/view/theme/default/template/product/product.tpl on line 52
coding I entered
Code: Select all
<tr>
<td> <b>Shipping:</b></td>
<td><?php echo $this->currency->format(product_info['shipping_by_product']); ?></td>
</tr>
Code: Select all
<tr>
<td> <b>Shipping:</b></td>
<td><?php echo $this->currency->format(product_info['shipping_by_product']); ?></td>
</tr>
<?php } ?>
Code: Select all
<?php echo $this->currency->format(product_info['shipping_by_product']); ?>
Tried all three variations into the text and got the same error
Re: [MOD] - Show Additional Fields on Product Page
Posted: Fri Oct 22, 2010 11:35 pm
by Qphoria
You are missing the $ in front of product_info
Re: [MOD] - Show Additional Fields on Product Page
Posted: Sat Oct 23, 2010 12:37 am
by The Alchemist
thanks
Re: [MOD] - Show Additional Fields on Product Page
Posted: Sun Nov 07, 2010 11:18 pm
by sjsjsj
I used $product_info['sku'] varible to show other content in product page. Worked, but how to make if SKU field in admin panel is empty to hide content with $product_info['sku'] in product page? I read some PHP, but i cant understand anything.
How to hide this if field SKU in admin is empty? Opencart 1.44
<a style="float:right;" class='video' href="
http://www.youtube.com/v/<?php echo $product_info['sku']; ?>?rel=0" /><img src="./image/video.jpg" alt="видео" /></a>
p.s. ..and the solution is
<?php if ($product_info['sku']) { ?>
<a class='video' style="float:right;" href="
http://www.youtube.com/v/<?php echo $product_info['sku']; ?>?rel=0" /><img class="videos" src="./image/video1.jpg" alt="видео" /></a>
<?php } ?>
Re: [MOD] - Show Additional Fields on Product Page
Posted: Tue May 31, 2011 3:52 pm
by pbenfield
This has been one of the most interesting and practical solutions to adding product information field to a products.
At first I could not get Misc Location to come up until I lookeed at the databse entry for "product". When opening this database all the fields are there to be seen, even shipping.
Misc Location for example ist listed as just "location", the diemensions are listed individually, ideal for my website.
I have used Misc Location as "Information" and entered this as explained earlier in this entry as follows as you can put your own text instead of "Misc Location"
Code: Select all
<tr>
<td><b>Information:</b></td>
<td><?php echo $product_info['location']; ?></td>
</tr>
I have completed this for all the dimensions
see
http://www.online-biz-uk.co.uk
A great entry in this forum
Re: [MOD] - Show Additional Fields on Product Page
Posted: Fri Jun 03, 2011 6:03 pm
by webpie it.
Followed all through this topic.
Compelted all the ones i want to appear, except this one
Just looking to pull Length Class (Centimeter, Inch, etc...)
anyone?
Thnaks
Chris
Re: [MOD] - Show Additional Fields on Product Page
Posted: Mon Jun 06, 2011 11:53 pm
by pbenfield
In can not check this as my carts are all down but try the following:
Code: Select all
<tr>
<td><b>Measurement:</b></td>
<td><?php echo $product_info['length_class_id']; ?></td>
</tr>
I am not sure if that will work but give it a try. It should
Re: [MOD] - Show Additional Fields on Product Page
Posted: Tue Jun 07, 2011 1:46 am
by webpie it.
Yep worked thanksvman
Re: [MOD] - Show Additional Fields on Product Page
Posted: Wed Mar 21, 2012 4:50 pm
by averuga
Hello! How to draw a conclusion "Live Demo" button for certain categories?
I have seven categories, "Livе Demo" button for two tedious.
thank you