Recent Posts

Pages: [1] 2 3 ... 10
1
We have a multi variant product with e.g. red and green which are child products.

The red is our main product which have related products. When we change to green, instead of going to the green product it brigns in front the related product.

It looks like its the related product have the same class ( .product-container ) inside as the main product and replaces that for a reason instead of getting the green product.

We need to fix this asap. I have a support paid. Please fix it for me or tell us how to solve it or release a new version asap.
Its unnaceptable.
2
Virtuemart Development and bug reports / Slugs in products
« Last post by niosme on Today at 14:34:12 »
slugs inside products is deriving from whatever language we type in the product name.
Why you are not using the joomlas default slug title creator which makes it easy for every language?

Now if you have arabic it will make a slug in product or in category with arabic. If we have chinese it will make a slug in url with chinese.With greek it will make it with greek characters which is a bad thing.Currently virtuemart handles only english language good.
Why you dont use the joomla's default behavior for that which handle it like a charm?

$item->slug = Joomla\CMS\Application\ApplicationHelper::stringURLSafe($item->slug);

or also this can be used

$item->slug = Joomla\CMS\Filter\OutputFilter::stringURLSafe($item->slug);

More specific inside adminsitraor/com_virtuemart/helpers/vmtable.php at line 1741 and 1742 replace with this code

$this->{$slugName} = Joomla\CMS\Filter\OutputFilter::stringURLSafe($this->{$slugName});

and it will work like a charm.

Thanks in advance.
3
When we select radio button on multivariant it doesnt work. Returns to the main product and remains buggy.
Only dropdown list is working as expected. What can we do for this to be fixed asap?
4
When we delete a child product it always this child product not deleted from the fields in database and always throws an error
e.g we have a product with id 1
and 4 child procuts with id's 2,3,4,5

When we go to delete the product e.g. with id 5 then everytime it throws the following error:

vmError: Empty slug product with id 5, entries exists for language? el-GR.  (or en-GB) langugage dont make any difference on that

Then we must go to edit the table from mysql by hand because
inside the
##_virtuemart_product_customfields

on the custom field params it remains like that

Code: [Select]
selectoptions=[
    {
        "voption": "clabels",
        "clabel": "\u03a7\u03c1\u03ce\u03bc\u03b1",
        "values": "\u039c\u03b1\u03cd\u03c1\u03bf\/\u0393\u03ba\u03c1\u03b9\/\u039b\u03b5\u03c5\u03ba\u03cc\r\n\u0393\u03ba\u03c1\u03b9\/\u039c\u03b1\u03cd\u03c1\u03bf\/\u03a0\u03bf\u03c1\u03c4\u03bf\u03ba\u03b1\u03bb\u03af\r\n\u039b\u03b5\u03c5\u03ba\u03cc\/\u039c\u03b1\u03cd\u03c1\u03bf\/\u039a\u03cc\u03ba\u03ba\u03b9\u03bd\u03bf\r\n\u039b\u03b5\u03c5\u03ba\u03cc\/\u0393\u03ba\u03c1\u03b9\/\u039c\u03c0\u03bb\u03b5"
    }
]|options={
    "1": [
        "\u039c\u03b1\u03cd\u03c1\u03bf\/\u0393\u03ba\u03c1\u03b9\/\u039b\u03b5\u03c5\u03ba\u03cc"
    ],
    "2": [
        "\u0393\u03ba\u03c1\u03b9\/\u039c\u03b1\u03cd\u03c1\u03bf\/\u03a0\u03bf\u03c1\u03c4\u03bf\u03ba\u03b1\u03bb\u03af"
    ],
    "3": [
        "\u039b\u03b5\u03c5\u03ba\u03cc\/\u039c\u03b1\u03cd\u03c1\u03bf\/\u039a\u03cc\u03ba\u03ba\u03b9\u03bd\u03bf"
    ],
    "4": [
        "\u039b\u03b5\u03c5\u03ba\u03cc\/\u0393\u03ba\u03c1\u03b9\/\u039c\u03c0\u03bb\u03b5"
    ],
    "5": [
        "\u039b\u03b5\u03c5\u03ba\u03cc\/\u0393\u03ba\u03c1\u03b9\/\u039c\u03c0\u03bb\u03b5"
    ]
}|

Which contains the id 5 and we should manually delete it and make it like this

Code: [Select]
selectoptions=[
    {
        "voption": "clabels",
        "clabel": "\u03a7\u03c1\u03ce\u03bc\u03b1",
        "values": "\u039c\u03b1\u03cd\u03c1\u03bf\/\u0393\u03ba\u03c1\u03b9\/\u039b\u03b5\u03c5\u03ba\u03cc\r\n\u0393\u03ba\u03c1\u03b9\/\u039c\u03b1\u03cd\u03c1\u03bf\/\u03a0\u03bf\u03c1\u03c4\u03bf\u03ba\u03b1\u03bb\u03af\r\n\u039b\u03b5\u03c5\u03ba\u03cc\/\u039c\u03b1\u03cd\u03c1\u03bf\/\u039a\u03cc\u03ba\u03ba\u03b9\u03bd\u03bf\r\n\u039b\u03b5\u03c5\u03ba\u03cc\/\u0393\u03ba\u03c1\u03b9\/\u039c\u03c0\u03bb\u03b5"
    }
]|options={
    "1": [
        "\u039c\u03b1\u03cd\u03c1\u03bf\/\u0393\u03ba\u03c1\u03b9\/\u039b\u03b5\u03c5\u03ba\u03cc"
    ],
    "2": [
        "\u0393\u03ba\u03c1\u03b9\/\u039c\u03b1\u03cd\u03c1\u03bf\/\u03a0\u03bf\u03c1\u03c4\u03bf\u03ba\u03b1\u03bb\u03af"
    ],
    "3": [
        "\u039b\u03b5\u03c5\u03ba\u03cc\/\u039c\u03b1\u03cd\u03c1\u03bf\/\u039a\u03cc\u03ba\u03ba\u03b9\u03bd\u03bf"
    ],
    "4": [
        "\u039b\u03b5\u03c5\u03ba\u03cc\/\u0393\u03ba\u03c1\u03b9\/\u039c\u03c0\u03bb\u03b5"
    ]
}|

Which is unacceptable.

Also the characters are saved in translated format. They should be in utf8 or something to be readable.

Please fix it asap!
5
site is moved to virtuemartoz.xyz

http://www.virtuemartoz.xyz/virtuemart-shipping-plugins/shipment-tracking-for-virtuemart.html

in my memory, other people can't redistribute the software with a price regardles GPL or not
6
I can't find any information about your plugin. Your website is down, it's not on JED, nor on VM extensions page. Under what license was it released? If GPL or similar FOSS license, then redistributing your plugin is actually legal. If that's the case, there's nothing you can do about existing versions. But you can release new versions under a proprietary license that doesn't allow redistribution.
7
Hi,

Joomla: 3.10.12
Virtuemart: 4.2.3
PHP: 8.0.30

I've been trying to get the VM Javascript Handler to work (https://docs.virtuemart.net/tutorials/development/196-the-vm-javascript-handler.html) but I don't know enough about js to know how and where to put the code, if someone is able to help me?
I've made a few failed attempts.

I use the RegularLabs 'modules anywhere' plugin to insert 'custom' type modules for the long & short descriptions for my products. I have some js at the bottom of my template's index.php (which I had some help creating) which inserts text and images in the modules, based on text contained in the h1 tag on the page.


An example of a text insert script is..

-------------------------------------
window.addEventListener("load",function(){
  const h1 = document.querySelector("h1"),
      description = document.querySelector("#changesize"),
      changesizes = [
        { changesize: "1", description: "size 1" },
        { changesize: "2", description: "size 2" },
        { changesize: "3", description: "size 3" },
        { changesize: "4", description: "size 4" }
      ]
 
description.innerText = changesizes.filter(f => h1.innerText.toLowerCase().includes(f.changesize))[0]?.description
  },false);
-------------------------------------

An example of the image insert script is...

-------------------------------------
const IMAGE_TAGS_PAIRS = [
{tags: 'article size 1 colour a',src: '/images/stories/virtuemart/product/article-1-a.jpg'},
{tags: 'article size 1 colour b',src: '/images/stories/virtuemart/product/article-1-b.jpg'},
{tags: 'article size 2 colour a',src: '/images/stories/virtuemart/product/article-2-a'},
{tags: 'article size 2 colour b',src: '/images/stories/virtuemart/product/article-2-b'},
{tags: 'article size 3 colour a',src: '/images/stories/virtuemart/product/article-3-a.jpg'}
]

const TAG_NOT_FOUND_IMG = '/images/logo.png'

function getImageSrcByDescription(description) {
  const normalizedDescription = description.toLowerCase().trim()

  const image = IMAGE_TAGS_PAIRS.find((obj) => {
    const tags = obj.tags.split(' ');

    const isMatchingAllTags = tags.every(tag => normalizedDescription.includes(tag))

    return isMatchingAllTags ? obj : undefined
  })

  return image ? image.src : TAG_NOT_FOUND_IMG
}

window.addEventListener("load", function() {
  const productTitleElem = document.querySelector("h1");
  const productImageElem = document.querySelector("#infographic");

  const description = productTitleElem.innerText
  const imageSrc = getImageSrcByDescription(description)

  productImageElem.alt = 'New Image'
  productImageElem.src = imageSrc
})
-------------------------------------

Of course, when a child product variant is selected, the js is not picked up. I understand the principles of the VM JavaScript Handler article and it sounds like what I need. I've also read other people's forum posts on the matter to try and help, but it's all a bit over my head.

I'm unsure what exact code I need and I also don't know which file, or where in the file, to insert the function code in. Also, does it need some containing tags? The article mentions wrapping it in //<![CDATA[  ?

In a nutshell, can someone please help me to get the modules to read the js?

Any help is much appreciated! Thank you!
8
we are going to update it for vm4 soon
we have changed the site from virtuemartoz.com to virtuemartoz.xyz
10
Virtuemart Development and bug reports / Re: Price not changing
« Last post by MAD King on Yesterday at 20:22:45 »
I just noticed this:



Pages: [1] 2 3 ... 10