normal Link Manufacturers directly to their products

More
11 years 8 months ago #2130 by Kenan Ataerk
May be, some one before asks, about this here? If yes, please give me the right link, because i couldn't find it!

In any case - here is the problem:

1. It's not only for OT_Ante. But i like this template ;)
2. Explanation:
2.1. in my site: www.vucutgelistirenurunler.com/ ,
2.2. when you click on manufacturer logo,
2.3. you go to www.vucutgelistirenurunler.com/index.php...ufacturers/all-stars (for exampl.)
3. necessary:
3.1. to go to www.vucutgelistirenurunler.com/index.php/manufacturer/all-stars (for exampl.)

Which file must to be edited? Or any more easy ways for this?
I found something in VirtueMart official forums : forum.virtuemart.net/index.php?topic=103773.0 , but this is not a solution....because i have my own right menu for this.

Any answer will be apreciated a lot :)

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

More
11 years 8 months ago - 11 years 8 months ago #2142 by Linh Robert
Hi,
When click manufacture image (stage 1), the default link just show the manufacture name and link (stage 2), when click that link it will show all that manufacture's products (stage 3).

Do you want to go directly from stage 1 to stage 3?

If yes, you can modify the manufacture module.
Edit /templates/ot_ante/html//default.php and find ALL code like this:
Code:
$link = JROUTE::_('index.php?option=com_virtuemart&view=manufacturer&virtuemart_manufacturer_id=' . $manufacturer->virtuemart_manufacturer_id);
replace it by:
Code:
$link = JRoute::_('index.php?option=com_virtuemart&view=category&virtuemart_manufacturer_id=' . $manufacturer->virtuemart_manufacturer_id);

Hope this help.

Thanks for interest!

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/
Last edit: 11 years 8 months ago by Linh Robert. Reason: remove "this->"

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

More
11 years 8 months ago #2149 by Kenan Ataerk
Thank you linh_omg!

Sory to tell, but afther search in all entire directory of - /templates/ot_ante/html/ - the mentioned string is finde only in:

/templates/ot_ante/html/mod_virtuemart_manufacturer\default.php (2 hits):

1. Line 13: $link = JROUTE::_('index.php?option=com_virtuemart&view=manufacturer&virtuemart_manufacturer_id=' . $manufacturer->virtuemart_manufacturer_id);
2. Line 48: $link = JROUTE::_('index.php?option=com_virtuemart&view=manufacturer&virtuemart_manufacturer_id=' . $manufacturer->virtuemart_manufacturer_id);

I change them and get the error: Fatal error: Using $this when not in object context in /home/vucutgel/public_html/templates/ot_ante/html/mod_virtuemart_manufacturer/default.php on line 13

May be, i do something wrong?

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

More
11 years 8 months ago #2150 by Linh Robert
Sorry, not "$this->" in this case. Code modified.

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 8 months ago #2176 by Kenan Ataerk
In any case - thank you so much!
What i do:
1. remove the manufacture module.
2. Make a new one html table and locate any page to inserted logos there.
3. Push the new html custom module on position of original one.

I'ts not a "elegant" solution but work :)

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

Time to create page: 0.234 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