Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

Reply To: Add To Cart POST goes to blank page.

by

Tips and Tricks HQ Support Portal › Forums › Simple PayPal Shopping Cart › Simple shopping Cart Troubleshooting › Add To Cart POST goes to blank page. › Reply To: Add To Cart POST goes to blank page.

December 16, 2009 at 2:08 am #16714
deejayspinz
Member

@timheuer, I got it working, but noting being a PHP guru, I feel like it’s a bandage solution. My first post alluded to the fix, however after testing it, I also noticed that the red ‘x’ to delete an item from the cart was also broke, so I had to do a similar fix for that. I have posted the updates I made below, but remember that these may not be the proper fix and it would be better if they are fixed by an official update to the plugin.

In a nutshell I think the problem I am having is a combination of IIS, and permalinks (I cannot get permalinks working with anything other than forcing /index.php?page=). Oh and I also followed the WordPress notes to move my index.php out of the wordpress folder and into the root of the site. So I think that all of these tweaks are playing a role here.

That said, here are the mods I made to wp_shopping_cart.php (change your pageid to be

the pageid for your blog. In my case the products and cart are both on the same page:

Within the block of code beginning on line 222 that starts with $output .= ”

There are two calls to action=””

I modified each to include a reference to index.php?page_id=839 and they look like this: action=”index.php?page_id=839″ Make sure you get the and ” in the right place.

approx line 441:

Change:

//$replacement = ‘<object><form method=”post” action=”” style=”display:inline” onsubmit=”return ReadForm(this, true);”>’;

To:

$replacement = ‘<object><form method=”post” action=”index.php?page_id=839″ style=”display:inline” onsubmit=”return ReadForm(this, true);”>’;

Once I made these changes, the cart appears to be working ok. However, Im screwed if I change the page, or add the cart elsewhere.. I will cross that bridge if and when I have to..

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ