normal How to enable Product Name

More
11 years 8 months ago - 11 years 8 months ago #1807 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: 11 years 8 months ago by Omar Ramich.

Please Log in or Create an account to join the conversation.

More

Notice: Undefined variable: end_tag_params in /home/omegatheme/public_html/libraries/kunena/External/Nbbc/src/BBCode.php on line 2321

Notice: Undefined variable: end_tag_params in /home/omegatheme/public_html/libraries/kunena/External/Nbbc/src/BBCode.php on line 2321

Notice: Undefined variable: end_tag_params in /home/omegatheme/public_html/libraries/kunena/External/Nbbc/src/BBCode.php on line 2321
11 years 8 months ago - 11 years 8 months ago #1808 by Trung Duong
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
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]

[img]...[/img]
Last edit: 11 years 8 months ago by Trung Duong.

Please Log in or Create an account to join the conversation.

More
11 years 8 months ago #1809 by Omar Ramich
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?

Please Log in or Create an account to join the conversation.

More
11 years 8 months ago #1812 by Linh Robert

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 Notice: Undefined variable: target in /home/omegatheme/public_html/components/com_kunena/template/aurelia/layouts/bbcode/url/default.php on line 32
> www.omegatheme.com/member/

Please Log in or Create an account to join the conversation.

More
11 years 3 weeks ago #4425 by maria castilla
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

Please Log in or Create an account to join the conversation.

More
11 years 2 weeks ago #4439 by maria castilla
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.398 seconds

About Growth

Innovative tech for eCommerce growth

Contact Info

Head: No. 3, 175/55 Lane, Lac Long Quan St., Nghia Do Ward, Cau Giay District, Hanoi City, Vietnam