- Posts: 25
- Thank you received: 1
using joomla login module in check-out login
- nabukadnezar
-
Topic Author
- Offline
Less
More
11 years 6 months ago #200420
by nabukadnezar
using joomla login module in check-out login was created by nabukadnezar
-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.4.37
-- Error-message(debug-mod must be tuned on) -- : -
Hi,
When a user try to buy a product without login, hikashop's login and registration forms are appear in the top of the checkout page. But I want my own login module which I purchase is come instead. How I can do it, thank you.
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.4.37
-- Error-message(debug-mod must be tuned on) -- : -
Hi,
When a user try to buy a product without login, hikashop's login and registration forms are appear in the top of the checkout page. But I want my own login module which I purchase is come instead. How I can do it, thank you.
Please Log in or Create an account to join the conversation.
11 years 6 months ago #200425
by nicolas
Replied by nicolas on topic using joomla login module in check-out login
Hi,
Then, deactivate the "login" setting of the Checkout tab of the HikaShop configuration and instead enable your login module on the side of the checkout page.
Then, deactivate the "login" setting of the Checkout tab of the HikaShop configuration and instead enable your login module on the side of the checkout page.
Please Log in or Create an account to join the conversation.
- nabukadnezar
-
Topic Author
- Offline
Less
More
- Posts: 25
- Thank you received: 1
11 years 6 months ago #201843
by nabukadnezar
Replied by nabukadnezar on topic using joomla login module in check-out login
How to enable?
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 12953
- Thank you received: 1778
11 years 6 months ago #201850
by Mohamed Thelji
Replied by Mohamed Thelji on topic using joomla login module in check-out login
Hello,
To disable the Hikashop login setting you'll have to do it through the page "Hikashop->System->Configuration->Checkout workflow"
To enable your own login module, you'll just have to make sure that your login module is displayed through the checkout workflow page.
To disable the Hikashop login setting you'll have to do it through the page "Hikashop->System->Configuration->Checkout workflow"
To enable your own login module, you'll just have to make sure that your login module is displayed through the checkout workflow page.
Please Log in or Create an account to join the conversation.
- nabukadnezar
-
Topic Author
- Offline
Less
More
- Posts: 25
- Thank you received: 1
11 years 5 months ago #202794
by nabukadnezar
Replied by nabukadnezar on topic using joomla login module in check-out login
Hi,
Actually, I'am using a pop-up login so I can't place the login form in somewhere in checkout page.
What I want is;
When a user clicks to the "buy" button in product detail page, if the user is not logged in, the login pop-up should come. So I think I should know if the user is logged in or not and I should put a condition to call the login pop-up.
So my first question is: How can I know the user is logged in or not.
second: In which file the "buy" button ? (I need to change "buy" button's class according to user's status)
Thank you very much.
Actually, I'am using a pop-up login so I can't place the login form in somewhere in checkout page.
What I want is;
When a user clicks to the "buy" button in product detail page, if the user is not logged in, the login pop-up should come. So I think I should know if the user is logged in or not and I should put a condition to call the login pop-up.
So my first question is: How can I know the user is logged in or not.
second: In which file the "buy" button ? (I need to change "buy" button's class according to user's status)
Thank you very much.
Please Log in or Create an account to join the conversation.
11 years 5 months ago #202830
by nicolas
Replied by nicolas on topic using joomla login module in check-out login
Hi,
You want to edit the file "quantity" of the view "product" via the menu Display>Views.
There, you'll find these lines:
You can add a parameter like that to these lines to add a custom class:
where custom_css_class is your custom CSS class.
To know if a user is logged in or not, you can use such code:
You want to edit the file "quantity" of the view "product" via the menu Display>Views.
There, you'll find these lines:
Code:
echo $this->cart->displayButton(JText::_('ADD_TO_CART'), 'add', $this->params,$url, $this->ajax, '', $max, $min);
Code:
echo $this->cart->displayButton(JText::_('ADD_TO_CART'), 'add', $this->params,$url, $this->ajax, '', $max, $min,' custom_css_class');
To know if a user is logged in or not, you can use such code:
Code:
$user = JFactory::getUser();
if($user->guest){
// user is not logged in
}
The following user(s) said Thank You: nabukadnezar
Please Log in or Create an account to join the conversation.
Time to create page: 0.067 seconds