News:

Looking for documentation? Take a look on our wiki

Main Menu

Generic Child variant not redirecting

Started by chill_e_g, August 09, 2016, 13:15:57 PM

Previous topic - Next topic

chill_e_g

Help with this please not sure where to start. VM 3.0.16

Please check this url : http://test.razostyle.co.za/wc/index.php/online-shop
Choose size and see the url changes correctly, but the page does not refresh. If you refresh the browser the details page loads correctly. Any ideas please, I am sure I saw this working and now it is not.

Milbo

#1
There is one wrong line in vm3.0.16 layout, which prevents this. The simpelst is to use the new vm3.0.17.4 http://dev.virtuemart.net/projects/virtuemart/files

or remove

vmJsApi::addJScript('ajaxContent',$j);

in FE/com_virtuemart/views/category/tmpl/default.php
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

chill_e_g

Thanks for the reply, unfortunately the upgrade did not fix the issue.

Please confirm path to file to edit as suggested "in FE/com_virtuemart/views/category/tmpl/default.php" Where is "FE"?

I checked in MYTEMPLATE/com_virtuemart/views/category/tmpl/default.php but no code exists? Please assist. Thanks.

GJC Web Design

FE means front end... 

ideally you copy components/com_virtuemart/views/category/tmpl/default.php to

templates/MYTEMPLATE/com_virtuemart/html/category/default.php and do your change there

note this path is totally different from yours below.. this is the correct over ride path
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

chill_e_g

Thanks, but still have the problem with no redirect on Child Variant http://test.razostyle.co.za/wc/index.php/online-shop
I dont find the code referred to by Milbo

GJC Web Design

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

chill_e_g

Quote from: chill_e_g on August 10, 2016, 07:03:25 AM
Thanks for the reply, unfortunately the upgrade did not fix the issue.

I have fixed this by downgrading to 3.0.14


Dragoner

Hi,

I try remove this code in VM 3.0.16.
vmJsApi::addJScript('ajaxContent',$j);
not working

Then i try upgrade to VM 3.0.17.4 and if i click on product variant ehop freeze and java script make error.

http://lepidla.esovicka.cz/index.php/e-shop/tmely-pro-opravy-kovu-1

Joomla version 3.5.1.

Thanks, David

Dragoner

I found it!

I my template in category view. I paste this code to end of document


<?php 
$j 
'jQuery(document).ready(function($) {
Virtuemart.product(jQuery("form.product"));

$("form.js-recalculate").each(function(){
if ($(this).find(".product-fields").length && !$(this).find(".no-vm-bind").length) {
var id= $(this).find(\'input[name="virtuemart_product_id[]"]\').val();
Virtuemart.setproducttype($(this),id);

}
});
});'
;

$j "Virtuemart.container = jQuery('.produkt');
Virtuemart.containerSelector = '.produkt';"
;

vmJsApi::addJScript('ajaxContent',$j);

echo 
vmJsApi::writeJS();
?>



And now, it working.

fastpat27

Hi

I seem to have the same problem after updating from 3.0.14 to 3.0.18. I tried deleting the Line Milbo suggested but made no difference. Tried installing .17 and then .16 but still no difference. I have to take it back to .14 to get it working again. Would it perhaps not be compatible with my template now after the updates?

Anyone any ideas.

Thanks
FP

Joomla 3.6.2