Viewing 11 replies - 16 through 26 (of 26 total)
  • Plugin Contributor mbrsolution

    (@mbrsolution)

    Hi @tomfrom, as I suspected. I am sure once you find out what the culprit is you will enjoy this great plugin ??

    @viktorix, have you tried the default WordPress theme to see if that works?

    This commonly happens when you are using a reserved name on one of your form elements or you have a custom post type and one of your form element names collides.

    So if you have a Custom Post Type named Product this plugin will fail and you will get a 404. I replicated it and used Fiddler to make sure this was actually happening.

    Happened to me on one of my sites today and my site has WooCommerce installed which has a Product Custom Post Type.

    Quick and dirty fix on my clients site:

    I edited the plugins code and replaced the product form elements name to wsc_product and all relevant code.

    Example:
    <input type=”hidden” name=”wsc_product” value=”$25.00 Gift Certificate”>

    Here is my site
    https://www.fitrightnw.com/gift-certificate/

    Works like a charm.

    Hope this helps.

    Thank you, jeremyspouken!

    Works like a charm for me now aswell when I deactivated WooCommerce which made me the Products CPT.

    Glad that helped.

    Im still having this problem, ive updated to wordpres 3.6 and dissabled all other plugins so i know its not any problems with that.

    I am however using custom post types to display information about each product but i dont have any named ‘product’

    they are:
    item_name
    item_number
    nominal_volume
    brimful_volume
    dimension
    d1
    handle
    packing_unit
    pdf
    product_name
    product_price

    I have noticed that if the product name in WSC is the same as the name for the product post, the shopping cart will go to the product page when updated, if i change the name of the product so its not the same as the product page title then a 404 page will load, so it sounds similar to the problem jeremyspouken describes above.

    anyone have any ideas on how i could fix this? im going to try changing the permalinks, page titles and custom post type lables to see if anything fixes it.

    If i dont enter a product name everything works as expected…

    Followed jeremyspouken’s advice and replaced ‘product’ with ‘wsc_product’ in wp_shopping_cart.php where needed ($POST_(‘product’) and input name=”product”). Working perfectly! thanks jeremyspouken

    mra13 could you add this fix to future releases of your plugin? thanks ??

    Thread Starter Viktor Nagornyy

    (@viktorix)

    Fix works great. Just make sure you replace all instances!

    Plugin Author mra13

    (@mra13)

    Thank you. I will make this change in a future release of this plugin.

    Hello mra13, i think you have implemented this fix into your latest version, i updated the plugin today but the fault came back, ive reverted to my modified version for now, just letting you know!

Viewing 11 replies - 16 through 26 (of 26 total)
  • The topic ‘checkout functions return 404 error all of the sudden’ is closed to new replies.