Hello,
please how is it possible to change "Orderby" menu to list of items via "Select" command in html? Example is in attachment.
I think it is more user friendly solution.
Thank you very much
:-[
Really nobody?
Do not bump!
This is a free forum where people answer and it they have the time.
If your request is important to your business use your tech support or ask via your VM membership to ask for help
How can I ask VM membership?
Thanks
At the top of this page!
'Support the VirtueMart project and become a member'
http://extensions.virtuemart.net/support/virtuemart-supporter-membership-detail
From my point of view I would like to suggest that this thing is important to solve in core of VM, because I do not see this solution in another CMS systems and it is not practical solution.
Control of page should be simple as it can be.
Thanks
Looks like others are not of the same opinion based on the number of posts in this thread
Or they do not complain because they have found a solution. Like me, for example. ;)
I also don't like the original sorting method.
Nice to know you have made something work the way you desire it
Maybe you could share your solution with the dev team, it may be useful.
Unfortunately, the solution is not universal. It is tailored to my site according to the sorting methods I use. If other sorting is used, other changes must be made.
The only changes are in the file: \templates\your_theme\html\com_virtuemart\category\default.php
So the current answer to the original poster seems to be - do it yourself to meet your own needs
Ventsi Genchev:
I asked programator and he told me there must be made changes also in database. And it is work for 5 hours ate least. So can you please share your solution with us please?
I am very interesting about it.
Thank you
@psm
Can you please send the list in english ?
If the sort order is in the config, then you dont need database changes(it only need to wirte code for the list itself).
And it do not need DB changes only perhaps in the product model to add the new valid order by options.
I am sending you picture how I would like to have it. If it is not possible to add order by "reviews" then use just order by "product name".
Thank you very much
the info is there but in an awful format..
<div class="orderlist collapse">
<div><a title="Product Name" href="/shop/by,product_name?keyword=" class="btn btn-xs btn-default btn-block">Product Name</a></div>
<div><a title="Product SKU" href="/shop/by,product_sku?keyword=" class="btn btn-xs btn-default btn-block">Product SKU</a></div>
<div><a title="Category" href="/shop/by,category_name?keyword=" class="btn btn-xs btn-default btn-block">Category</a></div>
<div><a title="Manufacturer name" href="/shop/by,mf_name?keyword=" class="btn btn-xs btn-default btn-block">Manufacturer name</a></div>
<div><a title="Ordering" href="/shop/by,ordering?keyword=" class="btn btn-xs btn-default btn-block">Ordering</a></div>
</div>
you need to parse the html to get the titles and links, then construct a select from it.. with some JS to document.location.replace(this.value); on change
this can be done with a function called from the cat template
but maybe it would be better to ask the devs to return this in a nicer format
Yes, you can change this, but it need a Product model class override to include sort by reviews
And of course a template overide to modify the order by list options.
You can contact me in my shop https://shop.st42.fr/fr/vendor/joomla-download-shop/contact (https://shop.st42.fr/fr/vendor/joomla-download-shop/contact) if you want hire me.
Hello, it is not importnat to sort it according to reviews. Just change current design to suggest one.
But I do not know JS well, can you please advice me more deeply?
Thank you very much
I really doubt you are going to get someone to code this for you for free... either u know how to do this or you don't
I found out that it is ok for me to have it in this form:
<div class="orderlist collapse">
<?php
$uri = & JFactory::getURI();
$absolute_url = $uri->toString();
?>
<div><a title="Product Name" href="<?php echo $absolute_url; ?>/by,product_name?keyword=" class="orderbynew_name">Zoradiť podľa názvu</a></div>
<div><a title="Product Price" href="<?php echo $absolute_url; ?>/by,product_price.html?keyword=" class="orderbynew_price">Zoradiť podľa ceny</a>
</div>
<div><a title="Product Price" href="<?php echo $absolute_url; ?>/by,product_price/dirDesc?keyword=" class="orderbynew_price">Zoradiť od najdrahšieho</a></div>
</div>
Problem is that when I use one of this options, my absolute adres contains also condiotion /by.product.... Can you please help me how to fix it?
Thank you
str_replace ?
https://www.w3schools.com/php/func_string_str_replace.asp
Can you explain me me how do you think it please?
remove /by.product.... from $absolute_url?
Thank you very much, it is done already.
Hello,
I find one more problem and it is that when I choose that I want to show more products per page, for example 60, I cannot use order by form correctly.
It is caused due to change in URL:
Correct: https://smartobchod.sk/mobilne-telefony-a-tablety/mobilne-telefony.html/by,product_price.html?keyword=
If I change q-ty --> Incorrect: https://smartobchod.sk/mobilne-telefony-a-tablety/mobilne-telefony.html?limit=60/by,product_price.html?keyword=
There is "limit=60" but this I cannot remove.
Can you please advice me how to fix it?
My code is:
$uri = & JFactory::getURI();
$absolute_url = $uri->toString();
$appended_path = array("/by,product_price/dirDesc.html?keyword=", "/by,product_price.html?keyword=", "/by,product_name.html?keyword=");
$absolute_url_final = str_replace($appended_path,"",$absolute_url); ?>
<div><a title="Product Name" href="<?php echo $absolute_url_final; ?>/by,product_name.html?keyword=" class="orderbynew_name">Podľa názvu</a></div>
<div><a title="Product Price" href="<?php echo $absolute_url_final; ?>/by,product_price.html?keyword=" class="orderbynew_price">Najlacnejšie</a></div>
<div><a title="Product Price" href="<?php echo $absolute_url_final; ?>/by,product_price/dirDesc.html?keyword=" class="orderbynew_price">Najdrahšie</a></div>
As sad Patrick - this is custom developping, you can sent email him, I think is not solution for free forum :)
Every new eshop for client we customized, in this eshop we added sort by stock:
https://www.kolo-park.cz/obchod/kola-a-elektrokola/radit_podle,stav_zasob?keyword=