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

TOPIC: Modal Box Issue

Modal Box Issue 11 years 6 months ago #199

I had to begin a new thread for this as it is a different issue.

Presently in your template the Register as Checkout and Checkout as Guest open up in modal box. I want this to open up on the page, not in a box. Is that possible?

Deepak
The topic has been locked.

Modal Box Issue 11 years 6 months ago #205

Hi,

It will require some PHP code editings. You can do it by yourself, just follow my steps:
open this PHP file:
/templates/<yourjoomlatemplatefolder/html/com_virtuemart/user/login.php

and find this line:
<a class="FlexibleResgiterButton" rel="facebox" rev="iframe|480|560" href="<?php echo JRoute::_('index.php?option=com_virtuemart&view=user&task=editaddresscart&addrtype=BT&tmpl=component&flexible=register',$this->useXHTML,$this->useSSL) ?>" title="<?php echo JText::_('COM_VIRTUEMART_REGISTER_AND_CHECKOUT'); ?>"><?php echo JText::_('COM_VIRTUEMART_REGISTER_AND_CHECKOUT'); ?></a>

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


To do it for "Checkout as Guest" button as well (basically you are going to do the same thing)
Find this line:
<a class="FlexibleGuestButton" rel="facebox" rev="iframe|480|560" href="<?php echo JRoute::_('index.php?option=com_virtuemart&view=user&task=editaddresscart&addrtype=BT&tmpl=component&flexible=guest',$this->useXHTML,$this->useSSL) ?>" title="<?php echo JText::_('COM_VIRTUEMART_CHECKOUT_AS_GUEST'); ?>"><?php echo JText::_('COM_VIRTUEMART_CHECKOUT_AS_GUEST'); ?></a>

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

Modal Box Issue 11 years 6 months ago #401

Hi again,

Could you please also tell me how to open ""Ädd/Edit Billing Address information"" in a new page and NOT in the modal box.

Thanks.

Deepak
The topic has been locked.

Modal Box Issue 11 years 6 months ago #408

Hi,

Normally i shouldn't have provided you those patches as they are all custom modifications. And our free support doesn't include any kind of custom modifications.

But here is your patch; For the rest, you can take care of it by the same idea:

Open this PHP file:

/templates/<yourjoomlatemplatefolder/html/com_virtuemart/cart/default_pricelist.php

Find the PHP line below and remove the RED texts. Then the page will open in a page, instead of "modal-popup".

<a class="details" rel="facebox" rev="iframe|480|560" href="<?php echo JRoute::_('index.php?option=com_virtuemart&view=user&task=editaddresscart&addrtype=BT&tmpl=component&flexible=edit',$this->useXHTML,$this->useSSL) ?>">
<?php echo JText::_('COM_VIRTUEMART_USER_FORM_EDIT_BILLTO_LBL'); ?>
</a>


Cheers.
The topic has been locked.

Modal Box Issue 11 years 4 months ago #1331

Hello again,

This solution had worked fine. But I had forgotten to ask you what to do about the Add/Edit SHIPMENT Address.

Could you kindly tell me what to do about the modal box issue for Add/Edit SHIPMENT Address as I want even this to open up in a new page and not the modal box

Thanks.

Deepak Dhingra
The topic has been locked.

Modal Box Issue 11 years 4 months ago #1347

Could you please reply to this?

Deepak
The topic has been locked.

Modal Box Issue 11 years 4 months ago #1361

Open this PHP file:
www.alaconcierge.com/templates/yoo_cloud/html/com_virtuemart/user/login.php

and look around the 172th lines, the original Code to generate the button which opens in the page in a modal box is this:
<a class="FlexibleResgiterButton" rel="facebox" rev="iframe|480|560" href="<?php echo JRoute::_('index.php?option=com_virtuemart&view=user&task=editaddresscart&addrtype=BT&tmpl=component&flexible=register',$this->useXHTML,$this->useSSL) ?>" title="<?php echo JText::_('COM_VIRTUEMART_REGISTER_AND_CHECKOUT'); ?>"><?php echo JText::_('COM_VIRTUEMART_REGISTER_AND_CHECKOUT'); ?></a>

If you want to disable that modal box completely, and have the page opens in a regular page, then you should replace it with this:
<a class="FlexibleResgiterButton"  href="<?php echo JRoute::_('index.php?option=com_virtuemart&view=user&task=editaddresscart&addrtype=BT&flexible=register',$this->useXHTML,$this->useSSL) ?>" title="<?php echo JText::_('COM_VIRTUEMART_REGISTER_AND_CHECKOUT'); ?>"><?php echo JText::_('COM_VIRTUEMART_REGISTER_AND_CHECKOUT'); ?></a>

which doesn't have rel="facebox" rev="iframe|480|560" but also doesn't have &tmpl=component as well.

So the "registration form" will be open in a regular page, instead of "popup modal box"
The result will be:

ScreenShot2012-11-23at3.13.49PM.png


Forum Support.
The topic has been locked.

Modal Box Issue 11 years 4 months ago #1367

Thanks for your info.

BUT I asked for the Add/Edit Shipment page, NOT the Registration Page

Please provide me the correct info now.

Thanks again.

Deepak
The topic has been locked.

Modal Box Issue 11 years 4 months ago #1368

Also, whenever a customer saves his shipping address it is saved in the backend but is not shown to the customer. He can see his billing address but not his shipping address.

Deepak
The topic has been locked.

Modal Box Issue 11 years 4 months ago #1369

I got where I have to edit

Open this PHP file:

/templates/<yourjoomlatemplatefolder/html/com_virtuemart/cart/default_pricelist.php

Same thing

basically find this -

<br/><a class="details" rel="facebox" rev="iframe|480|560" href="<?php echo JRoute::_('index.php?option=com_virtuemart&view=user&task=editaddresscart&tmpl=component&flexible=shipping&addrtype=ST&cid

and remove the rel="facebox" rev="iframe|480|560" and also remove the &tmpl=component

Thats it.

But the problem of the address not being saved still persists. And in core virtuemart it works ok. I hope you understand what I am saying. Suppose I save my shipping address now and order and logout. The I log back in and then I do not see the shipping address I saved earlier. The billing address can be seen but not the shipping address.

And I checked in the backend. It is being saved in the database. Its just not being seen on the front end.

Please let me know what to do about this issue.

Thanks.

Deepak
The topic has been locked.

Modal Box Issue 11 years 4 months ago #1379

Saving an another address as "shipping address" feature has come with VM2.0.12, it was buggy in previous Virtuemart releases, if you don't have the most recent version of our VM Template, that might be the reason of that issue. Because we also updated our VM Template to fix this confusion. Which i am seeing from your website you don't have it.

But you don't need to reolace everything which will eliminate your customization changes.
First get the new version of our VM Template, UNZIP it and then take only those 2 files:
/cart/default.php
/cart/default_pricelist.php

And overwrite them with the ones in your server.
That problem, shipping address issue will be fixed by itself.
I just sent you the new version of our VM Template to your email address.

Cheers.
The topic has been locked.

Modal Box Issue 11 years 3 months ago #1411

Thanks for your help.

I am testing this with VM 2.0.12 on a local site and funnily, the Billing Address and the Shipping Address are just not seen.

Have attached 2 file for our reference with Flexible Template and Normal VM.

What could be the problem?

Deepak
Last Edit: 11 years 3 months ago by Deepak Dhingra.
The topic has been locked.

Modal Box Issue 11 years 3 months ago #1414

Looks like my WAMP may have issues with PHP. I tested this on a live server and it works perfect.

All issues resolved.

Thank you for you good support.

Deepak
The topic has been locked.

Modal Box Issue 11 years 3 months ago #1419

Your welcome.

Case solved. Topic is closed.
The topic has been locked.
Time to create page: 0.236 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