normal Problems

More
11 years 6 months ago - 11 years 6 months ago #2576 by Minh Van
Replied by Minh Van on topic Re: Problems

ndro777 wrote: Hi there,

I am starting to customize my website using this theme, but I've encountered 2 problems so far.

1. The additional images of product in Virtuemart are not shown anywhere. Ideally the thumbnails should be just below the main image.

2. The mega menu, whenever I add image to the menu, the title disappears regardless whether I choose "Add Menu Title" or not.

Thank you!


Hi, ndro777!

With your task 1. Plz override css files in zip file below for fixed The additional images of product in Virtuemart

Attachment ot_kitchen_template_unzip_first.zip not found



With your task 2. Plz view cssOTmegaMenu.css file of mod_ot_megamenu and modify code on line 25, see below.
path of cssOTmegaMenu.css file. ../modules/mod_ot_megamenu/css/
Code:
div.ot-megaMenu ul li a img, div.submenu-column ul li img{ max-height: 150px; max-width: 100%; }

replace by
Code:
div.ot-megaMenu ul li a img, div.submenu-column ul li img{ max-height: 20px; width: 20px; float: left; margin-right: 3px; }

and modify default.php file of mod_ot_megamenu via path of default.php file.
../modules/mod_ot_megamenu/tmpl/
Code:
$linktype = '<img class="icon" src="'.$item->menu_image.'" alt="'.$item->ftitle.'"/><span>'. $item->ftitle . $description .'</span>' ;

replace by
Code:
$item->params->get('menu_text', 1 ) ? $linktype = '<img src="'.$item->menu_image.'" alt="'.$item->ftitle.'"/><span>'. $item->ftitle . $description .'</span>' : $linktype = '<img src="'.$item->menu_image.'" alt="'.$item->ftitle.'" />';
Attachments:
Last edit: 11 years 6 months ago by Minh Van.

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

More
11 years 6 months ago - 11 years 6 months ago #2578 by Minh Van
Replied by Minh Van on topic Re: Problems

ndro777 wrote: Solved this one (Vendor tab).
Apparently when created, my username was not marked as vendor, so I have to use phpmyAdmin to add it.


Hi, ndro777!

Do you have upgrade component virtuemart to latest version? becos this demo package using com_virtuemart 2.0.10 version and the latest version of com_virtuemart is 2.0.12 there are some changes compare with 2.0.10 version.
The demo package original have not this bug.

Thanks!
Last edit: 11 years 6 months ago by Minh Van.

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

More
11 years 6 months ago #2579 by Hendro Lim
Replied by Hendro Lim on topic Re: Problems
Hi minhnv,

Task 1 is solved! Perfect. Thanks for that.

Task 2...When I replace the first part, all my images that loaded as module on mega menu become small.
Further I can't locate the code for the second part of your suggestion on the default.php file of mod_ot_megamenu.

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

More
11 years 6 months ago #2581 by Minh Van
Replied by Minh Van on topic Re: Problems

ndro777 wrote: Thanks minhnv,

That solves the problem, however how do I give discount AND still have the custom fields variant applicable?


Hi, ndro777!

Plz go to administrator and component virtuemart general view and go to "Taxes & Calculation Rules" area on Products tab, in there you can setting tax, discount and comeback product details view, choose Discount Type for this product.

Thanks!
The following user(s) said Thank You: Hendro Lim

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

More
11 years 6 months ago #2582 by Hendro Lim
Replied by Hendro Lim on topic Re: Problems
Wonderful! That's fantastic. Thank you.
The following user(s) said Thank You: Minh Van

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

More
11 years 6 months ago - 11 years 6 months ago #2583 by Minh Van
Replied by Minh Van on topic Re: Problems

ndro777 wrote: Hi minhnv,

Task 1 is solved! Perfect. Thanks for that.

Task 2...When I replace the first part, all my images that loaded as module on mega menu become small.
Further I can't locate the code for the second part of your suggestion on the default.php file of mod_ot_megamenu.


Hi, ndro777!

The path of "default.php" file is ../modules/mod_ot_megamenu/tmpl/default.php
This is the line 57 on "default.php" file.


The path of "cssOTMegaMenu.css" file is ../modules/mod_ot_megamenu/css/cssOTMegaMenu.css
if you want modify size of images then you comeback cssOTMegaMenu.css file on line 25 with properties
Code:
{ max-height: 20px; width: 20px; }

Thanks!
Last edit: 11 years 6 months ago by Minh Van.

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

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