Add To Cart Error

  • Posts: 22
  • Thank you received: 1
13 years 1 month ago #26778

First of all, thank you for a wonderful product, extremely powerful yet at the same time simple to use. All the best to yor team

I am facing a problem with the 'Add to cart' button, both in the product display page and the module.

1. If the user is not logged in, and presses the Add to Cart button, there is a browser error...

The page isn't redirecting properly

Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

This problem can sometimes be caused by disabling or refusing to accept
cookies.



2. If I then press the browser Back button, there are a lot of messages...

No payment methods found
Please create or select an address
Login or create a new account
Please create or select an address
Please fill your payment information
No payment methods found
Please create or select an address
Login or create a new account
Please create or select an address
Please fill your payment information
No payment methods found
Please create or select an address
Login or create a new account
Please create or select an address
Please fill your payment information
No payment methods found
Please create or select an address
Login or create a new account
Please create or select an address
Please fill your payment information
No payment methods found
Please create or select an address
Login or create a new account
Please create or select an address
Please fill your payment information
No payment methods found
Please create or select an address
Login or create a new account
Please create or select an address
Please fill your payment information
No payment methods found
Please create or select an address
Login or create a new account
Please create or select an address
Please fill your payment information
No payment methods found
Please create or select an address
Login or create a new account
Please create or select an address
Please fill your payment information
No payment methods found
Please create or select an address
Login or create a new account
Please create or select an address
Please fill your payment information
No payment methods found
Please create or select an address
Login or create a new account
Please create or select an address
Please fill your payment information
Login or create a new account
Please create or select an address
Please fill your payment information
No payment methods found
Please create or select an address
Login or create a new account
Please create or select an address
Please fill your payment information
No payment methods found
Please create or select an address
Login or create a new account
Please create or select an address
Please fill your payment information
No payment methods found
Please create or select an address
Login or create a new account
Please create or select an address
Please fill your payment information
No payment methods found
Please create or select an address
Login or create a new account
Please create or select an address
Please fill your payment information
No payment methods found
Please create or select an address
Login or create a new account
Please create or select an address
Please fill your payment information
No payment methods found
Please create or select an address
Login or create a new account
Please create or select an address
Please fill your payment information
No payment methods found
Please create or select an address
Login or create a new account
Please create or select an address
Please fill your payment information
No payment methods found
Please create or select an address
Login or create a new account
Please create or select an address
Please fill your payment information
No payment methods found
Please create or select an address
Login or create a new account
Please create or select an address
Please fill your payment information
No payment methods found
Please create or select an address
Login or create a new account
Please create or select an address
Please fill your payment information


There is no propblem if the user is logged in.

Ideally, I would like the Add To Cart button to be visible only to logged in users. Is there any simple modification to show.php or any other file that to achieve this>

I can use the following code

$db =& JFactory::getDBO();
$user =& JFactory::getUser();
$loggedinuser = $user->id;

but where exactly do I put the condition

if ($loggedinuser == '0') {
....
}

I am using Joomla 1.5.23 and Hikashop Starter 1.5.4

Thanks
Raminder Malik

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
13 years 1 month ago #26783

That's sounds like you have a loop in the redirect of the checkout.
Did you change your checkout workflow ? If so, what do you have as workflow now ?

Could you disable SEF in the joomla configuration and activate the debug mode in the same place and try again ?
That might give another error message with more information.

You can put your condition at the beginning of the quantity file of the view product. That's the file used to display the add to cart button on the product page and on products listings.

Please Log in or Create an account to join the conversation.

  • Posts: 22
  • Thank you received: 1
13 years 1 month ago #26787

Thanks. I have applied the condition and the button now shows/displays as required

Raminder

Please Log in or Create an account to join the conversation.

Time to create page: 0.062 seconds
Powered by Kunena Forum