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

TOPIC: Ajax problem

Ajax problem 10 years 4 months ago #7317

Hello.
My site vintage.preart.kylos.pl/

When I add something to the cart and try to checkout, I have a problem with saving payment and shipment method.
When I am in the cart the url is: vintage.preart.kylos.pl/cart
When I save for example payment first, url changes to vintage.preart.kylos.pl
and when I try to open shipment methods, instead of them I see copy of page like in atachement file. (Try on page)
How can I fix this?

Attachment fad77ef838.png not found

The topic has been locked.

Ajax problem 10 years 4 months ago #7336

Hi,

You may try this trick which i believe will solve the issue you are having.

Open this PHP file:
/templates/YOUR_TEMPLATE/html/com_virtuemart/cart/select_payment.php

and look for this line;
<form method="post" id="paymentForm" target="_parent" name="choosePaymentRate" action="<?php echo JRoute::_('index.php'); ?>" class="form-validate">

replace it with this:
<form method="post" id="paymentForm" target="_parent" name="choosePaymentRate" action="<?php echo JRoute::_('index.php?option=com_virtuemart&view=cart'); ?>" class="form-validate">

Then open this PHP file:
/templates/YOUR_TEMPLATE/html/com_virtuemart/cart/select_shipment.php

and look for this line;
<form method="post" id="userForm" target="_parent" name="chooseShipmentRate" action="<?php echo JRoute::_('index.php'); ?>" class="form-validate">

replace it with this:
<form method="post" id="userForm" target="_parent" name="chooseShipmentRate" action="<?php echo JRoute::_('index.php?option=com_virtuemart&view=cart'); ?>" class="form-validate">


So visitor will get back to vintage.preart.kylos.pl/cart page after they select their payment or shipping method. I am sure this will eliminate the issue you are having.

Regards,
Support & Development
Last Edit: 10 years 4 months ago by Support.
The topic has been locked.

Ajax problem 10 years 4 months ago #7341

Thank You. That worked.
The topic has been locked.

Ajax problem 10 years 4 months ago #7346

I am glad it worked out.

Case solved. Topic closed.

Regards,
Support
The topic has been locked.
Time to create page: 0.166 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