News:

Looking for documentation? Take a look on our wiki

Main Menu

Solved Sort order bug in 2.0.4...2.0.8

Started by Urs, April 10, 2012, 10:18:18 AM

Previous topic - Next topic

NRE

#30
Please fix this bug!
I've tryed with adamo fix with no luck and now I'm desperate ... my customer want kill me :)

UPDATE:
I've upgrated to latest version 2.0.10 and I've this situation (ex: 4 products):
1) by pressing "reorder" I get wrong order values for products (ex: 16, 35, 70, 76) and I  don't know where they came from, because in my DB order values are 1,2,3,4
2) if I edit the order number and then press save on the right of the label "reorder", no changes are saved and order values remain the same (and wrong)

I've tryed with Adamo fix and now I can see the correct values (1,2,3,4) but reordering arrows are inverted and save button still doesn't work except if I've a product set to 0 and want to save at position 1 (from 0 to 1, only in this case).

Thank you

rootfrequenz

Quote from: BaidareW on July 05, 2012, 22:03:44 PM
This is not solved 100%. One part of annoying bus is solved (not set to 1 after product edit and not set all to 1 after pressing save is solved) : manual sorting still not work if write sort order numbers by hand.

I have the problem, actually. We want order the items in category manually, but this still not work if write the numbers by hand in the fields (the save-sequence button )  This is very important.

What is the problem?

Thank you and kind regards

jthrongard

Quote from: adamo on July 10, 2012, 09:39:26 AM
I find problem - wrong catogory id to ordering product. Must change function getProductSingle() in administrator/components/com_virtuemart/models/product.php

/* Load the categories the product is in */
$product->categories = $this->getProductCategories($this->_id);
$virtuemart_category_id2 = JRequest::getInt('virtuemart_category_id', 0);//add this line


if ( !empty($product->categories) and is_array($product->categories) and !empty($product->categories[0]) ){
$product->virtuemart_category_id = $product->categories[0];
$q = 'SELECT `ordering`,`id` FROM `#__virtuemart_product_categories`
WHERE `virtuemart_product_id` = "'.$this->_id.'" and `virtuemart_category_id`= "'.$virtuemart_category_id2.'" ';//change this line
$this->_db->setQuery($q);
// change for faster ordering
$ordering = $this->_db->loadObject();
if(!empty($ordering)){
$product->ordering = $ordering->ordering;
$product->id = $ordering->id;
}

}
$ordering = $this->_db->loadObject();
if(!empty($ordering)){
$product->ordering = $ordering->ordering;
$product->id = $ordering->id;
}

}


Was this ever confirmed to work?  What code do we replace?
Small Business Joomla! Website Design - Simple CMS Design
http://www.simplecmsdesign.com

MvdO

Why is this marked "Solved". It's still not working. Like said earlier. This is very important for our customers

MvdO

I've updated my VM to the latest version... still nothing :(

nirit

Thanks Adamo, I tried your code and it works like a charm! now I can order the products in Virtuemart manually.

oremy

hi MILBO! :)

I have VM 2.0.6 and I need to fix this bug (at this moment I can't update VM)

I tray to fix with code of ADAMO... but nothing change.

Can you explain me wich fix I have to do exactly?

Thanks so much

Maxim Pishnyak

Quote from: oremy on September 30, 2013, 09:39:10 AM
at this moment I can't update VM
As a couple years before this moment too I guess.
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

oremy

Please...don't Askatasuna me tris :-)

Can You help me?

oremy

Hi!

I updated to the last versione of VM.... BUT....
now we have some problems with:

- addtocart button doesn't work
- lightbox doesnt work
- additional images in product haven't click for zoom (lightbox)

We try to fix this issue with JqueryEasy Plugin.
But nothing is changed


Can you solve this? :)

Thanks



Maxim Pishnyak

You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

oremy


Maxim Pishnyak

You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart