• Resolved jongyc

    (@jongyc)


    After the plugin was updated, the entire store area of the website crashed. I read through some of the other threads and these are the things that I’ve tried for the issues that I’m facing.

    Issue 1
    All store pages (like “/store/products”, “/store/shopping-cart”) return 404 errors.

    • I’ve tried flushing the permalinks through Settings ? Permalinks
    • I read in another thread that the pages are virtual pages so I checked if there were any existing pages with the same slug that could be causing a conflict. There were none.

    Issue 1 Solution
    I manually created pages for each Store Page under Store Settings ? Presentation ? Store Pages. I had to add a shortcode in the content editors for each page to display the content relevant to that page.

    Issue 2
    I cannot reach the checkout page. These are the steps to reproduce the issue:

    1. Go to mysite.com/store/product.
    2. Add a few items to the cart. The floating cart widget appears on the top right and shows the correct products.
    3. Hover over the cart widget and click “View Shopping Cart”. This takes me to the shopping cart with the same products.
    4. Towards the bottom of the shopping cart, click “Checkout”. From here on, the page just refreshes and nothing happens. I’m still on the shopping cart page after the page refreshes.

    Same as above:

    • I’ve tried flushing the permalinks through Settings ? Permalinks
    • I checked if there were any existing pages with the same slug that could be causing a conflict. There were none.
      • This topic was modified 6 years, 5 months ago by jongyc.
      • This topic was modified 6 years, 5 months ago by jongyc.
      • This topic was modified 6 years, 5 months ago by jongyc.
    Viewing 10 replies - 1 through 10 (of 10 total)
    • Plugin Support Williams – WPMU DEV Support

      (@wpmudev-support8)

      Hey @jongyc,

      Hope you’re well.

      First of all, thank you for an explanation about issue 1 and sharing solution for it. Maybe this can help the other users in the feature.

      For the issue 2; Can you tell me from which version you update to latest version? Also, can you check the checkout page setup correctly? You need to go Store Settings > Presentation then you will see the store pages options. Check the check out page there;

      Then click Edit Page and check the shortcode in it too. It should be like this;
      [mp_checkout]

      Cheers,
      Oguz

      Thread Starter jongyc

      (@jongyc)

      I’m afraid I don’t know the version from which the plugin was updated. I wasn’t the one who performed the update so I can’t say. I do know that there was a database update required after the plugin was updated.

      I did create a checkout page as you described, assigned it to the checkout page under presentation settings, and added the shortcode too. I can try again today. I will report back on my findings.

      Thread Starter jongyc

      (@jongyc)

      Sorry it took me so long to test this. I’m still experiencing the same issue with the checkout page. These are the steps I took.

      1. Create a checkout page and assign it to Checkout page under Store Settings ? Presentation ? Store Pages ? Checkout.
      2. Add the shortode [mp_checkout] to the Checkout page and save.
      3. Starting from the store front page, go to products list.
      4. Add a new item to shopping cart.
      5. Navigate to shopping cart. Click “Checkout” button.

      From the last step is where nothing happens. Clicking the “Checkout” button refreshes the page; I’m not taken anywhere else. Here are a couple of other findings though.

      • “Empty Cart” button next to “Checkout” button works. I can confirm that it does clear the shopping cart.
      • The checkout button takes me to “/store/shopping-cart-2/” instead of the page I created at “/store/checkout/”. There is no existing page for “/store/shopping-cart-2/”. Is this another virtual page?
      • I can reach the checkout page by going directly to https://www.mydomain.com/store/checkout/. For some reason, it’s just not registering it to the Checkout button on the shopping cart page.

      I’ve flushed my permalinks countless times throughout these steps.

      • This reply was modified 6 years, 5 months ago by jongyc.
      • This reply was modified 6 years, 5 months ago by jongyc.
      • This reply was modified 6 years, 5 months ago by jongyc.
      Thread Starter jongyc

      (@jongyc)

      I dug into the plugin code and found the following in /includes/common/class-mp-cart.php.

      <a class="mp_button mp_button-checkout mp_button-widget-cart" href="' . mp_store_page_url( 'cart', false ) . '">' . __( 'Checkout', 'mp' ) . '</a>';

      The shopping cart link is being assigned to the checkout button. Is it supposed to be that way? When I change it to this:

      <a class="mp_button mp_button-checkout mp_button-widget-cart" href="' . mp_store_page_url( 'checkout', false ) . '">' . __( 'Checkout', 'mp' ) . '</a>';

      …I get the desired results.

      • This reply was modified 6 years, 5 months ago by jongyc.
      • This reply was modified 6 years, 5 months ago by jongyc.
      • This reply was modified 6 years, 5 months ago by jongyc.
      • This reply was modified 6 years, 5 months ago by jongyc.
      Plugin Support Williams – WPMU DEV Support

      (@wpmudev-support8)

      Hey @jongyc,

      Hope you’re well.

      Actually, that should redirect to check out correctly. But there can be some kind of plugin or theme conflict cause redirection not happen. If you want to continue debugging I need you to check plugin conflict test. Or if you are happy with modifying solution, that’s okay.

      Cheers,
      Oguz

      Thread Starter jongyc

      (@jongyc)

      I reverted the change to the plugin and ran a plugin conflict test. I deactivated one plugin at a time, flushing permalinks, and I’m still getting the same problem with the checkout page not redirecting to the correct page. Can you explain how the button with a link to /store/shopping-cart-2/ redirects to checkout correctly? Is it a redirect through the plugin? Is it a virtual page?

      I would prefer to have things corrected with the plugin as-is in case the client updates the plugin again, which would remove the manual fix I applied.

      Plugin Support Williams – WPMU DEV Support

      (@wpmudev-support8)

      Hey @jongyc,

      Hope you’re well.

      No, all pages should be defined from same Presentation > Store pages options. Checkout page and shopping cart page should be assigned from there. Are all of them set up and includes shortcodes?

      Cheers,
      Oguz

      Thread Starter jongyc

      (@jongyc)

      I don’t understand why we are going in circles and coming back to make sure all pages are assigned under Presentation ? Store. I’ve clarified before that all pages are assigned under Presentation ? Store pages. I’ve also clarified that I added shortcodes to each page to display the content that I wanted. If you’re telling me that defining all pages under Presentation ? Store page options should fix it, then why is the checkout button on the shopping cart page not going to the checkout page? I reverted the plugin change that I proposed before and did a plugin conflict test like you requested and I’m still seeing the issue. If there are no further tests I can do to pinpoint the problem, then it must be the code I mentioned earlier and there needs to be a fix put in for that.

      • This reply was modified 6 years, 5 months ago by jongyc.
      Plugin Support Williams – WPMU DEV Support

      (@wpmudev-support8)

      Hey @jongyc,

      Hope you’re well.

      I checked this problem with our developers and I can confirm now there is some kind of bug about the cart widget. So I created a bug report about this, I am sure it will be fixed at one of the next versions. Thank you for all the details you provide.

      Cheers,
      Oguz

      Thread Starter jongyc

      (@jongyc)

      Thank you! I look forward to that update. ??

    Viewing 10 replies - 1 through 10 (of 10 total)
    • The topic ‘Pages return 404 error after updating plugin’ is closed to new replies.