Just FYI for anyone else using MicroShop that might have encountered this issue.
I installed everything with ease (thanks for posting the wiki entry!)... but started noticing a bizarre issue (in the store) where the prices i had set were being altered... like the first few numbers, including the ($) dollar sign... were... gone. The prices in the database were correct, so I searched through the code. I found that wherever there was a dollar sign that was intended as an HTML output "$" (not a variable), it was being parsed as a variable.
"Simple syntax - If a dollar sign ($) is encountered, the parser will greedily take as many tokens as possible to form a valid variable name."
I decided to try using the html char. code (& #36;) in place of the $ signs... and that solved my issue.
For example, in line 142 of index.php (the MicroShop script)... I changed
echo "<td class="itemprice"><strong>Price:</strong><br/>$" . number_format($item->item_price, 2) . "</td>n";
echo "<td class="itemprice"><strong>Price:</strong><br/>& #36;" . number_format($item->item_price, 2) . "</td>n";
Did anyone else notice this? Is it common to have to use (& #36;) in place of a $ sign in PHP (where you want to echo a $ sign)? Just trying to understand this... I'm fairly new to PHP.
Thanks for the script, Ringmaster.
* If you use the char code, remember to close up the space between
(& #36;) I had to post it this way... the backticks didn't work.