News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

One Page Checkout (responsive and user friendly)

Started by claesbas, August 15, 2015, 21:40:26 PM

Previous topic - Next topic

Studio 42

#15
Quote from: claesbas on January 30, 2016, 12:38:59 PM
We will have a check on monday!
Can you check to use namespace for you javascript as i descripted some post ago?
Some value you use are so generic that this can break all javascript.
eg
window.selectedpaymentid = 0;
var action = "";
var countrychange = "";
var popupopen = 0;


action can be reused by any javascript, popupopen too for some modal scritpt ...

So i had wrote something so :
var vmonepage = {
  "action " : "",
  "countrychange " : "",
  "popupopen " : 0,
....
}


And of course, this can include the function and don't pollute the window variables

Thanks,
Patrick

claesbas

Yes, we will see what we can do in the next few days here.
VMuikit - A Virtuemart theme for Yootheme template
https://joomlapro.com/vmuikit

VMonepage - One Page Checkout (Was free - now is €20)
https://joomlapro.com/product/virtuemart-one-page-checkout

VMKCO - Klarna Checkout Enhanced
https://joomlapro.com/product/virtuemart-klarna-checkout

claesbas

Quote from: Studio 42 on January 30, 2016, 19:20:04 PM
Quote from: claesbas on January 30, 2016, 12:38:59 PM
We will have a check on monday!
Can you check to use namespace for you javascript as i descripted some post ago?
Some value you use are so generic that this can break all javascript.
eg
window.selectedpaymentid = 0;
var action = "";
var countrychange = "";
var popupopen = 0;


action can be reused by any javascript, popupopen too for some modal scritpt ...

So i had wrote something so :
var vmonepage = {
  "action " : "",
  "countrychange " : "",
  "popupopen " : 0,
....
}


And of course, this can include the function and don't pollute the window variables

Thanks,
Patrick

Ok latest version is now all in classes so that no conflicts should arise. Have a look at latest changes and download latest version from GitHub.

Latest: https://github.com/joomlaproffs/vmonepage/releases/tag/2.2.0

Changes: https://github.com/joomlaproffs/vmonepage

Thanks for the tip!
VMuikit - A Virtuemart theme for Yootheme template
https://joomlapro.com/vmuikit

VMonepage - One Page Checkout (Was free - now is €20)
https://joomlapro.com/product/virtuemart-one-page-checkout

VMKCO - Klarna Checkout Enhanced
https://joomlapro.com/product/virtuemart-klarna-checkout

Studio 42

Hi,
Nice update, but i think you missed some vars ;)
in javascript onepage.js begin file :

window.selectedpaymentid = 0;
var action = "";
var countrychange = "";
var popupopen = 0;

OR use name space, or move this inside
jQuery(document).ready(function(){
window.selectedpaymentid = 0;
var action = "";
var countrychange = "";
var popupopen = 0


So this not conflict with global dom vars


Studio 42

#19
Another missing feature, is to add config value in the plugin for buttons so that  you can overide it.
for this HTML class
opg-button-danger
opg-button-primary
opg-form-danger

And perhaps some others ? So you plugin is vry "generic" and don't use own ui-kit or opg class.
Because most of this have similar bootstrap class, so this not break the template layout, if you want it so.

After that, you only need to add in your main object and use this variable in the javascript.
Then you can overide the template corretly.
Thanks,
Patrick

PS: i have send you a pull request, but don't tried all.

claesbas

Maybe having an option to change between bootstrap or opc- classes in backend. So that templates not using Bootstrap will work also.
VMuikit - A Virtuemart theme for Yootheme template
https://joomlapro.com/vmuikit

VMonepage - One Page Checkout (Was free - now is €20)
https://joomlapro.com/product/virtuemart-one-page-checkout

VMKCO - Klarna Checkout Enhanced
https://joomlapro.com/product/virtuemart-klarna-checkout

claesbas

Quote from: Studio 42 on February 05, 2016, 14:33:24 PM
Another missing feature, is to add config value in the plugin for buttons so that  you can overide it.
for this HTML class
opg-button-danger
opg-button-primary
opg-form-danger

And perhaps some others ? So you plugin is vry "generic" and don't use own ui-kit or opg class.
Because most of this have similar bootstrap class, so this not break the template layout, if you want it so.

After that, you only need to add in your main object and use this variable in the javascript.
Then you can overide the template corretly.
Thanks,
Patrick

PS: i have send you a pull request, but don't tried all.

Please check the latest version: https://github.com/joomlaproffs/vmonepage/releases/tag/2.2.2

We added you suggestions.
VMuikit - A Virtuemart theme for Yootheme template
https://joomlapro.com/vmuikit

VMonepage - One Page Checkout (Was free - now is €20)
https://joomlapro.com/product/virtuemart-one-page-checkout

VMKCO - Klarna Checkout Enhanced
https://joomlapro.com/product/virtuemart-klarna-checkout

Studio 42


claesbas

2.2.6 supports the "Joomla Updater" so now its very easy to keep your FREE One Page Checkout up to date!
VMuikit - A Virtuemart theme for Yootheme template
https://joomlapro.com/vmuikit

VMonepage - One Page Checkout (Was free - now is €20)
https://joomlapro.com/product/virtuemart-one-page-checkout

VMKCO - Klarna Checkout Enhanced
https://joomlapro.com/product/virtuemart-klarna-checkout

AH

This is not the support forum for the third party plugin - please could you use the providers support service for support relating to this plugin.
Regards
A

Joomla 4.4.5
php 8.1

claesbas

#25
VMonepage.com

- The One Page Checkout updates

Latest changelog 2.2.9:
• Greece language added
• Polish language added
• Payment Prices showing in left side
• Added two language strings
• While update product, payment method also updated
• Some 3.0.16 fixes

http://vmonepage.com

VMuikit - A Virtuemart theme for Yootheme template
https://joomlapro.com/vmuikit

VMonepage - One Page Checkout (Was free - now is €20)
https://joomlapro.com/product/virtuemart-one-page-checkout

VMKCO - Klarna Checkout Enhanced
https://joomlapro.com/product/virtuemart-klarna-checkout

velikorodnov

Hi
It will be great if you add script for custom radio-buttons, check-boxes and selects customization

velikorodnov

Developer also found a bug when  we output 2 methods
https://youtu.be/FagSBgpHqA0

Also developer added function for custom radio buttons

function radioBox() {
             var o = jQuery(' .opg-list input[type=radio]');
             if (o.length && !jQuery('body').hasClass('.com_config')) {
                o.each(function () {
                    if (jQuery(this).parent().not('span.radio')) {
                        if (!jQuery(this).attr("id")) {
                            jQuery(this).attr({id: 'radio' + i}).wrap('<span class="radio"/>').after('<label class="radio_inner" for="radio' + i + '" />')
                        } else {
                            jQuery(this).wrap('<span class="radio"/>').after('<label class="radio_inner" for="' + jQuery(this).attr("id") + '" />')
                        }
                    }
                });
            }   
         }

Studio 42

Hi velikorodnov,
See  https://github.com/joomlaproffs/vmonepage/ and forl it to propose some patch, so any can review and test it.
Thanks

alegrafic

Hello

Congratulations to the developer of this fantastic extension

I noticed that the drop-down menus do not work well if a country is full and the region is empty because it does not go into buying because the region's drop-down menu is empty

Also, in the user fields, the custom delimiters fields are not shown

How can I fix it?

thank you so much