Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Virtuemart Template - CleanMart (SKU# FLEX-00015)

TOPIC: select shipping method spins forever

select shipping method spins forever 9 years 2 weeks ago #12421

In checkout area, when I click "Select Shipment", the wheel spins forever. I've tried renaming the com_virtuemart override folder to com_virtuemart1, and correct shipment options come up without the override, so I believe it's a problem with the cleanmart template. In Template CSS Styles & Javascripts, the only button unchecked is "Use External gogle jQuery library"

I'm using J.3.4.1 + VM.3.0.6.2 with Cleanmart template 3.2
Last Edit: 9 years 2 weeks ago by A Fisher.
The administrator has disabled public write access.

select shipping method spins forever 9 years 2 weeks ago #12450

hi,

Not able to SAVE shipping rate problem, or not able to loading shipping rates via AJAX happens when a 3rd party shipping plugin (e.i: USPS, UPS shipping rate plugins) are used. The AJAX loading must be turned off to run those shipping plugins. There is a parameter in the backend for this in CleanMart v3.2. No hard coding is necessary.

Upgrade the CleanMar (the latest version is CleanMart v3.2) and form the Flexible VM3 Template plugin, disable this option:

Attachment Pasted_Image_4_3_15__11_39_PM.png not found



Regards
The administrator has disabled public write access.

select shipping method spins forever 9 years 2 weeks ago #12455

Thanks.

When I deactivate the option you show below, it does allow me to choose the shipping method via an unattractive, secondary screen.

I am using version Cleanmart version 3.2, however, and I'm only using weight_countries shipping methods without any 3rd party shipping rate plugins. In fact, I've tried deleting all my shipping rules, adding only a single test rule for free shipping using weight_countries, and I still have the same problem unless I deactivate the AJAX feature. (My site needs a dozen weight_countries shipping rules to work correctly.)

Can you think of anything else that could be causing this issue? I even tried deploying the jqueryeasy hack, and that didn't help, either.
The administrator has disabled public write access.

select shipping method spins forever 9 years 2 days ago #12507

Hi,

This problem has already been fixed with CleanMart v3.3. But to fix this problem without the update, open this PHP file:
/templates/YOUR_TEMPLATE/html/com_virtuemart/cart/select_shipping.php

replace all the lines in it with the lines below
<?php
/*------------------------------------------------------------------------
 # Virtuemart Template - CleanMart
 # ------------------------------------------------------------------------
 # Copyright (C) 2009-2014 Flexible Web Design. All Rights Reserved.
 # @license http://www.gnu.org/licenses/gpl-3.0.html GNU/GPLv3
 # Author: Flexible Web Design
 # Website: http://www.flexiblewebdesign.com
 # Email: [email protected]
 -------------------------------------------------------------------------*/
defined('_JEXEC') or die('Restricted access');
include_once dirname(__FILE__) . '/../assets/includes/flexibleMartGlobal.php';
?>
 
<div id="loadShippings"> 
<?php $buttonclass = 'default';  ?> 
<?php if (!$params->get('flexible_ajax_shipping',1)) { ?>
	<form method="post" id="userForm" name="chooseShipmentRate" action="<?php echo JRoute::_('index.php'); ?>" class="form-validate">
<?php }?>
 
<? echo "<div id=\"checkoutbarInner\" class=\"active\">".JText::_('COM_VIRTUEMART_CART_SELECT_SHIPMENT')."</div>";    
 if ($this->found_shipment_method) { ?>
	<div class="floatright">
	<button class="<?php echo $buttonclass ?>" type="submit" ><?php echo JText::_('COM_VIRTUEMART_SAVE'); ?></button>  &nbsp;
	<button class="<?php echo $buttonclass ?>" type="reset" onClick="window.location.href='<?php echo JRoute::_('index.php?option=com_virtuemart&view=cart'); ?>'" ><?php echo JText::_('COM_VIRTUEMART_CANCEL'); ?></button>
	</div>
	 <?php  echo "<fieldset>\n";
	// if only one Shipment , should be checked by default
	    foreach ($this->shipments_shipment_rates as $shipment_shipment_rates) {
		if (is_array($shipment_shipment_rates)) {
		    foreach ($shipment_shipment_rates as $shipment_shipment_rate) {
			echo $shipment_shipment_rate."<br />\n";
		    }
		}
	    }
	    echo "</fieldset>\n";
 } else {
	 echo '<dl id="system-message">
<dd class="info message">
<ul>
<li>'.JTEXT::_('PLG_FLEXIBLE_REGISTER_FOR_SHIPPING_RATES').'</li>
 </ul>
</dd>
</dl>';
    }
    ?>
   <input type="hidden" name="option" value="com_virtuemart" />
    <input type="hidden" name="view" value="cart" />
    <input type="hidden" name="task" value="updatecart" />
    <input type="hidden" name="controller" value="cart" />
<?php if (!$params->get('flexible_ajax_shipping',1)) { ?>
	</form>
<?php }?>
</div>


This patch has been TESTED and CONFIRMED.

regards.
Last Edit: 9 years 2 days ago by Support.
The administrator has disabled public write access.
Time to create page: 0.163 seconds

MaterialMart

for Virtuemart 3

Google's Material Design has finally arrived to Virtuemart

Virtumart Template - MaterialMart Virtumart Template - CleanMart Virtumart Template - CleanMart Virtumart Template - CleanMart

Fully responsive!

Buy Now   |   Live Demo