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

TOPIC: checkout issues on new install of cleanmart

checkout issues on new install of cleanmart 7 years 9 months ago #14332

Hello - I have purchased your product this weekend and am just finding my feet with it. Apologies if it's just be doing something wrong.
BASE URL of store is www.sysfix.co.uk/store/


Add a product to checkout, go to checkout and here comes a request to log in or become a member.
Now at this stage:
1. I cannot see an option anywhere to LOGIN
2. When I click bill to or ship to, it starts to open a modal but instead moves swiftly on to a page outside of my website.

Your page > demo.flexiblewebdesign.com/cleanmart/index.php?option=com_virtuemart&view=cart
is completely different to what shows on mine

If I rename /template/mine/html/com_virtuemart/cart to cartx (eg - as if it's not there), I see the latout attached.
I can therefore only assume the reason it doesnt work is down to a file or setting relating to the cart folder.
Attachments:
Last Edit: 7 years 9 months ago by London. Reason: additional information
The administrator has disabled public write access.

checkout issues on new install of cleanmart 7 years 9 months ago #14340

Hi,

Try this:

- First of all, make sure you are using VM 3.0.16 and VM AIO v3.0.16
- Rename /template/mine/html/com_virtuemart/cartx back to cart
- Make sure you have these settings in the VM Configuration >> Checkout

Attachment Pasted_Image_6_27_16__6_29_PM.png not found



If still no luck (leave the /cart/ as it is) and let me know.. i will deeply investigate your case

Regards
The administrator has disabled public write access.

checkout issues on new install of cleanmart 7 years 9 months ago #14343

Yes sir I have these settings applied already.
The administrator has disabled public write access.

checkout issues on new install of cleanmart 7 years 9 months ago #14352

Hi,

It is happening because you set the "GB" as the default country (via VM Backend >> User fields). So; this "default country" applies to even to the guest users. Since, the user has a "field" in the profile, our template thinks this user has provided address via Guest Checkout featire.

You should apply one of these patches:

Patch #1:
Navigate to VM Backend >> Shopper Field and edit the field_name: "virtuemart_country_id", remove the "Default" value (it is GB in your case)

If you insists on keeping the GB as your defualt country, then you should follow the 2nd patch

Patch #2:
1- open this PHP file: /templates/YOUR_TEMPLATE/html/com_virtuemart/cart/default_pricelist.php

2- find this line:
if (!$checkUserFields && $user->guest) {
3- replace it with this:
if ((!$checkUserFields || $checkUserFields == 'GB') && $user->guest) {

4- open this PHP file: /templates/YOUR_TEMPLATE/html/com_virtuemart/cart/default_address.php

5- find this line:
if ($checkUserFields) {
6- replace it with this:
if ($checkUserFields and $checkUserFields != 'GB') {

Either one of the patches will solve the problem you have.

Regards.
Last Edit: 7 years 9 months ago by Support.
The administrator has disabled public write access.

checkout issues on new install of cleanmart 7 years 9 months ago #14353

Thank you sir, I have made both changes so that I can swap between at any time without having to think too much about what I changed. All working.

Can you send me a private message about coding. Are you able to customise something for me, nothing to do with your template but virtuemart. I need some code to check what was purchased and if it equals a particular product, I need it to run a script. Thanks
The administrator has disabled public write access.

checkout issues on new install of cleanmart 7 years 9 months ago #14354

One more thing - It still does not open in a popup. Can you please check
There's a product in "Networking" TEST Product that you can add.

FYI - JQuery seems to work as modals are workingt hroughout my site and with adding products to cart, image zoom etc so must be something else.
Last Edit: 7 years 9 months ago by London.
The administrator has disabled public write access.

checkout issues on new install of cleanmart 7 years 9 months ago #14355

For the benefit of other users, adding the code mentioned still causes an issue on the edit address page
Error vmError: Model Userfields, country with id GB not found

When you edit shipping or billing address.
The administrator has disabled public write access.

checkout issues on new install of cleanmart 7 years 9 months ago #14357

Hi,

You can send email to This email address is being protected from spambots. You need JavaScript enabled to view it. and explain the "customization" you need. We are charging $59/hour for the customization service. If you explain your needs (by providing URLs with all the details) we will be able to determine how many hours your case would require and then give you a quote.

More info: flexiblewebdesign.com/premium-support

Error vmError: Model Userfields, country with id GB not found

That error is normal, because GB is not a valid ID for any country. You should use the ID (number) for the country. For instance it is 223 for US and 222 for UK, but i can't be sure what it is for GB, check your Virtuemart Backend to figure out what its ID is.. (i suppose you have created Great Britain manually, because by default it is not exist)

Regards.
Last Edit: 7 years 9 months ago by Support.
The administrator has disabled public write access.

checkout issues on new install of cleanmart 7 years 9 months ago #14359

Thanks.
So lastly can you fix the issue with the modal popup not working as described above. It takes the user to a new page at checkout. All other modals work.
The administrator has disabled public write access.

checkout issues on new install of cleanmart 7 years 9 months ago #14366

Guys, it's been 5 days since we asked for support with no response.
The administrator has disabled public write access.

checkout issues on new install of cleanmart 7 years 9 months ago #14369

8 days and no response. What's going on?
We've paid for support and we are not getting it?
The administrator has disabled public write access.

checkout issues on new install of cleanmart 7 years 9 months ago #14374

Hi,

Sorry for the late reply.

As i am seeing, your Joomla has an iframe protection, which blocks loading this URL: www.sysfix.co.uk/store/guest-checkout.html?flexible=guest&tmpl=component inside the modal popup. That page must be loaded within an iframe in the modal popup, so everything will be good to go.

Most likely, a 3rd party Joomla plugin is responsible for that. Disable that plugin completely, or disable the iframe protection from the plugin settings

Regards.
The administrator has disabled public write access.

checkout issues on new install of cleanmart 7 years 9 months ago #14381

I don't think it's anything to do with that because modals work throughout virtuemart elsewhere. We also use iFrames in other scenarios and they work fine also.
The administrator has disabled public write access.

checkout issues on new install of cleanmart 7 years 9 months ago #14396

Hi,

This case is really interesting, because if you try to load these two URLs :

www.sysfix.co.uk/store/guest-checkout.html?flexible=register&tmpl=component
www.sysfix.co.uk/store/guest-checkout.html?tmpl=component&flexible=register

They are basically the same thing, but the 1st one doesn't work, which is the URL when you click the "Register" button on checkout page. But the 2nd one works fine and opens the page in a component wrapper.

Did you try to disable the protections? Because you have some javaScript lines to avoid highlighting, right-clicking etc..

Regards.
The administrator has disabled public write access.

checkout issues on new install of cleanmart 7 years 9 months ago #14397

after further investigation, i noticed the iframe protection on your website. Either you don't know what you are doing, or you are using a plugin that you don't know what it is doing.

Disable the protection (if you did them manually) or unpublished the plugin if it applies these protection for you. Then try again if it sorts things out.

Your website has an iframe protection. That's for sure due this JS line:
if (top!==self) {
		top.location=location;
	}

Modals will work throughout your website, because those modals are based on DIV replacement. Not all modals work based on iframe. There are dozens of ways to run a modal popup. The "Registration" modal works based on iFrame.

Regards.
The administrator has disabled public write access.

checkout issues on new install of cleanmart 7 years 9 months ago #14401

I disabled the plugin "anticopy" however now it looks even worse as it's my entire website duplicated in an iframe although pop up works
The administrator has disabled public write access.

checkout issues on new install of cleanmart 7 years 9 months ago #14408

Hi,

Okay, i noticed that popup works, this is a progress.

FYI: If you noticed, the "Guest Checkout" popup works just fine. Only "Register and Checkout" button is problematic because you have targeted menu-item for this URL. Joomla generates SEF URL for that url which mess things up.

FYI: The URL inside the popup is this:
www.sysfix.co.uk/store/guest-checkout.html?flexible=register&tmpl=component
but it should have been this:
www.sysfix.co.uk/store/guest-checkout.html?tmpl=component&flexible=register

Those 2 URLs are practically the same thing, but your Joomla behaves them differently.

Try this;

- Open this PHP file: /templates/YOUR_TEMPLATE/html/com_virtuemart/user/login.php
- find this line:
<a class="flexibleButton flexibleModal" 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>

-Replace it with this:
<a class="flexibleButton flexibleModal" href="/store/guest-checkout.html?tmpl=component&flexible=register" title="<?php echo JText::_('COM_VIRTUEMART_REGISTER_AND_CHECKOUT'); ?>"><?php echo JText::_('COM_VIRTUEMART_REGISTER_AND_CHECKOUT'); ?></a>

Alternatively you can try to "remove" the menu-item that has this SEF URL: "guest-checkout" (don't just unpublished it, instead remove it completely)

Regards.
The administrator has disabled public write access.
Time to create page: 0.281 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