Adding Cart Doesn't Go Back to Product Listing

  • Posts: 6
  • Thank you received: 0
11 years 4 months ago #109478

Hello,
I just loaded the latest HikaShop and am having an issue trying to add a product and then continue shopping. The only option I have is to proceed to checkout which is a module I created which included the cart but it seems that the cart is not updating all the time. Also after I add a product, the product listing vanishes so my only recourse is to go the main menu and click on Shoppe, and then select the Buy On-line option.

Can you please help me?

Here is my link to check it out: simplysweetshoppe.com/shoppe/buy-on-line

I've also included attachments for you to view.

Thank you in advance!

I've you'd like, I can give you back-end access to the site if you need to take a look from that view.

Attachments:

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

  • Posts: 12953
  • Thank you received: 1778
11 years 4 months ago #109480

Hi,

Can you show me how did you configured your checkout workflow through some screenshots or directly give me a temporary access to your back-end through a private message ?

Thanks

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

  • Posts: 6
  • Thank you received: 0
11 years 4 months ago #109498

Sent via PM. Thanks in advance!

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

  • Posts: 12953
  • Thank you received: 1778
11 years 4 months ago #109528

1. Did you edited some Hikashop files ?

2. Regarding the redirection to the product listing after the product is added to your cart, that's currently not possible in Hikashop.

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

  • Posts: 6
  • Thank you received: 0
11 years 4 months ago #109640

I did not. I upgraded HikaShop to the latest rev as when I logged in the Joomla Extension button on the control panel noted that HikaShop was out of date.

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

  • Posts: 82726
  • Thank you received: 13342
  • MODERATOR
11 years 4 months ago #109739

Hi,

There is actually no option to redirect back the user to the products listing after a product has been added to the cart.
There is one option which controls what will happen after a product has been added to the cart. It's the option called "After a product is added to the cart" in the configuration.
You basically have three choices:
1. stay on the current page
2. redirect the user to the checkout
3. display a popup notice that the product has been added to the cart with two buttons: one to go to the checkout, and one to close the popup and continue shopping.

Usually, users will either use the joomla breadcrumb module to allow the customers to easily go back to the listing, or add a "go back" button on the product page:
www.hikashop.com/en/forum/4-how-to/38337...to-product-page.html

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

  • Posts: 6
  • Thank you received: 0
11 years 4 months ago #109859

Hello,
OK that resolves my second issue but the not first regarding the cart not displaying accurately (see my original post). If you go through my original workflow as described in my first post there are still issues. Any help would be much appreciated!
Thank you,
Tony

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

  • Posts: 82726
  • Thank you received: 13342
  • MODERATOR
11 years 4 months ago #109970

Hi,

That's a bug that you already fixed on our end and which will be patched in the next version.
If you don't want to wait, you can edit the file components/com_hikashop/controllers/product.php and change the lines (several occurrences):

if(strpos($url,HIKASHOP_LIVE)===false && preg_match('#^https?://.*#',$url)) return false;

to:
$url = str_replace(array('http://www.','https://www.'), array('http://','http://'),$url);
$live = str_replace(array('http://www.','https://www.'), array('http://','http://'),HIKASHOP_LIVE);
if(strpos($url,$live)!==0 && preg_match('#^https?://.*#',$url)) return false;

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

  • Posts: 6
  • Thank you received: 0
11 years 4 months ago #109976

I made the updates on the file (updated three instances) and the shopping cart is still not updating at all. Do you want me to PM you the backend username and pwd to take a look at it? I'm at a loss.

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

  • Posts: 82726
  • Thank you received: 13342
  • MODERATOR
11 years 4 months ago #110029

Your issue was different.
It was that the page after the add to cart was "blank" but the cart module was updating.
Now the cart module is not updated but the page is correctly the product page.
So I guess that the modifications you did were not done correctly.
Unfortunately, a backend access won't allow us to look at the changes of that file.

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

  • Posts: 6
  • Thank you received: 0
11 years 4 months ago #110039

The only modification to the code was the one you suggested. I did not modify anything else. The mods were completed with a direct search and replace of the code you specified- nothing else. I can give you FTP access if you want to look at it.

Again, to reiterate. All I did was:

1. Install HikaShop
2. Add products and configure the shop.
3. Cart not updating correctly.
4. Upgrade it as the Joomla Extensions checker said there was an update available. Upgraded to the latest rev.
5. Cart not updating correctly
6. Opened a ticket through this forum.
7. Make the modifications you suggested based on direct search and replace of the code you provided.
8. The cart continues not to update correctly.

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

  • Posts: 82726
  • Thank you received: 13342
  • MODERATOR
11 years 4 months ago #110146

Note that it is not a bug in HikaShop.
The patch that we added in HikaShop is to avoid the issue but you can also simply fix it by properly configuring your joomla.
When you have a blank page like that after adding a product to the cart, it means that the URL that you're using to access your website is different than the URL that you entered in the live_site variable of the configuration.php file of Joomla.
HikaShop relies on it for security checks on redirects to avoid some XSS attacks.
So if you configure properly that live_site URL, that should also solve the issue.

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

Time to create page: 0.083 seconds
Powered by Kunena Forum