News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Multivariants<<<<<<<<<SOLVED>>>>>>>>>

Started by erhabe, April 23, 2015, 14:59:28 PM

Previous topic - Next topic

erhabe

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/off-road/atv

Studio 42

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

erhabe

#2
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

Update : Page titles are not changing

Studio 42

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

jjk

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.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

erhabe

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>>>>>>>>>