- Posts: 2
- Thank you received: 0
How to enable Product Name
- Omar Ramich
-
Topic Author
- Offline
- Fresh Boarder
-
Less
More
12 years 9 months ago - 12 years 9 months ago #1807
by Omar Ramich
How to enable Product Name was created by Omar Ramich
I want to know how I could enable the product name so that the name of the products are shown on the very top before the product image starts.
Attachments:
Last edit: 12 years 9 months ago by Omar Ramich.
Please Log in or Create an account to join the conversation.
- Trung Duong
-
- Offline
- Administrator
-
Less
More
- Posts: 2284
- Thank you received: 998
Notice: Undefined variable: end_tag_params in /ssd/home/omega_web/public_html/libraries/kunena/External/Nbbc/src/BBCode.php on line 2321
Notice: Undefined variable: end_tag_params in /ssd/home/omega_web/public_html/libraries/kunena/External/Nbbc/src/BBCode.php on line 2321
Notice: Undefined variable: end_tag_params in /ssd/home/omega_web/public_html/libraries/kunena/External/Nbbc/src/BBCode.php on line 2321
12 years 9 months ago - 12 years 9 months ago #1808 by Trung Duong
Replied by Trung Duong on topic Re: How to enable Product Name
Hello,
You can add this code under <div class="ot-custom-products-page ot-custom-product-i"> in file
ot_bicyclegreen/templates/ot_bicyclegreen/html/mod_virtuemart_product/default.php
Remember there are 2 kind of display styles: div and list. Our template demo is using list product, so you can find that div above at line 124
Ofcouse, you need implement your css for product name element
You can add this code under <div class="ot-custom-products-page ot-custom-product-i"> in file
ot_bicyclegreen/templates/ot_bicyclegreen/html/mod_virtuemart_product/default.php
Remember there are 2 kind of display styles: div and list. Our template demo is using list product, so you can find that div above at line 124
Code:
<?php $url = JRoute::_('index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id='.$product->virtuemart_product_id.'&virtuemart_category_id='.
$product->virtuemart_category_id); ?>
<div class="product-name">
<h5><a href="<?php echo $url ?>"><?php echo $product->product_name ?></a></h5>
</div>
Ofcouse, you need implement your css for product name element
Support email: services(at)omegatheme(dot)com
Follow Us to keep updated!


[img]...[/img]
[img]...[/img]
[img]...[/img]
Last edit: 12 years 9 months ago by Trung Duong.
Please Log in or Create an account to join the conversation.
- Omar Ramich
-
Topic Author
- Offline
- Fresh Boarder
-
Less
More
- Posts: 2
- Thank you received: 0
12 years 9 months ago #1809
by Omar Ramich
Replied by Omar Ramich on topic Re: How to enable Product Name
Thank you it worked perfect. By the way Amazing Template!!! 
One more thing With the code you provided I got it to work perfect for the module but how can I have it working for the component such as the Shop Store page or any other virtuemart component?

One more thing With the code you provided I got it to work perfect for the module but how can I have it working for the component such as the Shop Store page or any other virtuemart component?
Please Log in or Create an account to join the conversation.
- Linh Robert
-
- Offline
- Banned
-
Less
More
- Posts: 908
- Thank you received: 568
12 years 9 months ago #1812
by Linh Robert
It will be the same and the file(s) will be found in folder ot_bicyclegreen/templates/ot_bicyclegreen/html/com_virtuemart/category/
Thanks
If you need to send us FTP access / host access, administrator access or any private information:
services(at)omegatheme(dot)com or drop a ticket www.omegatheme.com/member/
Replied by Linh Robert on topic Re: How to enable Product Name
ivdesigns wrote: Thank you it worked perfect. By the way Amazing Template!!!
One more thing With the code you provided I got it to work perfect for the module but how can I have it working for the component such as the Shop Store page or any other virtuemart component?
It will be the same and the file(s) will be found in folder ot_bicyclegreen/templates/ot_bicyclegreen/html/com_virtuemart/category/
Thanks
If you need to send us FTP access / host access, administrator access or any private information:
services(at)omegatheme(dot)com or drop a ticket www.omegatheme.com/member/
Please Log in or Create an account to join the conversation.
- maria castilla
-
- Offline
- Junior Boarder
-
Less
More
- Posts: 24
- Thank you received: 0
12 years 1 month ago #4425
by maria castilla
Replied by maria castilla on topic Re: How to enable Product Name
Hi, I want to enable it too,
I tried to put this script in the php file where you say, but nothing happened,
What more I have to do?
also I have tried in the same php file to put the complete short description, changing:
echo shopFunctionsF::limitStringByWord($product->product_s_desc, 55, '...');
for: echo $product->product_s_desc;
But nothing happen.
Please could you help me, I really need to put the tittle of the products for clients.
Thanks.
sihost.com.ar
I tried to put this script in the php file where you say, but nothing happened,
What more I have to do?
also I have tried in the same php file to put the complete short description, changing:
echo shopFunctionsF::limitStringByWord($product->product_s_desc, 55, '...');
for: echo $product->product_s_desc;
But nothing happen.
Please could you help me, I really need to put the tittle of the products for clients.
Thanks.
sihost.com.ar
Please Log in or Create an account to join the conversation.
- maria castilla
-
- Offline
- Junior Boarder
-
Less
More
- Posts: 24
- Thank you received: 0
12 years 4 weeks ago #4439
by maria castilla
Replied by maria castilla on topic Re: How to enable Product Name
ok, I think i get it, it was in another path
Please Log in or Create an account to join the conversation.
Time to create page: 0.198 seconds