- Posts: 23
- Thank you received: 0
Loading currency converter module in checkout page
- harsha1415
-
Topic Author
- Offline
i want to load currency converter module into payment method selection (html div) in the checkout page,
currently i have the currency converter module in the right panel of the template.
is there any way to load module into joomla component menu item page
Thank you
Please Log in or Create an account to join the conversation.
Displaying it there is not too difficult as you can use Module AnyWhere to load it there:
extensions.joomla.org/extensions/core-en...embed-a-include/6402
However, since that module uses a form html tag and that there is already a form html tag around the checkout page, browsers won't like that and it won't work properly. You would have to edit the code of the module to do the display of the dropdown differently.
Please Log in or Create an account to join the conversation.
- harsha1415
-
Topic Author
- Offline
- Posts: 23
- Thank you received: 0
i can use moduleanywhere if it is article something like that, but hikashop checkout page is not an article,it is component menu page i can't create that in article manager, i can only create through menu,here is the image so that u can understand my problem easily.
i want to change the currency converter module in the payment method options in check out page
Please Log in or Create an account to join the conversation.
As I told you in my previous message, that won't work even if you put it there (which would require to edit the corresponding view file to add some code to it).
It would require that you modify the code of the module to make it work.
Please Log in or Create an account to join the conversation.
- harsha1415
-
Topic Author
- Offline
- Posts: 23
- Thank you received: 0
i tried to move the position of the currency converter module to checkout page which is the below one, i have added the below code in the payment.php file
jimport( 'joomla.application.module.helper' );
$module =& JModuleHelper::getModule('mod_hikashop_currency', 'Currency Converter');
$document = &JFactory::getDocument();
$renderer = $document->loadRenderer('module');
echo $renderer->render($module);
C:\xampp\htdocs\wwem\components\com_hikashop\views\checkout\tmpl\payment.php
after adding the above code i can able to see the html of the module but the functionality is not working
i have attached the image aswell
can please help me this out what i can do now
thank you
Please Log in or Create an account to join the conversation.
Yes, that's what I told you would happen
It doesn't work because the form of the module conflicts with the form of the checkout.
To make it work, you will have to edit the file modules/mod_hikashop_currency/tmpl/default.php and change the code there so that it doesn't use an html form and instead does some javascript to do a redirect via a window.location.
Please Log in or Create an account to join the conversation.
- harsha1415
-
Topic Author
- Offline
- Posts: 23
- Thank you received: 0
i am unable to work it out(i have tried what i can), is there anyway can u please help this out for me
Thank you
Please Log in or Create an account to join the conversation.
You should try to replace the code:
by:
Please Log in or Create an account to join the conversation.
- harsha1415
-
Topic Author
- Offline
- Posts: 23
- Thank you received: 0
after i replacing the code like u said
before i try to changing the currency the url is like below
http://localhost/wwem/index.php/aboutus/wwem-shopping-products/checkout
after i try to changing the currency the url is like below, the url is exactly changing like below and i is giving blank screen nothing is happening
http://localhost/wwem/index.php/aboutus/wwem-shopping-products/currency/update/return_url-http-/localhost/wwem/index.php/aboutus/wwem-shopping-products/http-
Please Log in or Create an account to join the conversation.
Could you deactivate SEF and try again ?
I suspect that because the return_url is directly in the URL your SEF system breaks the URL.
Please Log in or Create an account to join the conversation.
- harsha1415
-
Topic Author
- Offline
- Posts: 23
- Thank you received: 0
i have tried by deactivating the SEF urls, but this time there is nothing wrong with the URL,but when i try to changing the currency, the currency is not updating, the page is just refreshing that's it.
waiting for your reply
Please Log in or Create an account to join the conversation.
Please try with that code instead then:
Please Log in or Create an account to join the conversation.
- harsha1415
-
Topic Author
- Offline
- Posts: 23
- Thank you received: 0
great, it working now
thank you so much for your help
but i want to enable the SEF urls in the live website,our website is marketing website & we need SEO ,so is it possible to make it work this by acivating the SEF urls
Thank you
Please Log in or Create an account to join the conversation.
$url = hikashop_completeLink('currency&task=update');
by:
Please Log in or Create an account to join the conversation.
- harsha1415
-
Topic Author
- Offline
- Posts: 23
- Thank you received: 0
checkout page is working with the latest url with activation of sef urls
but after selecting payment method and then i click next button , after that its not redirecting to related payment interface the url is changing as below
' yourwebsite.com/wwem-products/checkout/step/step-1
before hitting next button the url is like ' yourwebsite.com/wwem-products/checkout/
and the it is giving the confirmation like Thank you for your purchase.
iam not geting the related payment interface
Please Log in or Create an account to join the conversation.
I don't see the link with the currency dropdown modification.
Is that related ?
If you don't see any payment redirection at the end of the checkout, make sure that you didn't remove the "payment" view from the "checkout workflow" option of the Checkout tab of the configuration.
If not, please provide a link to your shop so that we can see your checkout.
Please Log in or Create an account to join the conversation.
- harsha1415
-
Topic Author
- Offline
- Posts: 23
- Thank you received: 0
payment option is there in the checkout workflow
payment redirection at the check out is working fine when i turn off the currency switcher in the payment DIV, but its not working when i turn on the currency switcher ,
why iam mentioning in payment DIV is, payment redirection is working when the currency switcher is on the right side of the template, but when i move the currency switcher in the payment DIV payment redirecion is not working
so i think its because of the currency drop down modification
unfortunately the website which i am working currently is in my localhost, once everything is ready then i need to make it live, so i can't provide any links
waiting for your reply
thank you
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- harsha1415
-
Topic Author
- Offline
- Posts: 23
- Thank you received: 0
its working perfect now , i have taken off the form tags, previously i didn't takeoff the form tags
anyways thank you so much for your help
Cheers
Please Log in or Create an account to join the conversation.
- harsha1415
-
Topic Author
- Offline
- Posts: 23
- Thank you received: 0
i Just found a bug, the currency switcher module which i loaded in checkout is not working in IE7/IE8
currency switcher is loading but when i try to change the currencies the dropdown box is not working,its not showing the drop down values
is there any fix available for that
its working in all other browsers like firefox/chrome/safari
Thank you
Please Log in or Create an account to join the conversation.