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.
just add
Code: Select all
<?php echo $this->currency->format($product_info['shipping_by_product']); ?>
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?
Or does it go into the catalog/view/theme/default/product/product.tpl file?
Just as I thought, its not working. This is the coding I have inserted into the page and this is the code I get.
coding I entered
Tried all three variations into the text and got the same error
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
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']); ?>
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 } ?>
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 } ?>
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"
I have completed this for all the dimensions
see http://www.online-biz-uk.co.uk
A great entry in this forum
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>
see http://www.online-biz-uk.co.uk
A great entry in this forum
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
Compelted all the ones i want to appear, except this one
Just looking to pull Length Class (Centimeter, Inch, etc...)
anyone?
Thnaks
Chris
Regards
Chris
In can not check this as my carts are all down but try the following:
I am not sure if that will work but give it a try. It should
Code: Select all
<tr>
<td><b>Measurement:</b></td>
<td><?php echo $product_info['length_class_id']; ?></td>
</tr>
Who is online
Users browsing this forum: No registered users and 28 guests