News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

[3.8.9] vmadmin template feedback

Started by sirius, January 29, 2021, 23:25:32 PM

Previous topic - Next topic

pinochico

#15
Tooltip with class = hasPopover not function (on Safari, Chrome)
Not exist option Tooltip for booleanlist (YES/NO)


Ok, I edit function row in administrator/templates/vmadmin/html/com_virtuemart/helpers/vmuikit_html.php

and change to this code (Tooltip use standard Joomla/BS function hasTooltip, not hasPopover):


        $tooltiptext = "";
        $class="uk-form-label";
        $classt="uk-form-label";
        if ($lang->hasKey($label.'_TIP')) {
            $tooltiptext = htmlentities(vmText::_($label.'_TIP'));
        } //Fallback
        elseif ($lang->hasKey($label.'_EXPLAIN')) {
            $tooltiptext = htmlentities(vmText::_($label.'_EXPLAIN'));
        }
        if ($tooltiptext) {
            //New
            $tooltiptitle=' data-title="'.$tooltiptext.'"';
            $classt.=' hasTooltip';
            //Old
            $tooltiptext=' data-content="'.$tooltiptext.'"';
            $class.=' hasPopover';
        }
        $label = vmText::_($label);
        if ($func[1]=="checkbox" or $func[1]=="input") {
            $label = "\n\t" . '<label class="'.$class.'"
for="'. $args[0] . '"
id="' . $args[0] . '-lbl"'.$tooltiptext.'>'.$label."</label>";
        } elseif ($func[1]=="booleanlist") {
            $label = "\n\t" . '<div class="'.$classt.'" title="" '.$tooltiptitle.'>'.$label."</div>";
        } else {
            $label='
<div class="uk-form-label">'
                .$label.
            '</div>';
        }

www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds for FB, GMC,.. from products, categories, orders, users, articles, acymailing subscribers and database table
Virtuemart Email Manager - customs email templates
Import products for Virtuemart - from CSV and XML
Rich Snippets - Google Structured Data
VirtueMart Products Extended - Slider with products, show Others bought, Products by CF ID and others filtering products

AH

Yes - uikit does take some getting used to
Regards
A

Joomla 3.10.11
php 8.0

Troels_E

Where did "Action when a Product is Out of Stock" go?

Cant find it on the new template (Product->status)?



jenkinhill

Is "Stockhandling on product level " turned on in config/shopfront?
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Troels_E

#19
Stockhandling on product level is on.
J! 3.9.27
VirtueMart 3.8.8 10472

first is shot from new admin second pic is old admin (filnames are wrong, sorry)

webmanwebdesign

Hi there,

I am new to the forum and don't know if this is the right topic to post in.
But I think I found a bug in the new vmadmin template and I really need help to fix it, because otherwise I cannot use the template at all.

If you create a new product or edit an existing one, in the first tab (product information) the layout is now set to default because the option "no override" is missing.
For comparison: here is the code for the dropdown of the new template:
<div class="chzn-drop"><div class="chzn-search">
<input type="text" autocomplete="off" style="width: 183px;" tabindex="-1"></div>
<ul class="chzn-results">
<li id="layout_chzn_o_0" class="active-result result-selected" style="">default</li>
<li id="layout_chzn_o_2" class="active-result" style="">notify</li>
<li id="layout_chzn_o_3" class="active-result" style="">multiadd</li>
</ul>
</div>

With the old template it is:
<div class="chzn-drop"><div class="chzn-search">
<input type="text" autocomplete="off" style="width: 116px;" tabindex="-1"></div>
<ul class="chzn-results">
<li id="layout_chzn_o_0" class="active-result" style="">default</li>
<li id="layout_chzn_o_1" class="active-result result-selected" style="">Kein Überschreiben</li>
<li id="layout_chzn_o_2" class="active-result" style="">notify</li>
<li id="layout_chzn_o_3" class="active-result" style="">multiadd</li>
</ul>
</div>

So the option "layout_chzn_o_1" which I need to be the preselected option is missing.
We always create an own layout for the product details and set this in the global configuration. It is nice to be able to change it for a specific product, but I don't want to choose it everytime I create a new product.
And since we have different clients who manage the products in the shop by themselves, this is not pratical.

I already tried to override the files "product_edit_information.php" and "vmuikit_html.php" but I am not able to get it work.
Maybe I didnt't realize an option for it and anybody of you can help me...

Kind regards
Tanja Vogt
Webman Webdesign

Milbo

Hmm, your adjustments should work. But you may click on the provided link first and then you will understand, why the simpel old offline is not provided anylonger.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Studio 42

A simple question. Why using uikit ?

scriner

Hello

J 4.1.5, VM 4.0.2 10661

When I try to open list of reviews for product or one review from whole list - it shows error 0 Class 'vmuikitAdminUIHelper' not found.

I have same error with J 3.10.10 and VM 4.0.2 installed.

With classic admin template where is no same error.

Please, fix this problem. I am very like VMAdmin template. It is much better looking and more useful than classic template.

scriner

And, it seems that some styles are missing in J4. Becouse vmadmin in J3 looks better. Please, fix it.