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

TOPIC: PopUp Registration states no populating

PopUp Registration states no populating 9 years 10 months ago #10185

Hello,

I am having a problem with the states not showing up on the popup registration page. I will fill out everything and then the states do not populate thus the drop-down does not contain anything.

The button (Register and Checkout) pulls up a popup window. Use this link below to see the button:

nutritionsupplycompany.com/index.php?option=com_virtuemart&view=cart

The pop up is pulled up after clicking that button. I opened the link in a new tab to make it easier. See link below

nutritionsupplycompany.com/index.php?option=com_virtuemart&view=user&tmpl=component&flexible=register&task=editaddresscart&addrtype=BT

If I go to another page that allows a customer to sign up the state drop-down works. (this is the edit your account area) See below link:

nutritionsupplycompany.com/index.php?option=com_virtuemart&view=user&layout=editaddress&Itemid=237

This is very hard for customers that are not users and need to sign up for an account to check out. Please help.

I am running VM 2.6.6
Cleanmart 1.3
Yoothemes Template Nano3

Thanks
Chris
C...
The administrator has disabled public write access.

PopUp Registration states no populating 9 years 10 months ago #10187

Hello,

I am a web guy working with Chris. The issue is related to call in the login URL to tmpl=component. This bypasses the "flexible" template for the modal that pops up for registration. For some reason that "State" selector populates fine when using the "flexible" template but not when it is bypassed.

As a workaround I changed the URLs in templates/MY_TEMPLATE/html/com_virtuemart/user/login.php

line 181 originally reads...
<a class="FlexibleResgiterButton font2 registermodal" href="<?php echo JRoute::_('index.php?option=com_virtuemart&view=user&tmpl=component&flexible=register&task=editaddresscart&addrtype=BT',$this->useXHTML,$this->useSSL) ?>" title="<?php echo JText::_('COM_VIRTUEMART_REGISTER_AND_CHECKOUT'); ?>"><?php echo JText::_('COM_VIRTUEMART_REGISTER_AND_CHECKOUT'); ?></a>

change to...
<a class="FlexibleResgiterButton font2 registermodal" href="<?php echo JRoute::_('index.php?option=com_virtuemart&view=user&flexible=register&task=editaddresscart&addrtype=BT',$this->useXHTML,$this->useSSL) ?>" title="<?php echo JText::_('COM_VIRTUEMART_REGISTER_AND_CHECKOUT'); ?>"><?php echo JText::_('COM_VIRTUEMART_REGISTER_AND_CHECKOUT'); ?></a>

line 190 reads...
<a class="FlexibleGuestButton font2 registermodal" href="<?php echo JRoute::_('index.php?option=com_virtuemart&view=user&tmpl=component&flexible=guest&task=editaddresscart&addrtype=BT',$this->useXHTML,$this->useSSL) ?>" title="<?php echo JText::_('COM_VIRTUEMART_CHECKOUT_AS_GUEST'); ?>"><?php echo JText::_('COM_VIRTUEMART_CHECKOUT_AS_GUEST'); ?></a>

change to...
<a class="FlexibleGuestButton font2 registermodal" href="<?php echo JRoute::_('index.php?option=com_virtuemart&view=user&flexible=guest&task=editaddresscart&addrtype=BT',$this->useXHTML,$this->useSSL) ?>" title="<?php echo JText::_('COM_VIRTUEMART_CHECKOUT_AS_GUEST'); ?>"><?php echo JText::_('COM_VIRTUEMART_CHECKOUT_AS_GUEST'); ?></a>

I think I am bypassing what is supposed to be a cleaner display of the form for a the modal. If there is a way to get the states working for the cleaner look I am game. In the meantime, the site is working passably.

Thanks
C...
The administrator has disabled public write access.

PopUp Registration states no populating 9 years 10 months ago #10195

Hi,

Apparently there is something wrong with this PHP file on your server:
/templates/YOUR_TEMPLATE/component.php

when the ?tmpl=component variable is presented, the conponent.php is used to load the page's content area only (without any surroundings: header, sidebars, footer, modules etc.. just the content area)

Did you ever touch this php file?
/templates/YOUR_TEMPLATE/component.php

If you look at this URL:
nutritionsupplycompany.com/index.php?option=com_virtuemart&view=user&tmpl=component&flexible=register&task=editaddresscart&addrtype=BT

and see the source codes, you will see this:
<head>
	<meta charset="utf-8">
	<jdoc:include type="head">
</head>

<jdoc:include type="head"> should have been replaced by the CSS, JS and META tags (since the JS files are not being loaded, the States are also not loaded, because showing States based on selected Country is run by JavaScript). But apparently your Joomla Template fails to implement the HEAD section. And i can't be sure why it is happening.

FYI: ?tmpl=component can be used for any Joomla page. For example;
This URL loads the whole page:
nutritionsupplycompany.com/index.php?option=com_content&view=article&id=4&Itemid=160

This URL loads only the "content" section (which is very useful for AJAX loading or modal popups)
nutritionsupplycompany.com/index.php?option=com_content&view=article&id=4&Itemid=160&tmpl=component

But unfortunately your Joomla template fails to load the <head>..</head> section when the ?tmpl=component is being used, which is the source of the problem.

For instance, in our DEMO, see these URLs:
demo.flexiblewebdesign.com/cleanmart/index.php/vm-shopping-cart
and
demo.flexiblewebdesign.com/cleanmart/index.php/vm-shopping-cart?tmpl=component

Regards,
Support
Last Edit: 9 years 10 months ago by Support.
The administrator has disabled public write access.
Time to create page: 0.248 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