VirtueMart Forum

VirtueMart 2 + 3 + 4 => Installation, Migration & Upgrade => Topic started by: Henrik Holm Nielsen on May 30, 2017, 14:14:46 PM

Title: A few bumps testing upgrade from 3.0.16 to 3.2.3
Post by: Henrik Holm Nielsen on May 30, 2017, 14:14:46 PM
Hi,

I'm doing a testupgrade from 3.0.16 to 3.2.3, so I can upgrade Joomla to 3.7.2.

First - I have upgraded directly from VM 3.0.16 to 3.2.3 and the Joomla from 3.6.5 to 3.7.2.

However - a few minor issues and questions occur, which I hope somebody can comment on.

1. For showing product categories, I'm using the "products_horizon" sublayout, which I have set globally in Configuration, Templates, Templates and Layouts - but this does not seem to take effect. I have to set this on the actual product category, for it to take effect. Since I have a lot of product categories (200+), and would like to avoid having to go through them all, I was wondering if I'm setting this the wrong way or place for it to take effect globally?

2. On the product details page, I used to be able to show other categories at the bottom of the page - but this I can't figure out where and how to configure in VM 3.2.3? You can see the difference on my testsite (http://design.2ndlevel.dk/ebikecenter/tilbehor/cykelgarager/pierrot-cykelgarage-detaljer) and on the live site (https://www.ebikecenter.dk/tilbehor/cykelgarager/pierrot-cykelgarage-detaljer)
In Configuration, Templates, Templates and Layouts I do have ticked the option "Display Subcategories in product detail" but this down not change anything (which I guess makes sense, as the categories I want to show, are not subcategories to the one my product is located in).

Should I have upgraded in steps from 3.0.16 to 3.0.18 and then moving on? Or is it OK to go directly to 3.2.3?

Any pointers you could give me?

Cheers
Title: Re: A few bumps testing upgrade from 3.0.16 to 3.2.3
Post by: Milbo on May 30, 2017, 14:45:11 PM
Quote from: Henrik Holm Nielsen on May 30, 2017, 14:14:46 PM
Hi,

I'm doing a testupgrade from 3.0.16 to 3.2.3, so I can upgrade Joomla to 3.7.2.

First - I have upgraded directly from VM 3.0.16 to 3.2.3 and the Joomla from 3.6.5 to 3.7.2.
The right way to go. You could even jump from vm2.6.x to vm3.2


Quote from: Henrik Holm Nielsen on May 30, 2017, 14:14:46 PMI was wondering if I'm setting this the wrong way or place for it to take effect globally?
http://forum.virtuemart.net/index.php?topic=137598.0

Quote from: Henrik Holm Nielsen on May 30, 2017, 14:14:46 PM
2. On the product details page, I used to be able to show other categories at the bottom of the page - but this I can't figure out where and how to configure in VM 3.2.3?
and old override, which uses the old setting showCategories, the new setting has another name "cat_productdetails". So check your layout override "default.php" at the end of the file (above the js stuff)


// Show child categories
if ($this->cat_productdetails)  {
echo $this->loadTemplate('showcategory');
}
Title: Re: A few bumps testing upgrade from 3.0.16 to 3.2.3
Post by: Henrik Holm Nielsen on June 05, 2017, 11:59:05 AM
Thanx for your reply Milbo!

Nice to hear, I took the correct path :)
And great link to description, showing the way the settings take precedence - appreciate it!

About the override - you were complete right - I did have an old layout override, with the old setting for showCategories.
However - ever after having changed the override, I still don't get the same result as with 3.0.16.

Now - with the links provided above, I show a product placed in a childcategory with no other childcategories below. So actually the code works as it is supposed to, because if I look at products in categories, with childcategories below - they are shown on the productdetails page as expected.

But - before with 3.0.16 it seems the entire branch of categories was shown, when the "Show childcategories on productdetails" was set. Was this a "bug" in v. 3.0.16?
Is there any way I can do the same in v. 3.2.3 - showing all the entire branch of categories for the selected product, and not just the sub/childcategories?

Cheers ;)
Title: Re: A few bumps testing upgrade from 3.0.16 to 3.2.3
Post by: Milbo on June 06, 2017, 13:16:34 PM
I think it would need an hidden option in the view.html.php. Typical job for a silver membership.

http://extensions.virtuemart.net/product/products/virtuemart-supporter-membership-silver-detail (just enter the domain for your shop to buy a membership)
Title: Re: A few bumps testing upgrade from 3.0.16 to 3.2.3
Post by: Henrik Holm Nielsen on June 08, 2017, 11:46:58 AM
Thanx a lot - I'll sign up for a Silver Membership and get back when I have talked to my customer :)

Cheers