68fordxl Posted March 26, 2007 Posted March 26, 2007 Hey now, Jack. Took another stab at installing the contribution on my site. Checked functionality after uploading every page, and got no other error messages, until the last step for the product info page. Found line 137, and added the code from the forum page to my product info page to get: 137 | if ($products_options['options_values_price'] != '0') { 138 |// BOC Attribute Percentage 139 | if ($products_options['price_prefix'] == ATTRIBUTE_PERCENTAGE_SYMBOL) 140 | $products_options_array[sizeof($products_options_array)-1]['text'] .= ' (' . $products_options['price_prefix'] . $currencies-display_price_percentage($products_options['options_values_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) .') '; 141 | else 142 |// EOC Attribute Percentage (XXX | added for clarity - not part of the code on the page) Now getting a different error message: Parse error: syntax error, unexpected T_IF in /home/kvrperf/public_html/shop/product_info2.php on line 139 This store also has the "Add Quantity Pulldown to Prod Info Page" contribution added to it. Source code of the product_info.php file is available at: http://www.leeper.info/product_info2.php.zip. Thanks in advance for any help you or the forum members can provide. -- Roger Quote
♥Skittles Posted March 26, 2007 Posted March 26, 2007 Hey now, Jack. Took another stab at installing the contribution on my site. Checked functionality after uploading every page, and got no other error messages, until the last step for the product info page. Found line 137, and added the code from the forum page to my product info page to get: 137 | if ($products_options['options_values_price'] != '0') { 138 |// BOC Attribute Percentage 139 | if ($products_options['price_prefix'] == ATTRIBUTE_PERCENTAGE_SYMBOL) 140 | $products_options_array[sizeof($products_options_array)-1]['text'] .= ' (' . $products_options['price_prefix'] . $currencies-display_price_percentage($products_options['options_values_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) .') '; 141 | else 142 |// EOC Attribute Percentage (XXX | added for clarity - not part of the code on the page) Now getting a different error message: Parse error: syntax error, unexpected T_IF in /home/kvrperf/public_html/shop/product_info2.php on line 139 This store also has the "Add Quantity Pulldown to Prod Info Page" contribution added to it. Source code of the product_info.php file is available at: http://www.leeper.info/product_info2.php.zip. Thanks in advance for any help you or the forum members can provide. -- Roger Roger, Without knowing what is going on with your shop, just looking at the code you presented above, it looks like you are missing some curly brackets ('}' and '{'). Try changing the above code to this: 137 | if ($products_options['options_values_price'] != '0') { 138 |// BOC Attribute Percentage 139 | if ($products_options['price_prefix'] == ATTRIBUTE_PERCENTAGE_SYMBOL) { 140 | $products_options_array[sizeof($products_options_array)-1]['text'] .= ' (' . $products_options['price_prefix'] . $currencies-display_price_percentage($products_options['options_values_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) .') '; 141 | } else { 142 |// EOC Attribute Percentage There also needs to be a '}' at the end of the containing if statement, but I suspect it's there. Good Luck, -Skittles Quote
68fordxl Posted March 27, 2007 Author Posted March 27, 2007 Thanks, Skittles, but with the brackets added, I still get the same error message. -- Roger Roger, Without knowing what is going on with your shop, just looking at the code you presented above, it looks like you are missing some curly brackets ('}' and '{'). Try changing the above code to this: 137 | if ($products_options['options_values_price'] != '0') { 138 |// BOC Attribute Percentage 139 | if ($products_options['price_prefix'] == ATTRIBUTE_PERCENTAGE_SYMBOL) { 140 | $products_options_array[sizeof($products_options_array)-1]['text'] .= ' (' . $products_options['price_prefix'] . $currencies-display_price_percentage($products_options['options_values_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) .') '; 141 | } else { 142 |// EOC Attribute Percentage There also needs to be a '}' at the end of the containing if statement, but I suspect it's there. Good Luck, -Skittles Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.