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

Recent posts

#71
General Questions / product search results of ever...
Last post by EIF - November 06, 2024, 14:20:09 PM
When I use VM search, displayed in top position of the website, it searchs for products in the productcategory where I am in at the moment,

What I want is that it searches in every category, no matter in what category I am in now.

I couldn't find a a setting for this? What do I need to change in what file to get this done?

Using J5 and VM 4.2.18
#72
Virtuemart Development and bug reports / Re: Bug with the constant VM_V...
Last post by hazael - November 06, 2024, 13:33:37 PM
 I gave you this string as an example. I have already written to you above that you can enter anything else - practically anything you want. You don't really need to be a programmer for this. I'm also not a programmer, as it's not my goal, but sometimes all it takes is logical thinking and a bit of independence. In this case, a basic knowledge of Joomla is all you need.

You create a unique string of characters: MY_NAME_FOR_TAX or anything else:
$tax = shopFunctionsF::getTaxNameWithValue(vmText::_ ('MY_NAME_FOR_TAX'),$taxd['calc_value']);
In the panel, you open the page:
/administrator/index.php?option=com_languages&view=overrides
...and assign values to the newly created language constant depending on the selected language
#73
Virtuemart Development and bug reports / Re: Bug with the constant VM_V...
Last post by ViPeS - November 06, 2024, 11:38:54 AM
This option is not suitable. The VM system constant COM_VIRTUEMART_CART_SUBTOTAL_TAX_AMOUNT contains "Tax" and it is unknown where else it is used. Instead of $this->taxRules I want to have the output of any user constant.
I am not a programmer, I do not know how to write this correctly.
#74
Virtuemart Development and bug reports / Re: List of countries in the f...
Last post by hazael - November 05, 2024, 22:27:14 PM
It seems that countries that are unpublished only display for the logged in vendor. I understand that this was intentional for some reason.  But this logic is nonsensical! After all, if a vendor hides certain countries in the store, it doesn't make sense for them to see them as a logged-in user in forms that are supposed to reflect what customers see. In addition, it makes it difficult to search for the right country in this long list for a rule to block or unblock a payment or shipping plugin.

Just comment on the fragment below in
administrator/components/com_virtuemart/models/userfields.php

                                //if($vmUserTable->user_is_vendor){
                                //    $attrib['unpublished'] = 1;
                                //}
#75
General Questions / Re: Bring Virtuemart back to s...
Last post by hazael - November 05, 2024, 18:35:26 PM
Quote from: andrai2 on October 24, 2024, 21:31:21 PMSo at curent state i think it should be marketed a "product for professionals" who wants to invest some time not drag and drop.

yeah, Great idea for a marketing slogan - choose Virtuemart package  8) :

For the masses: Viertuemart + Wordpress - ideal for clueless and lazy people
For the niche: Virtuemart + Joomla - perfect for creative masochists
#76
Virtuemart Development and bug reports / Re: Bug with the constant VM_V...
Last post by hazael - November 05, 2024, 17:48:30 PM
Just replace it:

$tax = shopFunctionsF::getTaxNameWithValue(vmText::_($taxd['calc_name']),$taxd['calc_value']);
to
$tax = shopFunctionsF::getTaxNameWithValue(vmText::_ ('COM_VIRTUEMART_CART_SUBTOTAL_TAX_AMOUNT'),$taxd['calc_value']);

You can insert any language variable that suits you and adapt it to other languages
COM_VIRTUEMART_CART_SUBTOTAL_TAX_AMOUNT


In the administration panel, name the rule for the tax whatever you want, because only you can see it - I assume so ;-)
#77
Virtuemart Development and bug reports / Re: Bug with the constant VM_V...
Last post by ViPeS - November 05, 2024, 16:41:34 PM
QuoteWhere does the shopping cart module come from?
\components\com_virtuemart\views\cart\tmpl\default_pricelist.php
<?php if (VmConfig::get ('show_tax')) {
$tax vmText::('COM_VIRTUEMART_CART_SUBTOTAL_TAX_AMOUNT');
if(!empty($this->cart->cartData['VatTax'])){
if(count($this->cart->cartData['VatTax']) < 2) {
reset($this->cart->cartData['VatTax']);
$taxd current($this->cart->cartData['VatTax']);
$tax shopFunctionsF::getTaxNameWithValue(vmText::_($taxd['calc_name']),$taxd['calc_value']);
}
}
?>

<th class="vm-cart-item-tax" ><?php echo "<span  class='priceColor2'>" $tax '</span>' ?></th>
The word VAT is displayed in the cart as 'calc_name' according to the VM_VALUE_ADDED_TAX language.
It is also displayed correctly in Tax & Calculation Rule (Admin panel) via calc_name
/administrator/templates/vmadmin/html/com_virtuemart/calc/default.php
<td>
<span class="uk-hidden@m uk-margin-small-right md-color-grey-500"
  uk-tooltip="<?php echo vmText::_('COM_VIRTUEMART_NAME'?>"
  uk-icon="icon: pencil"></span>
<a href="<?php echo $editlink?>"><?php echo vmText::_($row->calc_name); ?></a>
</td>
But the word VAT is not displayed in Product pricing (Admin panel)
/administrator/templates/vmadmin/html/com_virtuemart/product/product_edit_price.php
<td>
<span uk-tooltip="<?php echo vmText::_('COM_VIRTUEMART_RULES_EFFECTING_TIP'?>">
<?php echo vmText::_('COM_VIRTUEMART_TAX_EFFECTING') . '<br />' $this->taxRules ?>
</span>
</td>
Here it is output via taxRules, but not as VAT but as VM_VALUE_ADDED_TAX.
How should I write the code here correctly?
#78
Virtuemart Development and bug reports / Re: List of countries in the f...
Last post by hazael - November 05, 2024, 13:46:03 PM
Thanks for the information. You're right - it does work, but only for people who are not logged in.

I also have this problem in the admin panel. There is clearly some bug. look at the user edit in the admin panel - I have the same problem even though countries such as Afghanistan have been disabled
#79
Virtuemart Development and bug reports / Re: List of countries in the f...
Last post by iWim - November 05, 2024, 09:39:27 AM
I cannot confirm this.
In my installs only the published countries are listed.
#80
Hi Milbo,
Many thanks. It's solved.

You were right, the key of field_type_searchable_published was set as unique. I changed it and it works.

Thank you,