VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: erhabe on April 23, 2015, 14:59:28 PM

Title: Multivariants<<<<<<<<<SOLVED>>>>>>>>>
Post by: erhabe on April 23, 2015, 14:59:28 PM
Hello

I am using J 3.4.1 and VN 3.0.8

On frontpage when i select one variant i go on product page.But when i select a variant from category page the url change but the page remains to category instead to move to pageproduct.
The plugin used is generic child variant
http://test.sportmaniax.ro/en
(http://test.sportmaniax.ro/en)
http://test.sportmaniax.ro/en/off-road/atv (http://test.sportmaniax.ro/en/off-road/atv)
Title: Re: Multivariants
Post by: Studio 42 on April 23, 2015, 16:53:10 PM
Hi,
I think, the problem is not that the page is not redirected, but the url and content is load by ajax.

this comes from here
    Virtuemart.upd = function(event) {
        event.preventDefault();
        var url = jQuery(this).attr('url');
        if (typeof url === typeof undefined || url === false) {
            url = jQuery(this).val();
        }
        if(url!=null){
            Virtuemart.setBrowserNewState(url);
            Virtuemart.updateContent(url);
        }
    };


the code is called in a category as if you are in a productdetails page.
because Virtuemart.updateDynamicUpdateListeners(); is called in all page without cheking if you are in the product or not.
I do not provide you a solution because each time, i have a bad discussion with max.
Please wait that an active developper read the post.

Patrick
Title: Re: Multivariants
Post by: erhabe on April 23, 2015, 17:50:52 PM
But on homepage everything is ok the page is loaded.
Here on product page is ok

http://test.sportmaniax.ro/en/off-road/atv/trv-1000i-ps-detail (http://test.sportmaniax.ro/en/off-road/atv/trv-1000i-ps-detail)

Update : Page titles are not changing
Title: Re: Multivariants
Post by: Studio 42 on April 23, 2015, 18:40:18 PM
The problem is not to know if the javasccript work or not, simply that this is set in category page as if the category was the product details page.
I don't give any code solution for this javascripts or milbo say I complain again
Title: Re: Multivariants
Post by: jjk on April 24, 2015, 13:14:34 PM
When I look at your shop from here, I don't see the problem you described. When I select a variant, it goes to the product details page, both from the frontpage view and the category views.
Title: Re: Multivariants
Post by: erhabe on April 24, 2015, 14:34:01 PM
Thats becouse i disabled the ajax script for products and everything is ok .

The SOLUTION is to disable ajax script for products on backend.


<<<<<<<<<SOLVED>>>>>>>>>