Welcome, Guest
Username: Password: Remember me

TOPIC: How to enable Product Name

How to enable Product Name 4 years 4 months ago #1807

  • ivdesigns
  • ivdesigns's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
  • Karma: 0
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:
  • Attachment This image is hidden for guests. Please log in or register to see it.
Last Edit: 4 years 4 months ago by ivdesigns.
The administrator has disabled public write access.

Re: How to enable Product Name 4 years 4 months ago #1808

  • trungdt
  • trungdt's Avatar
  • OFFLINE
  • Administrator
  • Posts: 2287
  • Thank you received: 997
  • Karma: 121
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
<?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
Last Edit: 4 years 4 months ago by trungdt.
The administrator has disabled public write access.

Re: How to enable Product Name 4 years 4 months ago #1809

  • ivdesigns
  • ivdesigns's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
  • Karma: 0
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?
The administrator has disabled public write access.

Re: How to enable Product Name 4 years 4 months ago #1812

  • linh_omg
  • linh_omg's Avatar
  • OFFLINE
  • Moderator
  • Posts: 910
  • Thank you received: 568
  • Karma: 25
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/
The administrator has disabled public write access.

Re: How to enable Product Name 3 years 8 months ago #4425

  • mt2010
  • mt2010's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 24
  • Karma: 0
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
The administrator has disabled public write access.

Re: How to enable Product Name 3 years 8 months ago #4439

  • mt2010
  • mt2010's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 24
  • Karma: 0
ok, I think i get it, it was in another path
The administrator has disabled public write access.
Time to create page: 0.172 seconds